https://differentdirection.youtrack.cloud/issue/OC-3/Replication-Projectiles complete #3
Binary file not shown.
@@ -12,8 +12,8 @@ UDDIHealth::UDDIHealth()
|
|||||||
MaxHealth = 0;
|
MaxHealth = 0;
|
||||||
CurrentHealth = 0;
|
CurrentHealth = 0;
|
||||||
ClassName = ClassNames::Scout;
|
ClassName = ClassNames::Scout;
|
||||||
HealTickTime = 0.2f;
|
HealTickTime = 1.f;
|
||||||
HealDelayTime = 1.5f;
|
HealDelayTime = 2.f;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ void UDDIHealth::Heal()
|
|||||||
if (CurrentHealth >= MaxHealth)
|
if (CurrentHealth >= MaxHealth)
|
||||||
{
|
{
|
||||||
CurrentHealth = MaxHealth;
|
CurrentHealth = MaxHealth;
|
||||||
HealTimer.Invalidate();
|
GetWorld()->GetTimerManager().ClearTimer(HealTimer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,8 +81,9 @@ void UDDIHealth::Heal()
|
|||||||
// Called to cause damage
|
// Called to cause damage
|
||||||
void UDDIHealth::TakeDamage(int DamageValue)
|
void UDDIHealth::TakeDamage(int DamageValue)
|
||||||
{
|
{
|
||||||
if (HealTimer.IsValid())
|
// if (HealTimer.IsValid())
|
||||||
HealTimer.Invalidate();
|
// HealTimer.Invalidate();
|
||||||
|
GetWorld()->GetTimerManager().ClearTimer(HealTimer);
|
||||||
|
|
||||||
CurrentHealth -= DamageValue;
|
CurrentHealth -= DamageValue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user