파운드 100%, 알리움 대상 지정 제외 전체 완성

This commit is contained in:
SJW1024
2023-11-13 06:53:58 +09:00
parent 27a20d9573
commit 4c3356ffc2
79 changed files with 228 additions and 141 deletions

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Allium/Alium_P_Buff1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/Alium_P_Buff2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/Alium_Q.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Allium/Alium_Q_Debuff1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/Alium_Q_Debuff2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/Alium_R.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Allium/Alium_R_Attack.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/Alium_W.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Allium/Alium_w_debuff.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/Aliun_E_Effect.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Allium/BP_Allium.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Allium/sound/AL_A_1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/sound/AL_A_2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/sound/AL_Q.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/sound/AL_Q_Hited.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Allium/sound/Al_Q_Boom.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Lb/BP_Lb.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/BaseArrow.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Lb/EskillBuff.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/LB_Bolla_Throw.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/LB_Q_Arrow.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/LB_TNT_Fire.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/Lb_EskillBuff.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/Lb_Passive.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Lb/Lb_RskillBurst.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Lb/sound/BaseArrow.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/Missile.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/Missile11.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/NewMaterial.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_A.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_A_reached.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_E.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_Q_Boom.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_Q_Burn.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_Q_shoot.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_R_Boom.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_R_Hold.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_R_Shoot.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_W_Shoot.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Lb/sound/T_H_W_Tied.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Riana/BP_Riana.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Content/Effect/Alium/Alium_P_Buff1_Nia.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Effect/Alium/Alium_P_Buff2_Nia.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Effect/ETC/Hit_FX/Hit_nomal.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Effect/ETC/Speed_Down.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Content/Effect/LB/Arrow/Arrow_Flash.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Content/Effect/LB/LB_Skill/Q/LB_Q.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Maps/DevMap.umap (Stored with Git LFS)

Binary file not shown.

View File

@@ -15,7 +15,8 @@ void UAN_AnimEnd::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* An
ADefaultPlayerState* MyState = MyCharacter->GetPlayerState<ADefaultPlayerState>();
if (!MyState) return;
MyState->SetState(ECharacterState::Idle);
MyState->SetState(ECharacterState::Idle);
UE_LOG(LogTemp, Warning, TEXT("State log : %d"), MyState->GetState());
MyState->Stats[(uint8)EStats::Attackable] = 0;
MyState->Stats[(uint8)EStats::Skillusable] = 0;
MyState->Stats[(uint8)EStats::Movable] = 0;

View File

