Turret (14)

All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.UpdateInterferenceOnOthers of Assembly-CSharp.dll.

Example
object OnInterferenceOthersUpdate(AutoTurret self)
{
    Puts("OnInterferenceOthersUpdate was called!");
    return (object) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.UpdateInterference of Assembly-CSharp.dll.

Example
object OnInterferenceUpdate(AutoTurret self)
{
    Puts("OnInterferenceUpdate was called!");
    return (object) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.UpdateNearbyTurrets of Assembly-CSharp.dll.

Example
object OnNearbyTurretsScan()
{
    Puts("OnNearbyTurretsScan was called!");
    return (object) null;
}
  • Called when a player attempts to authorize another player on a turret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.AssignToFriend of Assembly-CSharp.dll.

Example
object OnTurretAssign(AutoTurret self, ulong local0, BasePlayer player)
{
    Puts("OnTurretAssign was called!");
    return (object) null;
}
  • Called when a player has been authorized on a turret by another player.

  • No return behaviour.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.AssignToFriend of Assembly-CSharp.dll.

Example
void OnTurretAssigned(AutoTurret self, ulong local0, BasePlayer player)
{
    Puts("OnTurretAssigned was called!");
}

This hook requires OnTurretAssign, which loads alongside OnTurretAssigned.

  • Called when a player attempts to authorize on a turret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.AddSelfAuthorize of Assembly-CSharp.dll.

Example
object OnTurretAuthorize(AutoTurret self, BasePlayer player)
{
    Puts("OnTurretAuthorize was called!");
    return (object) null;
}
  • Called when a player attempts to clear an autoturret's authorized list.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.ClearList of Assembly-CSharp.dll.

Example
object OnTurretClearList()
{
    Puts("OnTurretClearList was called!");
    return (object) null;
}
  • Called when a player is deauthorized on an autoturret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.RemoveSelfAuthorize of Assembly-CSharp.dll.

Example
object OnTurretDeauthorize(AutoTurret self, BasePlayer player)
{
    Puts("OnTurretDeauthorize was called!");
    return (object) null;
}
  • Called when the mode of an autoturrent is toggled.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SetPeacekeepermode of Assembly-CSharp.dll.

Example
void OnTurretModeToggle(AutoTurret self)
{
    Puts("OnTurretModeToggle was called!");
}
  • Called when a player tries to rotate an auto turret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.FlipAim of Assembly-CSharp.dll.

Example
object OnTurretRotate(AutoTurret self, BasePlayer player)
{
    Puts("OnTurretRotate was called!");
    return (object) null;
}
  • Called when an autoturret is shut down.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.InitiateShutdown of Assembly-CSharp.dll.

Example
object OnTurretShutdown(AutoTurret self)
{
    Puts("OnTurretShutdown was called!");
    return (object) null;
}
  • Called when an autoturret starts up.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.InitiateStartup of Assembly-CSharp.dll.

Example
object OnTurretStartup(AutoTurret self)
{
    Puts("OnTurretStartup was called!");
    return (object) null;
}
  • Called when an autoturret attempts to target an entity.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SetTarget of Assembly-CSharp.dll.

Example
object OnTurretTarget(AutoTurret self)
{
    Puts("OnTurretTarget was called!");
    return (object) null;
}
  • Called when an autoturret toggles powerstate (on/off).

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SetIsOnline of Assembly-CSharp.dll.

Example
object OnTurretToggle(AutoTurret self)
{
    Puts("OnTurretToggle was called!");
    return (object) null;
}

Last updated