Skip to content

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;
	}
	float num2 = (this.modifiers != null) ? Mathf.Clamp01(1f - this.modifiers.GetValue(Modifier.ModifierType.Clotting, 0f)) : 1f;
	this.metabolism.bleeding.Add(num * 0.5f * num2);
//---

Released under the MIT License.