‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_zm_weap_rocketshield.csc
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\system_shared;
6 #using scripts\shared\util_shared;
7 
8 #insert scripts\shared\shared.gsh;
9 #insert scripts\shared\version.gsh;
10 
11 #using scripts\zm\_zm_weapons;
12 
13 #using scripts\zm\_zm_weap_riotshield;
14 #using scripts\zm\craftables\_zm_craft_shield;
15 
16 #namespace zm_equip_turret;
17 
18 ‪REGISTER_SYSTEM( "zm_weap_rocketshield", &‪__init__, undefined )
19 
20 function ‪__init__()
21 {
23 }
24 
25 
26 function ‪set_rocketshield_ammo( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
27 {
28  if( newVal == 1 )
29  {
30  self MapShaderConstant( localClientNum, 0, "scriptVector2", 0, 1, 0, 0 );
31  }
32  else
33  {
34  self MapShaderConstant( localClientNum, 0, "scriptVector2", 0, 0, 0, 0 );
35  }
36 }
37 
38 
39 
‪__init__
‪function __init__()
Definition: _zm_weap_rocketshield.csc:20
‪CF_CALLBACK_ZERO_ON_NEW_ENT
‪#define CF_CALLBACK_ZERO_ON_NEW_ENT
Definition: version.gsh:103
‪VERSION_SHIP
‪#define VERSION_SHIP
Definition: version.gsh:36
‪set_rocketshield_ammo
‪function set_rocketshield_ammo(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _zm_weap_rocketshield.csc:26
‪CF_HOST_ONLY
‪#define CF_HOST_ONLY
Definition: version.gsh:102
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪register
‪function register()
Definition: _ai_tank.gsc:126