‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
margwa.gsh
Go to the documentation of this file.
1 //
3 // Margwa Defines
4 //
6 
7 #define MARGWA_MODEL_BODY "c_zom_margwa_body_jaw"
8 
9 #define MARGWA_MODEL_HEAD_LEFT "c_zom_margwa_chunks_le"
10 #define MARGWA_MODEL_HEAD_MID "c_zom_margwa_chunks_mid"
11 #define MARGWA_MODEL_HEAD_RIGHT "c_zom_margwa_chunks_ri"
12 
13 #define MARGWA_MODEL_GORE_LEFT "c_zom_margwa_gore_le"
14 #define MARGWA_MODEL_GORE_MID "c_zom_margwa_gore_mid"
15 #define MARGWA_MODEL_GORE_RIGHT "c_zom_margwa_gore_ri"
16 
17 // bones used for precision damage
18 #define MARGWA_TAG_CHUNK_LEFT "j_chunk_head_bone_le"
19 #define MARGWA_TAG_JAW_LEFT "j_jaw_lower_1_le"
20 #define MARGWA_TAG_HEAD_LEFT "tag_head_left"
21 
22 #define MARGWA_TAG_CHUNK_MID "j_chunk_head_bone"
23 #define MARGWA_TAG_JAW_MID "j_jaw_lower_1"
24 #define MARGWA_TAG_HEAD_MID "tag_head_mid"
25 
26 #define MARGWA_TAG_CHUNK_RIGHT "j_chunk_head_bone_ri"
27 #define MARGWA_TAG_JAW_RIGHT "j_jaw_lower_1_ri"
28 #define MARGWA_TAG_HEAD_RIGHT "tag_head_right"
29 
30 #define MARGWA_HEAD_TAG "j_neck_over"
31 
32 #define MARGWA_NUM_HEADS 3
33 
34 #define MARGWA_HEAD_CLEAR 0
35 #define MARGWA_HEAD_OPEN 1
36 #define MARGWA_HEAD_CLOSED 2
37 #define MARGWA_HEAD_SMASH_ATTACK 3
38 
39 #define MARGWA_ANIM_HEAD_LEFT_OPEN "ai_margwa_head_l_open_add"
40 #define MARGWA_ANIM_HEAD_LEFT_CLOSED "ai_margwa_head_l_closed_add"
41 #define MARGWA_ANIM_HEAD_MID_OPEN "ai_margwa_head_m_open_add"
42 #define MARGWA_ANIM_HEAD_MID_CLOSED "ai_margwa_head_m_closed_add"
43 #define MARGWA_ANIM_HEAD_RIGHT_OPEN "ai_margwa_head_r_open_add"
44 #define MARGWA_ANIM_HEAD_RIGHT_CLOSED "ai_margwa_head_r_closed_add"
45 
46 #define MARGWA_ANIM_HEAD_LEFT_SMASH "ai_margwa_head_l_smash_attack_1"
47 #define MARGWA_ANIM_HEAD_MID_SMASH "ai_margwa_head_m_smash_attack_1"
48 #define MARGWA_ANIM_HEAD_RIGHT_SMASH "ai_margwa_head_r_smash_attack_1"
49 
50 #define MARGWA_ANIM_TENTACLE_LEFT_BASE "ai_margwa_tentacle_l_0"
51 #define MARGWA_ANIM_TENTACLE_RIGHT_BASE "ai_margwa_tentacle_r_0"
52 
53 #define MARGWA_NUM_TENTACLES_PER_SIDE 7
54 
55 #define MARGWA_HEAD_HEALTH_BASE 600
56 
57 // Mouth timing
58 #define MARGWA_HEAD_OPEN_MIN 3000
59 #define MARGWA_HEAD_OPEN_MAX 5000
60 #define MARGWA_HEAD_CLOSE_MIN 1500
61 #define MARGWA_HEAD_CLOSE_MAX 3500
62 
63 #define MARGWA_SINGLE_HEAD_CLOSE_MIN 500
64 #define MARGWA_SINGLE_HEAD_CLOSE_MAX 1000
65 
66 #define MARGWA_PAIN_CLOSE_TIME 5000
67 
68 #define MARGWA_MOUTH_BLEND_TIME 0.1
69 
70 #define ASM_MARGWA_SMASH_ATTACK_NOTETRACK "margwa_smash_attack"
71 #define ASM_MARGWA_BODYFALL_NOTETRACK "margwa_bodyfall large"
72 #define ASM_MARGWA_PAIN_MELEE_NOTETRACK "margwa_melee_fire"
73 
74 // Melee ranges
75 #define MARGWA_MELEE_YAW 45
76 #define MARGWA_MELEE_DIST 128
77 #define MARGWA_MELEE_DIST_SQ MARGWA_MELEE_DIST * MARGWA_MELEE_DIST
78 
79 #define MARGWA_SWIPE_DIST 128
80 #define MARGWA_SWIPE_DIST_SQ MARGWA_SWIPE_DIST * MARGWA_SWIPE_DIST
81 
82 #define MARGWA_HEAD_EXPLOSION_RANGE 128 * 128
83 
84 #define MARGWA_HEAD_DAMAGE_RANGE 24 * 24
85 
86 // Smash attack
87 #define MARGWA_SMASH_ATTACK_START 160 * 160
88 #define MARGWA_SMASH_ATTACK_RANGE 144 * 144
89 #define MARGWA_SMASH_ATTACK_RANGE_LIGHT 192 * 192
90 #define MARGWA_SMASH_ATTACK_DAMAGE 166
91 #define MARGWA_SMASH_ATTACK_OFFSET 60
92 #define MARGWA_SMASH_ATTACK_HEIGHT 48
93 
94 // Riotshield
95 #define MARGWA_RIOTSHIELD_DAMAGE 200
96 #define MARGWA_RIOTSHIELD_FACING_TOLERANCE 0.2
97 
98 // Mavnesh
99 #define MARGWA_NAVMESH_RADIUS 64
100 #define MARGWA_NAVMESH_BOUNDARY_DIST 30
101 
102 #define MARGWA_LARGE_RADIUS 2048
103 
104 // FX
105 #define MARGWA_TELEPORT_FX "fx_margwa_teleport_zod_zmb"
106 #define MARGWA_TELEPORT_FX_FILE "zombie/fx_margwa_teleport_zod_zmb"
107 #define MARGWA_TELEPORT_TRAVEL_FX "fx_margwa_teleport_travel_zod_zmb"
108 #define MARGWA_TELEPORT_TRAVEL_FX_FILE "zombie/fx_margwa_teleport_travel_zod_zmb"
109 #define MARGWA_TELEPORT_TRAVEL_TELL_FX "fx_margwa_teleport_tell_zod_zmb"
110 #define MARGWA_TELEPORT_TRAVEL_TELL_FX_FILE "zombie/fx_margwa_teleport_tell_zod_zmb"
111 #define MARGWA_SPAWN_FX "fx_margwa_teleport_intro_zod_zmb"
112 #define MARGWA_SPAWN_FX_FILE "zombie/fx_margwa_teleport_intro_zod_zmb"
113 
114 #define MARGWA_IMPACT_FX "fx_margwa_head_shot_zod_zmb"
115 #define MARGWA_IMPACT_FX_FILE "zombie/fx_margwa_head_shot_zod_zmb"
116 #define MARGWA_ROAR_FX "fx_margwa_roar_zod_zmb"
117 #define MARGWA_ROAR_FX_FILE "zombie/fx_margwa_roar_zod_zmb"
118 #define MARGWA_SUPER_ROAR_FX "fx_margwa_roar_purple_zod_zmb"
119 #define MARGWA_SUPER_ROAR_FX_FILE "zombie/fx_margwa_roar_purple_zod_zmb"
120 
121 #define MARGWA_TAG_TELEPORT "j_spine_1"
122 
123 #define MARGWA_TELEPORT_OFF 0
124 #define MARGWA_TELEPORT_ON 1
125 
126 #define MARGWA_TRAVELER_TIME 0.25
127 #define MARGWA_TRAVELER_SPEED 600
128 #define MARGWA_TRAVELER_HEIGHT_OFFSET 60
129 
130 #define MARGWA_TELL_DIST 1000
131 #define MARGWA_TELL_DIST_SQ MARGWA_TELL_DIST * MARGWA_TELL_DIST
132 
133 #define MARGWA_FOOTSTEP_EARTHQUAKE_MAX_RADIUS GetDvarInt( "scr_margwa_footstep_eq_radius", 1000)
134 
136 //
137 // Clientfields
138 //
140 #define MARGWA_HEAD_LEFT_CLIENTFIELD "margwa_head_left"
141 #define MARGWA_HEAD_MID_CLIENTFIELD "margwa_head_mid"
142 #define MARGWA_HEAD_RIGHT_CLIENTFIELD "margwa_head_right"
143 #define MARGWA_HEAD_CLIENTFIELD_TYPE "int"
144 #define MARGWA_HEAD_CLIENTFIELD_BITS 2
145 
146 #define MARGWA_FX_IN_CLIENTFIELD "margwa_fx_in"
147 #define MARGWA_FX_OUT_CLIENTFIELD "margwa_fx_out"
148 #define MARGWA_FX_TRAVEL_CLIENTFIELD "margwa_fx_travel"
149 #define MARGWA_FX_TRAVEL_TELL_CLIENTFIELD "margwa_fx_travel_tell"
150 #define MARGWA_FX_CLIENTFIELD_TYPE "int"
151 #define MARGWA_FX_CLIENTFIELD_BITS 1
152 
153 #define MARGWA_FX_SPAWN_CLIENTFIELD "margwa_fx_spawn"
154 #define MARGWA_FX_SPAWN_CLIENTFIELD_TYPE "counter"
155 #define MARGWA_FX_SPAWN_CLIENTFIELD_BITS 1
156 
157 #define MARGWA_HEAD_EXPLODE_CLIENTFIELD "margwa_head_explosion"
158 #define MARGWA_HEAD_EXPLODE_CLIENTFIELD_TYPE "counter"
159 #define MARGWA_HEAD_EXPLODE_CLIENTFIELD_BITS 1
160 
161 #define MARGWA_SMASH_CLIENTFIELD "margwa_smash"
162 #define MARGWA_SMASH_CLIENTFIELD_TYPE "counter"
163 #define MARGWA_SMASH_CLIENTFIELD_BITS 1
164 
165 #define MARGWA_HEAD_LEFT_HIT_CLIENTFIELD "margwa_head_left_hit"
166 #define MARGWA_HEAD_MID_HIT_CLIENTFIELD "margwa_head_mid_hit"
167 #define MARGWA_HEAD_RIGHT_HIT_CLIENTFIELD "margwa_head_right_hit"
168 
169 #define MARGWA_HEAD_KILLED_CLIENTFIELD "margwa_head_killed"
170 #define MARGWA_HEAD_KILLED_LEFT 1
171 #define MARGWA_HEAD_KILLED_MID 2
172 #define MARGWA_HEAD_KILLED_RIGHT 3
173 
174 #define MARGWA_JAW_CLIENTFIELD "margwa_jaw"
175 
176 #define MARGWA_JAW_BASE_L "ai_margwa_jaw_l_"
177 #define MARGWA_JAW_BASE_M "ai_margwa_jaw_m_"
178 #define MARGWA_JAW_BASE_R "ai_margwa_jaw_r_"
179 
180 #define MARGWA_JAW_CLEAR 0
181 #define MARGWA_JAW_IDLE 1
182 #define MARGWA_JAW_HEAD_L_EXPLODE 3
183 #define MARGWA_JAW_HEAD_M_EXPLODE 4
184 #define MARGWA_JAW_HEAD_R_EXPLODE 5
185 #define MARGWA_JAW_REACT_STUN 6
186 #define MARGWA_JAW_RUN_CHARGE 7
187 #define MARGWA_JAW_REACT_IDGUN 8
188 #define MARGWA_JAW_REACT_IDGUN_PACKED 9
189 #define MARGWA_JAW_RUN 13
190 #define MARGWA_JAW_SMASH_ATTACK 14
191 #define MARGWA_JAW_SWIPE 15
192 #define MARGWA_JAW_SWIPE_PLAYER 16
193 #define MARGWA_JAW_TELEPORT_IN 17
194 #define MARGWA_JAW_TELEPORT_OUT 18
195 #define MARGWA_JAW_TRV_JUMP_ACROSS_256 19
196 #define MARGWA_JAW_TRV_JUMP_DOWN_128 20
197 #define MARGWA_JAW_TRV_JUMP_DOWN_36 21
198 #define MARGWA_JAW_TRV_JUMP_DOWN_96 22
199 #define MARGWA_JAW_TRV_JUMP_UP_128 23
200 #define MARGWA_JAW_TRV_JUMP_UP_36 24
201 #define MARGWA_JAW_TRV_JUMP_UP_96 25
202