OnPlayerLand
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerLand( BasePlayer instance, float num )
{
Puts( "OnPlayerLand works!" );
}
Location
- BasePlayer::ApplyFallDamageFromVelocity(float velocity)
csharp
//---
float num = Mathf.InverseLerp(-15f, -100f, velocity);
if (num == 0f)
{
return;
}
if (Interface.CallHook("OnPlayerLand", this, num) != null)
{
return;
}
this.metabolism.bleeding.Add(num * 0.5f);
float num2 = num * 500f;
//---