OnProjectileRicochet
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnProjectileRicochet( BasePlayer instance, PlayerProjectileRicochet playerProjectileRicochet )
{
Puts( "OnProjectileRicochet works!" );
}
Location
- BasePlayer::OnProjectileRicochet(BaseEntity/RPCMessage msg)
csharp
//---
{
AntiHack.Log(this, AntiHackType.ProjectileHack, "Lifetime is zero (" + playerProjectileRicochet.projectileID.ToString() + ")", true);
playerProjectileRicochet.ResetToPool();
return;
}
if (Interface.CallHook("OnProjectileRicochet", this, playerProjectileRicochet) != null)
{
return;
}
firedProjectile.ricochets++;
this.firedProjectiles[playerProjectileRicochet.projectileID] = firedProjectile;
//---