@@ -133,7 +133,7 @@ FString ADeathmatch::InitNewPlayer(APlayerController* NewPlayerController, const
//DebugPerpose
if (Type == CharacterType::Lukriel)
{
Type = CharacterType::Lb;
Type = CharacterType::Allium;
}
if (Team == TeamType::Null)
{

View File

@@ -65,64 +65,60 @@ float ADefaultPlayerCharacter::TakeDamage_Implementation(float DamageAmount, str
{
float ReturnValue = Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
if (HasAuthority())
ADefaultPlayerState* State = GetPlayerState<ADefaultPlayerState>();
if (!State) return ReturnValue;
if (!Cast<APawn>(DamageCauser)) return ReturnValue;
ADefaultPlayerState* AttackerState = Cast<APawn>(DamageCauser)->GetPlayerState<ADefaultPlayerState>();
if (!AttackerState) return ReturnValue;
float ADDamageMultiplier = 0;
float APDamageMultiplier = 0;
if (State->Stats[(uint8)EStats::Armor] >= 0)
ADDamageMultiplier = 100 / (100 + State->Stats[(uint8)EStats::Armor]);
else
ADDamageMultiplier = 2 - 100 / (100 - State->Stats[(uint8)EStats::Armor]);
if (State->Stats[(uint8)EStats::MagicResistance] >= 0)
APDamageMultiplier = 100 / (100 + State->Stats[(uint8)EStats::MagicResistance]);
else
APDamageMultiplier = 2 - 100 / (100 - State->Stats[(uint8)EStats::MagicResistance]);
UE_LOG(LogTemp, Warning, TEXT("%s : ADDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), ADDamageMultiplier, DamageAmount * ADDamageMultiplier);
UE_LOG(LogTemp, Warning, TEXT("%s : APDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), APDamageMultiplier, DamageAmount * APDamageMultiplier);
float UpdatedHealth = 0;
if (Cast<UBaseAttack>(DamageEvent.DamageTypeClass->GetDefaultObject()))
{
UE_LOG(LogTemp, Warning, TEXT("TakeDamage Called On Server"));
UE_LOG(LogTemp, Warning, TEXT("DamageType : BaseAttack"));
UpdatedHealth = State->Stats[(uint8)EStats::Health] - DamageAmount * ADDamageMultiplier;
}
else
{
UE_LOG(LogTemp, Warning, TEXT("DamageType : APDamage"));
UpdatedHealth = State->Stats[(uint8)EStats::Health] - DamageAmount * APDamageMultiplier;
}
if (UpdatedHealth < 0 || UpdatedHealth < 0.1)
{
State->Stats[(uint8)EStats::Health] = 0;
}
else
{
UE_LOG(LogTemp, Warning, TEXT("TakeDamage Called On Client"));
State->Stats[(uint8)EStats::Health] = UpdatedHealth;
}
if (HasAuthority())
{
if (ADefaultPlayerState* MyState = this->GetInstigatorController()->GetPlayerState<ADefaultPlayerState>())
{
if (ADefaultPlayerState* EventInstigatorState = EventInstigator->GetPlayerState<ADefaultPlayerState>())
{
float ADDamageMultiplier = 0;
float APDamageMultiplier = 0;
UE_LOG(LogTemp, Warning, TEXT("Current Health : %f"), State->Stats[(uint8)EStats::Health]);
UE_LOG(LogTemp, Warning, TEXT("U Health : %f"), UpdatedHealth);
if (MyState->Stats[(uint8)EStats::Armor] >= 0)
ADDamageMultiplier = 100 / (100 + MyState->Stats[(uint8)EStats::Armor]);
else
ADDamageMultiplier = 2 - 100 / (100 - MyState->Stats[(uint8)EStats::Armor]);
if (MyState->Stats[(uint8)EStats::MagicResistance] >= 0)
APDamageMultiplier = 100 / (100 + MyState->Stats[(uint8)EStats::MagicResistance]);
else
APDamageMultiplier = 2 - 100 / (100 - MyState->Stats[(uint8)EStats::MagicResistance]);
UE_LOG(LogTemp, Warning, TEXT("%s : ADDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), ADDamageMultiplier, DamageAmount * ADDamageMultiplier);
UE_LOG(LogTemp, Warning, TEXT("%s : APDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), APDamageMultiplier, DamageAmount * APDamageMultiplier);
if (Cast<UBaseAttack>(DamageEvent.DamageTypeClass->GetDefaultObject()))
{
UE_LOG(LogTemp, Warning, TEXT("DamageType : BaseAttack"));
float UpdatedHealth = MyState->Stats[(uint8)EStats::Health] - EventInstigatorState->Stats[(uint8)EStats::AttackDamage] * ADDamageMultiplier;
if (UpdatedHealth < 0)
{
MyState->Stats[(uint8)EStats::Health] = 0;
}
else
{
MyState->Stats[(uint8)EStats::Health] = UpdatedHealth;
}
UE_LOG(LogTemp, Warning, TEXT("Current Health : %f"), MyState->Stats[(uint8)EStats::Health]);
}
}
}
return ReturnValue;
}
else
{
return -1.0f;
}
return ReturnValue;
}

View File

@@ -102,9 +102,9 @@ enum class EStats : uint8
HPRegeneration,
HealAndShieldpower,
Armor,
ArmorBuff,
MaxHealth,
MagicResistance,
MagicResistanceBuff,
MaxMana,
Tenacity,
SlowRisist,
AttackSpeed,