‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_zm_aat_fire_works.csc
Go to the documentation of this file.
1 #using scripts\shared\aat_shared;
2 #using scripts\shared\clientfield_shared;
3 #using scripts\shared\system_shared;
4 
5 #insert scripts\shared\aat_zm.gsh;
6 #insert scripts\shared\shared.gsh;
7 #insert scripts\shared\version.gsh;
8 
9 #insert scripts\zm\aats\_zm_aat_fire_works.gsh;
10 
11 #insert scripts\zm\_zm_utility.gsh;
12 
13 #precache( "client_fx", ZM_AAT_FIRE_WORKS_SUMMON_FX );
14 #precache( "client_fx", ZM_AAT_FIRE_WORKS_SUMMON_TRAIL_FX );
15 #precache( "client_fx", ZM_AAT_FIRE_WORKS_SUMMON_BURST_FX );
16 
17 #namespace zm_aat_fire_works;
18 
20 
21 function ‪__init__()
22 {
23  if ( !‪IS_TRUE( level.aat_in_use ) )
24  {
25  return;
26  }
27 
29 
31 
33 }
34 
35 // self == targeted zombie
36 function ‪zm_aat_fire_works_summon( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
37 {
38  if ( newVal )
39  {
40  self.aat_fire_works_fx = PlayFX( localClientNum, ‪ZM_AAT_FIRE_WORKS_SUMMON_FX, self.origin, AnglesToForward( self.angles ) );
41  PlaySound( localClientNum, ‪ZM_AAT_FIRE_WORKS_EXPLODE_SOUND, self.origin );
42  if ( IsDemoPlaying() )
43  {
44  self thread ‪kill_fx_on_demo_jump(localClientNum);
45  }
46  }
47  else
48  {
49  if ( isdefined( self.aat_fire_works_fx ) )
50  {
51  self notify( "kill_fx_on_demo_jump" );
52  StopFX( localClientNum, self.aat_fire_works_fx );
53  self.aat_fire_works_fx = undefined;
54  }
55  }
56 }
57 
58 
59 function ‪kill_fx_on_demo_jump(localClientNum)
60 {
61  self notify( "kill_fx_on_demo_jump" );
62  self endon( "kill_fx_on_demo_jump" );
63  level waittill("demo_jump");
64  if ( isdefined( self.aat_fire_works_fx ) )
65  {
66  StopFX( localClientNum, self.aat_fire_works_fx );
67  self.aat_fire_works_fx = undefined;
68  }
69 }
‪ZM_AAT_FIRE_WORKS_SUMMON_FX
‪#define ZM_AAT_FIRE_WORKS_SUMMON_FX
Definition: _zm_aat_fire_works.gsh:12
‪kill_fx_on_demo_jump
‪function kill_fx_on_demo_jump(localClientNum)
Definition: _zm_aat_fire_works.csc:59
‪ZM_AAT_FIRE_WORKS_LOCALIZED_STRING
‪#define ZM_AAT_FIRE_WORKS_LOCALIZED_STRING
Definition: _zm_aat_fire_works.gsh:3
‪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
‪ZM_AAT_FIRE_WORKS_EXPLODE_SOUND
‪#define ZM_AAT_FIRE_WORKS_EXPLODE_SOUND
Definition: _zm_aat_fire_works.gsh:22
‪__init__
‪function __init__()
Definition: _zm_aat_fire_works.csc:21
‪IS_TRUE
‪#define IS_TRUE(__a)
Definition: shared.gsh:251
‪ZM_AAT_FIRE_WORKS_ICON
‪#define ZM_AAT_FIRE_WORKS_ICON
Definition: _zm_aat_fire_works.gsh:4
‪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
‪zm_aat_fire_works_summon
‪function zm_aat_fire_works_summon(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _zm_aat_fire_works.csc:36
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪ZM_AAT_FIRE_WORKS_NAME
‪#define ZM_AAT_FIRE_WORKS_NAME
Definition: aat_zm.gsh:6