‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_gadget_other.gsc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\callbacks_shared;
4 #using scripts\shared\clientfield_shared;
5 #using scripts\shared\flagsys_shared;
6 #using scripts\shared\visionset_mgr_shared;
7 #using scripts\shared\spawner_shared;
8 
9 #using scripts\shared\abilities\_ability_player;
10 #using scripts\shared\abilities\_ability_util;
11 
12 #insert scripts\shared\shared.gsh;
13 #insert scripts\shared\version.gsh;
14 #insert scripts\shared\abilities\_ability_util.gsh;
15 
16 #using scripts\shared\system_shared;
17 
18 ‪REGISTER_SYSTEM( "gadget_other", &‪__init__, undefined )
19 
20 function ‪__init__()
21 {
28 
29  //callback::on_connect( &gadget_other_on_connect );
30  //callback::on_spawned( &gadget_other_on_spawn );
31 }
32 
33 function ‪gadget_other_is_inuse( slot )
34 {
35  // returns true when the gadget is on
36  return self GadgetIsActive( slot );
37 }
38 
40 {
41  // returns true when the gadget is flickering
42  return self GadgetFlickering( slot );
43 }
44 
45 function ‪gadget_other_on_flicker( slot, weapon )
46 {
47  // excuted when the gadget flickers
48 }
49 
50 function ‪gadget_other_on_give( slot, weapon )
51 {
52  // executed when gadget is added to the players inventory
53 }
54 
55 function ‪gadget_other_on_take( slot, weapon )
56 {
57  // executed when gadget is removed from the players inventory
58 }
59 
60 //self is the player
62 {
63  // setup up stuff on player connect
64 }
65 
66 //self is the player
68 {
69  // setup up stuff on player spawn
70 }
71 
72 function ‪gadget_other_on_activate( slot, weapon )
73 {
74 }
75 
76 function ‪gadget_other_on_off( slot, weapon )
77 {
78 }
79 
80 function ‪gadget_other_ready( slot, weapon )
81 {
82  // unused
83 }
84 
85 function ‪set_gadget_other_status( weapon, status, time )
86 {
87  timeStr = "";
88 
89  if ( IsDefined( time ) )
90  {
91  timeStr = "^3" + ", time: " + time;
92  }
93 
94  if ( GetDvarInt( "scr_cpower_debug_prints" ) > 0 )
95  self IPrintlnBold( "Gadget Other " + weapon.name + ": " + status + timeStr );
96 }
‪register_gadget_is_flickering_callbacks
‪function register_gadget_is_flickering_callbacks(type, flickering_func)
Definition: _ability_player.gsc:299
‪gadget_other_on_connect
‪function gadget_other_on_connect()
Definition: _gadget_other.gsc:61
‪set_gadget_other_status
‪function set_gadget_other_status(weapon, status, time)
Definition: _gadget_other.gsc:85
‪register_gadget_possession_callbacks
‪function register_gadget_possession_callbacks(type, on_give, on_take)
Definition: _ability_player.gsc:221
‪gadget_other_on_off
‪function gadget_other_on_off(slot, weapon)
Definition: _gadget_other.gsc:76
‪GADGET_TYPE_OTHER
‪#define GADGET_TYPE_OTHER
Definition: _ability_util.gsh:5
‪__init__
‪function __init__()
Definition: _gadget_other.gsc:20
‪register_gadget_is_inuse_callbacks
‪function register_gadget_is_inuse_callbacks(type, inuse_func)
Definition: _ability_player.gsc:289
‪gadget_other_on_spawn
‪function gadget_other_on_spawn()
Definition: _gadget_other.gsc:67
‪gadget_other_on_activate
‪function gadget_other_on_activate(slot, weapon)
Definition: _gadget_other.gsc:72
‪gadget_other_is_flickering
‪function gadget_other_is_flickering(slot)
Definition: _gadget_other.gsc:39
‪register_gadget_flicker_callbacks
‪function register_gadget_flicker_callbacks(type, on_flicker)
Definition: _ability_player.gsc:253
‪register_gadget_ready_callbacks
‪function register_gadget_ready_callbacks(type, ready_func)
Definition: _ability_player.gsc:265
‪register_gadget_activation_callbacks
‪function register_gadget_activation_callbacks(type, turn_on, turn_off)
Definition: _ability_player.gsc:237
‪gadget_other_on_flicker
‪function gadget_other_on_flicker(slot, weapon)
Definition: _gadget_other.gsc:45
‪gadget_other_is_inuse
‪function gadget_other_is_inuse(slot)
Definition: _gadget_other.gsc:33
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪gadget_other_on_give
‪function gadget_other_on_give(slot, weapon)
Definition: _gadget_other.gsc:50
‪gadget_other_ready
‪function gadget_other_ready(slot, weapon)
Definition: _gadget_other.gsc:80
‪gadget_other_on_take
‪function gadget_other_on_take(slot, weapon)
Definition: _gadget_other.gsc:55