Firework (6)

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 PatternFirework.PlayerCanModify of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches BaseFirework.OnAttacked of Assembly-CSharp.dll.

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

  • This hook is compatible within Carbon and Oxide.

  • Patches PatternFirework.ServerSetFireworkDesign of Assembly-CSharp.dll.

Example
object OnFireworkDesignChange(PatternFirework PatternFirework , ProtoBuf.PatternFirework.Design Design , BasePlayer BasePlayer )
{
    Puts("OnFireworkDesignChange was called!");
    return (object) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches PatternFirework.ServerSetFireworkDesign of Assembly-CSharp.dll.

Example
void OnFireworkDesignChanged(PatternFirework PatternFirework , ProtoBuf.PatternFirework.Design Design , BasePlayer BasePlayer )
{
    Puts("OnFireworkDesignChanged was called!");
}

This hook requires OnFireworkDesignChange, which loads alongside OnFireworkDesignChanged.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches BaseFirework.OnExhausted of Assembly-CSharp.dll.

Example
void OnFireworkExhausted(BaseFirework BaseFirework )
{
    Puts("OnFireworkExhausted was called!");
}
  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches BaseFirework.Begin of Assembly-CSharp.dll.

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

Last updated