‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_glaive.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\filter_shared;
6 #using scripts\shared\system_shared;
7 #using scripts\shared\util_shared;
8 #using scripts\shared\vehicle_shared;
9 
10 #insert scripts\shared\shared.gsh;
11 #insert scripts\shared\version.gsh;
12 #insert scripts\shared\vehicles\_glaive.gsh;
13 
14 #namespace glaive;
15 
16 function autoexec ‪main()
17 {
19 }
20 
21 function private ‪glaiveBloodFxHandler( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
22 {
23  if ( IsDefined( self.bloodFxHandle ) )
24  {
25  StopFX( localClientNum, self.bloodFxHandle );
26  self.bloodFxHandle = undefined;
27  }
28 
29  settings = ‪struct::get_script_bundle( "vehiclecustomsettings", "glaivesettings" );
30 
31  if( IsDefined( settings ) )
32  {
33  if( newValue )
34  {
35  self.bloodFxHandle = PlayFXOnTag( localClientNum, settings.weakspotfx, self, "j_spineupper" );
36  }
37  }
38 }
‪GLAIVE_BLOOD_FX
‪#define GLAIVE_BLOOD_FX
Definition: _glaive.gsh:19
‪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
‪glaiveBloodFxHandler
‪function private glaiveBloodFxHandler(localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump)
Definition: _glaive.csc:21
‪CF_HOST_ONLY
‪#define CF_HOST_ONLY
Definition: version.gsh:102
‪main
‪function autoexec main()
Definition: _glaive.csc:16
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪get_script_bundle
‪function get_script_bundle(str_type, str_name)
Definition: struct.csc:45