OnProjectileRicochet
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnProjectileRicochet( BasePlayer instance, ProtoBuf.PlayerProjectileRicochet playerProjectileRicochet )
{
Puts( "OnProjectileRicochet works!" );
return null;
}Location
- BasePlayer::OnProjectileRicochet(BaseEntity.RPCMessage msg)
csharp
//---
}
else if (value.firedTime < Time.realtimeSinceStartup - 8f)
{
AntiHack.Log(this, AntiHackType.ProjectileHack, $"Lifetime is zero ({playerProjectileRicochet.projectileID})");
}
else if (Interface.CallHook("OnProjectileRicochet", this, playerProjectileRicochet) == null)
{
value.ricochets++;
firedProjectiles[playerProjectileRicochet.projectileID] = value;
}
}
//---