IOnBaseCombatEntityHurt
WARNING
This is an internal hook and will not be called in plugins. See Internal Hooks for more information.
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void IOnBaseCombatEntityHurt( BaseCombatEntity instance, HitInfo info )
{
Puts( "IOnBaseCombatEntityHurt works!" );
}Location
- BaseCombatEntity::Hurt(HitInfo info)
csharp
//---
{
amount = 0f;
}
info.damageTypes.Scale(DamageType.Paintball, amount);
}
if (Interface.CallHook("IOnBaseCombatEntityHurt", this, info) != null)
{
return;
}
this.DebugHurt(info);
float num = info.damageTypes.Total();
//---