‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
skeleton.csc
Go to the documentation of this file.
1 #using scripts\shared\ai_shared;
2 #using scripts\shared\clientfield_shared;
3 #using scripts\shared\ai\systems\gib;
4 #using scripts\shared\system_shared;
5 
6 #insert scripts\shared\shared.gsh;
7 #insert scripts\shared\version.gsh;
8 #insert scripts\shared\ai\skeleton.gsh;
9 #insert scripts\shared\ai\systems\gib.gsh;
10 #insert scripts\shared\archetype_shared\archetype_shared.gsh;
11 
12 ‪REGISTER_SYSTEM( "skeleton", &‪__init__, undefined )
13 
14 function autoexec ‪precache()
15 {
16 }
17 
18 function ‪__init__()
19 {
21  {
23  "actor",
26  1,
27  "int",
31  }
32 }
33 
34 #namespace ZombieClientUtils;
35 
36 function ‪zombieHandler( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
37 {
38  entity = self;
39 
40  if ( IsDefined( entity.archetype ) && entity.archetype != "zombie" )
41  {
42  return;
43  }
44 
45  if ( !IsDefined( entity.initializedGibCallbacks ) || !entity.initializedGibCallbacks )
46  {
47  entity.initializedGibCallbacks = true;
48 
54  }
55 }
56 
57 function private ‪_gibCallback( localClientNum, entity, gibFlag )
58 {
59  switch (gibFlag)
60  {
62  playsound(0, "zmb_zombie_head_gib", self.origin);
63  break;
68  playsound(0, "zmb_death_gibs", self.origin);
69  break;
70  }
71 }
‪GIB_LEGS_RIGHT_LEG_FLAG
‪#define GIB_LEGS_RIGHT_LEG_FLAG
Definition: gib.gsh:28
‪AddGibCallback
‪function AddGibCallback(localClientNum, entity, gibFlag, callbackFunction)
Definition: gib.csc:608
‪__init__
‪function __init__()
Definition: skeleton.csc:18
‪ARCHETYPE_SKELETON
‪#define ARCHETYPE_SKELETON
Definition: archetype_shared.gsh:14
‪GIB_TORSO_RIGHT_ARM_FLAG
‪#define GIB_TORSO_RIGHT_ARM_FLAG
Definition: gib.gsh:25
‪precache
‪function autoexec precache()
Definition: skeleton.csc:14
‪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
‪zombieHandler
‪function zombieHandler(localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump)
Definition: skeleton.csc:36
‪GIB_LEGS_LEFT_LEG_FLAG
‪#define GIB_LEGS_LEFT_LEG_FLAG
Definition: gib.gsh:29
‪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
‪GIB_TORSO_LEFT_ARM_FLAG
‪#define GIB_TORSO_LEFT_ARM_FLAG
Definition: gib.gsh:26
‪SKELETON_CLIENTFIELD
‪#define SKELETON_CLIENTFIELD
Definition: skeleton.gsh:30
‪shouldRegisterClientFieldForArchetype
‪function shouldRegisterClientFieldForArchetype(archetype)
Definition: ai_shared.csc:72
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪_gibCallback
‪function private _gibCallback(localClientNum, entity, gibFlag)
Definition: skeleton.csc:57
‪GIB_TORSO_HEAD_FLAG
‪#define GIB_TORSO_HEAD_FLAG
Definition: gib.gsh:24