OnTurretDeauthorize
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTurretDeauthorize( AutoTurret instance, BasePlayer player )
{
Puts( "OnTurretDeauthorize works!" );
}
Location
- AutoTurret::RemoveSelfAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
BaseEntity.RPCMessage rpc = rpc2;
if (this.booting || this.IsOnline() || !this.IsAuthed(rpc.player))
{
return;
}
if (Interface.CallHook("OnTurretDeauthorize", this, rpc2.player) != null)
{
return;
}
this.authorizedPlayers.RemoveWhere((PlayerNameID x) => x.userid == rpc.player.userID);
this.authDirty = true;
//---