OnWeaponFired
Usage
- No return behavior
Example Autogenerated
csharp
private void OnWeaponFired( BaseProjectile instance, BasePlayer player, ItemModProjectile component, ProjectileShoot projectileShoot )
{
Puts( "OnWeaponFired works!" );
}
Location
- BaseProjectile::CLProject(BaseEntity/RPCMessage msg)
csharp
//---
{
AntiHack.Log(player, AntiHackType.ProjectileHack, "Count mismatch (" + base.ShortPrefabName + ")", true);
player.stats.combat.LogInvalid(player, this, "count_mismatch");
return;
}
Interface.CallHook("OnWeaponFired", this, msg.player, component, projectileShoot);
if (player.InGesture)
{
return;
}
base.SignalBroadcast(BaseEntity.Signal.Attack, string.Empty, msg.connection, this.GetAttackEffect());
//---