ability_player::register_gadget_activation_callbacks()
Registers gadget activation callbacks. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
ability_player::register_gadget_activation_callbacks(type, turn_on, turn_off)
Needs #using the script that defines it (scripts/shared/abilities/_ability_player.gsc).
Parameters
| Name |
|---|
| type |
| turn_on |
| turn_off |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 37 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_hero_weapon.gsc, line 52
ability_player::register_gadget_activation_callbacks(14, &gadget_hero_weapon_on_activate, &gadget_hero_weapon_on_off); - scripts/shared/abilities/gadgets/_gadget_active_camo.gsc, line 38
ability_player::register_gadget_activation_callbacks(31, &camo_gadget_on, &camo_gadget_off); - scripts/shared/abilities/gadgets/_gadget_armor.gsc, line 41
ability_player::register_gadget_activation_callbacks(4, &gadget_armor_on, &gadget_armor_off); - scripts/shared/abilities/gadgets/_gadget_cacophany.gsc, line 39
ability_player::register_gadget_activation_callbacks(25, &gadget_cacophany_on, &gadget_cacophany_off); - scripts/shared/abilities/gadgets/_gadget_camo.gsc, line 38
ability_player::register_gadget_activation_callbacks(2, &camo_gadget_on, &camo_gadget_off);
More in ability_player::
- ability_player::register_gadget_flicker_callbacks()Registers gadget flicker callbacks.
- ability_player::register_gadget_is_flickering_callbacks()Registers gadget is flickering callbacks.
- ability_player::register_gadget_is_inuse_callbacks()Registers gadget is inuse callbacks.
- ability_player::register_gadget_possession_callbacks()Registers gadget possession callbacks.
- ability_player::register_gadget_primed_callbacks()Registers gadget primed callbacks.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).