OnDecayDamage
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnDecayDamage( DecayEntity instance )
{
Puts( "OnDecayDamage works!" );
return null;
}Location
- DecayEntity::OnDecay(Decay decay, float decayDeltaTime)
csharp
//---
{
num3 -= decayPoint.protection;
}
}
}
if (Interface.CallHook("OnDecayDamage", this) == null && num3 > 0f)
{
float num4 = num / GetEntityDecayDuration() * MaxHealth();
Hurt(num4 * num3 * decayVariance, DamageType.Decay);
}
}
//---