Seasonal (9)

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 compatible within Carbon and Oxide.

  • Patches AdventCalendar.WasAwardedTodaysGift of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches AdventCalendar.AwardGift of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches AdventCalendar.AwardGift of Assembly-CSharp.dll.

Example
void OnAdventGiftAwarded(AdventCalendar self)
{
    Puts("OnAdventGiftAwarded was called!");
}

This hook requires OnAdventGiftAward, which loads alongside OnAdventGiftAwarded.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches CollectableEasterEgg.RPC_PickUp of Assembly-CSharp.dll.

Example
object OnEventCollectablePickup(BasePlayer player, CollectableEasterEgg self)
{
    Puts("OnEventCollectablePickup was called!");
    return (object) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches EggHuntEvent.Update of Assembly-CSharp.dll.

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

  • This hook is Carbon-only compatible.

  • Patches EggHuntEvent.StartEvent of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches XMasRefill.DistributeGiftsForPlayer of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches XMasRefill.ServerInit of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches Stocking.SpawnLoot of Assembly-CSharp.dll.

Example
object OnXmasStockingFill(Stocking self)
{
    Puts("OnXmasStockingFill was called!");
    return (object) null;
}

Last updated