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.

CanBeAwardedAdventGift

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

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

Example
void CanBeAwardedAdventGift()
{
    Puts("CanBeAwardedAdventGift was called!");
}

OnAdventGiftAward

  • 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 AdventCalendar )
{
    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 AdventCalendar )
{
    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 BasePlayer , CollectableEasterEgg CollectableEasterEgg )
{
    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 EggHuntEvent )
{
    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 EggHuntEvent )
{
    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
void OnXmasGiftsDistribute()
{
    Puts("OnXmasGiftsDistribute was called!");
}
  • 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 XMasRefill )
{
    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 Stocking )
{
    Puts("OnXmasStockingFill was called!");
    return (object) null;
}

Last updated