OnBallistaGunReload
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? OnBallistaGunReload( BallistaGun instance, BasePlayer player )
{
Puts( "OnBallistaGunReload works!" );
return null;
}Location
- BallistaGun::SERVER_ReloadStart(BaseEntity.RPCMessage msg)
csharp
//---
private void SERVER_ReloadStart(RPCMessage msg)
{
BasePlayer player = msg.player;
BasePlayer mounted = GetMounted();
if (!(mounted == null) && !(player == null) && !(player != mounted) && !UnableToStartReloadServer(player) && Interface.CallHook("OnBallistaGunReload", this, player) == null)
{
reloadingPlayer = player;
using (FlagsUpdateScope flagsUpdateScope = StartSetFlags(FlagsUpdateMode.SendNetworkUpdate))
{
flagsUpdateScope.Set(Flags.Reserved4, b: true);
//---