‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_siegebot_theia.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\clientfield_shared;
4 #using scripts\shared\filter_shared;
5 #using scripts\shared\system_shared;
6 #using scripts\shared\util_shared;
7 #using scripts\shared\vehicle_shared;
8 
9 #insert scripts\shared\shared.gsh;
10 #insert scripts\shared\version.gsh;
11 
12 #namespace siegebot_theia;
13 
14 ‪REGISTER_SYSTEM( "siegebot_theia", &‪__init__, undefined )
15 
16 function ‪__init__()
17 {
19 
22 }
23 
24 function ‪_setup_( localClientNum )
25 {
26 }
27 
28 //Rumble and quake when sarah jumps and lands
29 function ‪sarah_rumble_on_landing( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
30 {
31  self PlayRumbleOnEntity(localClientNum, "cp_infection_sarah_battle_land" );
32 }
33 
34 function ‪sarah_minigun_spin( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
35 {
36  if( !isdefined( self.scriptbundlesettings ) )
37  {
38  return;
39  }
40 
41  settings = ‪struct::get_script_bundle( "vehiclecustomsettings", self.scriptbundlesettings );
42 
43  if ( !isdefined( settings ) )
44  {
45  return;
46  }
47 
48  if ( isdefined( self.minigun_spin_fx_handle ) )
49  {
50  DeleteFX( localClientNum, self.minigun_spin_fx_handle );
51  }
52 
53  if ( newVal )
54  {
55  self.minigun_spin_fx_handle = PlayFXOnTag( localClientNum, settings.spin, self, settings.tag_spin );
56  }
57 }
‪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
‪__init__
‪function __init__()
Definition: _siegebot_theia.csc:16
‪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
‪add_vehicletype_callback
‪function add_vehicletype_callback(vehicletype, callback)
Definition: vehicle_shared.csc:77
‪sarah_rumble_on_landing
‪function sarah_rumble_on_landing(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _siegebot_theia.csc:29
‪_setup_
‪function _setup_(localClientNum)
Definition: _siegebot_theia.csc:24
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪get_script_bundle
‪function get_script_bundle(str_type, str_name)
Definition: struct.csc:45
‪sarah_minigun_spin
‪function sarah_minigun_spin(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _siegebot_theia.csc:34