OnPlayerWound
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnPlayerWound( BasePlayer instance, HitInfo info )
{
Puts( "OnPlayerWound works!" );
return null;
}Location
- BasePlayer::BecomeWounded(HitInfo info)
csharp
public void BecomeWounded(HitInfo info)
{
if (IsWounded() || Interface.CallHook("OnPlayerWound", this, info) != null)
{
return;
}
bool flag = info != null && info.damageTypes.GetMajorityDamageType() == DamageType.Fall;
if (IsCrawling())
//---