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
//---
info.damageTypes.Scale(DamageType.Bullet, ConVar.Server.bulletdamage);
info.damageTypes.Scale(DamageType.Slash, ConVar.Server.meleedamage);
info.damageTypes.Scale(DamageType.Blunt, ConVar.Server.meleedamage);
info.damageTypes.Scale(DamageType.Stab, ConVar.Server.meleedamage);
info.damageTypes.Scale(DamageType.Bleeding, ConVar.Server.bleedingdamage);
if (Interface.CallHook("IOnBaseCombatEntityHurt", this, info) != null)
{
return;
}
if (base.Components != null)
{
//---