Skip to content

IOnBasePlayerHurt

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 IOnBasePlayerHurt( BasePlayer instance, HitInfo info )
{
    Puts( "IOnBasePlayerHurt works!" );
}

Location

  • BasePlayer::Hurt(HitInfo info)
csharp
//---
	}
	if (this.IsImmortalTo(info) && info.damageTypes.Total() >= 0f)
	{
		return;
	}
	if (Interface.CallHook("IOnBasePlayerHurt", this, info) != null)
	{
		return;
	}
	if (ConVar.Server.pve && !this.IsNpc && info.Initiator && info.Initiator is BasePlayer && info.Initiator != this)
	{
//---

Released under the MIT License.