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