‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_zm_weap_bowie.gsc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #insert scripts\shared\shared.gsh;
4 
5 #using scripts\shared\system_shared;
6 
7 #using scripts\zm\_zm_melee_weapon;
8 #using scripts\zm\_zm_weapons;
9 
10 #insert scripts\zm\_zm_utility.gsh;
11 
12 ‪REGISTER_SYSTEM_EX( "bowie_knife", &‪__init__, &‪__main__, undefined )
13 
14 function private ‪__init__()
15 {
16 }
17 
18 function private ‪__main__()
19 {
20  if( isdefined( level.bowie_cost ) )
21  {
22  cost = level.bowie_cost;
23  }
24  else
25  {
26  cost = 3000;
27  }
28 
29  prompt = &"ZOMBIE_WEAPONCOSTONLY_CFILL";
30  if (!‪IS_TRUE( level.weapon_cost_client_filled ))
31  {
32  prompt = &"ZOMBIE_WEAPON_BOWIE_BUY";
33  }
34 
35  ‪zm_melee_weapon::init( "bowie_knife",
36  "bowie_flourish",
37  "knife_ballistic_bowie",
38  "knife_ballistic_bowie_upgraded",
39  cost,
40  "bowie_upgrade",
41  prompt,
42  "bowie",
43  undefined);
44 
45  ‪zm_melee_weapon::set_fallback_weapon( "bowie_knife", "zombie_fists_bowie" );
46 
47 
48  ‪zm_weapons::add_retrievable_knife_init_name( "knife_ballistic_bowie" );
49  ‪zm_weapons::add_retrievable_knife_init_name( "knife_ballistic_bowie_upgraded" );
50 }
51 
52 function ‪init()
53 {
54 }
‪__init__
‪function private __init__()
Definition: _zm_weap_bowie.gsc:14
‪IS_TRUE
‪#define IS_TRUE(__a)
Definition: shared.gsh:251
‪__main__
‪function private __main__()
Definition: _zm_weap_bowie.gsc:18
‪REGISTER_SYSTEM_EX
‪#define REGISTER_SYSTEM_EX(__sys, __func_init_preload, __func_init_postload, __reqs)
Definition: shared.gsh:209
‪set_fallback_weapon
‪function set_fallback_weapon(weapon_name, fallback_weapon_name)
Definition: _zm_melee_weapon.gsc:185
‪add_retrievable_knife_init_name
‪function add_retrievable_knife_init_name(name)
Definition: _zm_weapons.gsc:333
‪init
‪function init()
Definition: _zm_weap_bowie.gsc:52