‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_zm_aat_turned.csc
Go to the documentation of this file.
1 #using scripts\shared\aat_shared;
2 #using scripts\shared\array_shared;
3 #using scripts\shared\clientfield_shared;
4 #using scripts\shared\system_shared;
5 
6 #insert scripts\shared\aat_zm.gsh;
7 #insert scripts\shared\shared.gsh;
8 #insert scripts\shared\version.gsh;
9 
10 #insert scripts\zm\aats\_zm_aat_turned.gsh;
11 
12 #insert scripts\zm\_zm_utility.gsh;
13 
14 #precache( "client_fx", ZM_AAT_TURNED_ZOMBIE_EYE_FX );
15 #precache( "client_fx", ZM_AAT_TURNED_ZOMBIE_TORSO_FX );
16 
17 #namespace zm_aat_turned;
18 
20 
21 function ‪__init__()
22 {
23  if ( !‪IS_TRUE( level.aat_in_use ) )
24  {
25  return;
26  }
27 
29 
31 }
32 
33 // self == targeted zombie
34 function ‪zm_aat_turned_cb( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
35 {
36  if ( newVal )
37  {
38  self SetDrawName( MakeLocalizedString( ‪ZM_AAT_TURNED_NAME_LOCALIZED_STRING ), true );
39 
40  self.fx_aat_turned_eyes = PlayFXOnTag( localClientNum, ‪ZM_AAT_TURNED_ZOMBIE_EYE_FX, self, "j_eyeball_le" );
41  self.fx_aat_turned_torso = PlayFXOnTag( localClientNum, ‪ZM_AAT_TURNED_ZOMBIE_TORSO_FX, self, "j_spine4" );
42  self PlaySound( localClientNum, ‪ZM_AAT_TURNED_SOUND );
43  }
44  else
45  {
46  if ( isdefined( self.fx_aat_turned_eyes ) )
47  {
48  StopFX( localClientNum, self.fx_aat_turned_eyes );
49  self.fx_aat_turned_eyes = undefined;
50  }
51  if ( isdefined( self.fx_aat_turned_torso ) )
52  {
53  StopFX( localClientNum, self.fx_aat_turned_torso );
54  self.fx_aat_turned_torso = undefined;
55  }
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
‪ZM_AAT_TURNED_SOUND
‪#define ZM_AAT_TURNED_SOUND
Definition: _zm_aat_turned.gsh:17
‪__init__
‪function __init__()
Definition: _zm_aat_turned.csc:21
‪IS_TRUE
‪#define IS_TRUE(__a)
Definition: shared.gsh:251
‪zm_aat_turned_cb
‪function zm_aat_turned_cb(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _zm_aat_turned.csc:34
‪ZM_AAT_TURNED_ZOMBIE_EYE_FX
‪#define ZM_AAT_TURNED_ZOMBIE_EYE_FX
Definition: _zm_aat_turned.gsh:15
‪ZM_AAT_TURNED_ZOMBIE_TORSO_FX
‪#define ZM_AAT_TURNED_ZOMBIE_TORSO_FX
Definition: _zm_aat_turned.gsh: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
‪ZM_AAT_TURNED_NAME
‪#define ZM_AAT_TURNED_NAME
Definition: aat_zm.gsh:8
‪ZM_AAT_TURNED_NAME_LOCALIZED_STRING
‪#define ZM_AAT_TURNED_NAME_LOCALIZED_STRING
Definition: _zm_aat_turned.gsh:3
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪ZM_AAT_TURNED_ICON
‪#define ZM_AAT_TURNED_ICON
Definition: _zm_aat_turned.gsh:4