‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
archetype_direwolf.csc
Go to the documentation of this file.
1 #using scripts\shared\ai_shared;
2 #using scripts\shared\clientfield_shared;
3 #using scripts\shared\system_shared;
4 
5 #insert scripts\shared\shared.gsh;
6 #insert scripts\shared\version.gsh;
7 #insert scripts\shared\ai\archetype_direwolf.gsh;
8 #insert scripts\shared\archetype_shared\archetype_shared.gsh;
9 
10 #precache( "client_fx", DIREWOLF_EYE_GLOW_FX_FILE );
11 
12 #namespace ArchetypeDirewolf;
13 
14 ‪REGISTER_SYSTEM( "direwolf", &‪__init__, undefined )
15 
16 function autoexec ‪precache()
17 {
19 }
20 
21 function ‪__init__()
22 {
24  {
26  "actor",
34  }
35 }
36 
37 function private ‪direwolfEyeGlowFxHandler( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
38 {
39  entity = self;
40 
41  if ( IsDefined( entity.archetype ) && entity.archetype != "direwolf" )
42  {
43  return;
44  }
45 
46  if ( IsDefined( entity.eyeGlowFx ) )
47  {
48  StopFx( localClientNum, entity.eyeGlowFx );
49  entity.eyeGlowFx = undefined;
50  }
51 
52  if ( newValue )
53  {
54  entity.eyeGlowFx = PlayFxOnTag( localClientNum, level._effect[ ‪DIREWOLF_EYE_GLOW_FX ], entity, ‪DIREWOLF_EYE_GLOW_FX_TAG );
55  }
56 }
‪__init__
‪function __init__()
Definition: archetype_direwolf.csc:21
‪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
‪DIREWOLF_EYE_GLOW_FX_FILE
‪#define DIREWOLF_EYE_GLOW_FX_FILE
Definition: archetype_direwolf.gsh:18
‪DIREWOLF_EYE_GLOW_FX_TYPE
‪#define DIREWOLF_EYE_GLOW_FX_TYPE
Definition: archetype_direwolf.gsh:9
‪ARCHETYPE_DIREWOLF
‪#define ARCHETYPE_DIREWOLF
Definition: archetype_shared.gsh:12
‪CF_HOST_ONLY
‪#define CF_HOST_ONLY
Definition: version.gsh:102
‪precache
‪function autoexec precache()
Definition: archetype_direwolf.csc:16
‪DIREWOLF_EYE_GLOW_FX
‪#define DIREWOLF_EYE_GLOW_FX
Definition: archetype_direwolf.gsh:17
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪direwolfEyeGlowFxHandler
‪function private direwolfEyeGlowFxHandler(localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump)
Definition: archetype_direwolf.csc:37
‪shouldRegisterClientFieldForArchetype
‪function shouldRegisterClientFieldForArchetype(archetype)
Definition: ai_shared.csc:72
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪DIREWOLF_EYE_GLOW_FX_CLIENTFIELD
‪#define DIREWOLF_EYE_GLOW_FX_CLIENTFIELD
Definition: archetype_direwolf.gsh:7
‪DIREWOLF_EYE_GLOW_FX_TAG
‪#define DIREWOLF_EYE_GLOW_FX_TAG
Definition: archetype_direwolf.gsh:19
‪DIREWOLF_EYE_GLOW_FX_BITS
‪#define DIREWOLF_EYE_GLOW_FX_BITS
Definition: archetype_direwolf.gsh:8