player.qc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. /* Copyright (C) 1996-2022 id Software LLC
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program; if not, write to the Free Software
  12. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  13. See file, 'COPYING', for details.
  14. */
  15. void() bubble_bob;
  16. /*
  17. ==============================================================================
  18. PLAYER
  19. ==============================================================================
  20. */
  21. $cd /raid/quake/id1/models/player_4
  22. $origin 0 -6 24
  23. $base base
  24. $skin skin
  25. //
  26. // running
  27. //
  28. $frame axrun1 axrun2 axrun3 axrun4 axrun5 axrun6
  29. $frame rockrun1 rockrun2 rockrun3 rockrun4 rockrun5 rockrun6
  30. //
  31. // standing
  32. //
  33. $frame stand1 stand2 stand3 stand4 stand5
  34. $frame axstnd1 axstnd2 axstnd3 axstnd4 axstnd5 axstnd6
  35. $frame axstnd7 axstnd8 axstnd9 axstnd10 axstnd11 axstnd12
  36. //
  37. // pain
  38. //
  39. $frame axpain1 axpain2 axpain3 axpain4 axpain5 axpain6
  40. $frame pain1 pain2 pain3 pain4 pain5 pain6
  41. //
  42. // death
  43. //
  44. $frame axdeth1 axdeth2 axdeth3 axdeth4 axdeth5 axdeth6
  45. $frame axdeth7 axdeth8 axdeth9
  46. $frame deatha1 deatha2 deatha3 deatha4 deatha5 deatha6 deatha7 deatha8
  47. $frame deatha9 deatha10 deatha11
  48. $frame deathb1 deathb2 deathb3 deathb4 deathb5 deathb6 deathb7 deathb8
  49. $frame deathb9
  50. $frame deathc1 deathc2 deathc3 deathc4 deathc5 deathc6 deathc7 deathc8
  51. $frame deathc9 deathc10 deathc11 deathc12 deathc13 deathc14 deathc15
  52. $frame deathd1 deathd2 deathd3 deathd4 deathd5 deathd6 deathd7
  53. $frame deathd8 deathd9
  54. $frame deathe1 deathe2 deathe3 deathe4 deathe5 deathe6 deathe7
  55. $frame deathe8 deathe9
  56. //
  57. // attacks
  58. //
  59. $frame nailatt1 nailatt2
  60. $frame light1 light2
  61. $frame rockatt1 rockatt2 rockatt3 rockatt4 rockatt5 rockatt6
  62. $frame shotatt1 shotatt2 shotatt3 shotatt4 shotatt5 shotatt6
  63. $frame axatt1 axatt2 axatt3 axatt4 axatt5 axatt6
  64. $frame axattb1 axattb2 axattb3 axattb4 axattb5 axattb6
  65. $frame axattc1 axattc2 axattc3 axattc4 axattc5 axattc6
  66. $frame axattd1 axattd2 axattd3 axattd4 axattd5 axattd6
  67. /*
  68. ==============================================================================
  69. PLAYER
  70. ==============================================================================
  71. */
  72. void() player_run;
  73. void() player_stand1 =[ $axstnd1, player_stand1 ]
  74. {
  75. self.weaponframe = 0;
  76. if (self.velocity_x || self.velocity_y)
  77. {
  78. self.walkframe=0;
  79. player_run();
  80. return;
  81. }
  82. if (self.weapon == IT_AXE)
  83. {
  84. if (self.walkframe >= 12)
  85. self.walkframe = 0;
  86. self.frame = $axstnd1 + self.walkframe;
  87. }
  88. else
  89. {
  90. if (self.walkframe >= 5)
  91. self.walkframe = 0;
  92. self.frame = $stand1 + self.walkframe;
  93. }
  94. self.walkframe = self.walkframe + 1;
  95. };
  96. void() player_run =[ $rockrun1, player_run ]
  97. {
  98. self.weaponframe = 0;
  99. if (!self.velocity_x && !self.velocity_y)
  100. {
  101. self.walkframe=0;
  102. player_stand1();
  103. return;
  104. }
  105. if (self.weapon == IT_AXE)
  106. {
  107. if (self.walkframe == 6)
  108. self.walkframe = 0;
  109. self.frame = $axrun1 + self.walkframe;
  110. }
  111. else
  112. {
  113. if (self.walkframe == 6)
  114. self.walkframe = 0;
  115. self.frame = self.frame + self.walkframe;
  116. }
  117. self.walkframe = self.walkframe + 1;
  118. };
  119. void() player_shot1 = [$shotatt1, player_shot2 ] {
  120. self.weaponframe = 1;
  121. self.effects = self.effects | EF_MUZZLEFLASH;
  122. };
  123. void() player_shot2 = [$shotatt2, player_shot3 ] {self.weaponframe=2;};
  124. void() player_shot3 = [$shotatt3, player_shot4 ] {self.weaponframe=3;};
  125. void() player_shot4 = [$shotatt4, player_shot5 ] {self.weaponframe=4;};
  126. void() player_shot5 = [$shotatt5, player_shot6 ] {self.weaponframe=5;};
  127. void() player_shot6 = [$shotatt6, player_run ] {self.weaponframe=6;};
  128. void() player_axe1 = [$axatt1, player_axe2 ] {self.weaponframe=1;};
  129. void() player_axe2 = [$axatt2, player_axe3 ] {self.weaponframe=2;};
  130. void() player_axe3 = [$axatt3, player_axe4 ] {self.weaponframe=3;W_FireAxe();};
  131. void() player_axe4 = [$axatt4, player_run ] {self.weaponframe=4;};
  132. void() player_axeb1 = [$axattb1, player_axeb2 ] {self.weaponframe=5;};
  133. void() player_axeb2 = [$axattb2, player_axeb3 ] {self.weaponframe=6;};
  134. void() player_axeb3 = [$axattb3, player_axeb4 ] {self.weaponframe=7;W_FireAxe();};
  135. void() player_axeb4 = [$axattb4, player_run ] {self.weaponframe=8;};
  136. void() player_axec1 = [$axattc1, player_axec2 ] {self.weaponframe=1;};
  137. void() player_axec2 = [$axattc2, player_axec3 ] {self.weaponframe=2;};
  138. void() player_axec3 = [$axattc3, player_axec4 ] {self.weaponframe=3;W_FireAxe();};
  139. void() player_axec4 = [$axattc4, player_run ] {self.weaponframe=4;};
  140. void() player_axed1 = [$axattd1, player_axed2 ] {self.weaponframe=5;};
  141. void() player_axed2 = [$axattd2, player_axed3 ] {self.weaponframe=6;};
  142. void() player_axed3 = [$axattd3, player_axed4 ] {self.weaponframe=7;W_FireAxe();};
  143. void() player_axed4 = [$axattd4, player_run ] {self.weaponframe=8;};
  144. //============================================================================
  145. void() player_nail1 =[$nailatt1, player_nail2 ]
  146. {
  147. self.effects = self.effects | EF_MUZZLEFLASH;
  148. if (!self.button0)
  149. {player_run ();return;}
  150. self.weaponframe = self.weaponframe + 1;
  151. if (self.weaponframe == 9)
  152. self.weaponframe = 1;
  153. SuperDamageSound();
  154. W_FireSpikes (4);
  155. self.attack_finished = time + 0.2;
  156. };
  157. void() player_nail2 =[$nailatt2, player_nail1 ]
  158. {
  159. self.effects = self.effects | EF_MUZZLEFLASH;
  160. if (!self.button0)
  161. {player_run ();return;}
  162. self.weaponframe = self.weaponframe + 1;
  163. if (self.weaponframe == 9)
  164. self.weaponframe = 1;
  165. SuperDamageSound();
  166. W_FireSpikes (-4);
  167. self.attack_finished = time + 0.2;
  168. };
  169. //============================================================================
  170. void() player_light1 =[$light1, player_light2 ]
  171. {
  172. self.effects = self.effects | EF_MUZZLEFLASH;
  173. if (!self.button0)
  174. {player_run ();return;}
  175. self.weaponframe = self.weaponframe + 1;
  176. if (self.weaponframe == 5)
  177. self.weaponframe = 1;
  178. SuperDamageSound();
  179. W_FireLightning();
  180. self.attack_finished = time + 0.2;
  181. };
  182. void() player_light2 =[$light2, player_light1 ]
  183. {
  184. self.effects = self.effects | EF_MUZZLEFLASH;
  185. if (!self.button0)
  186. {player_run ();return;}
  187. self.weaponframe = self.weaponframe + 1;
  188. if (self.weaponframe == 5)
  189. self.weaponframe = 1;
  190. SuperDamageSound();
  191. W_FireLightning();
  192. self.attack_finished = time + 0.2;
  193. };
  194. //============================================================================
  195. void() player_rocket1 =[$rockatt1, player_rocket2 ] {
  196. self.weaponframe = 1;
  197. self.effects = self.effects | EF_MUZZLEFLASH;
  198. };
  199. void() player_rocket2 =[$rockatt2, player_rocket3 ] {self.weaponframe=2;};
  200. void() player_rocket3 =[$rockatt3, player_rocket4 ] {self.weaponframe=3;};
  201. void() player_rocket4 =[$rockatt4, player_rocket5 ] {self.weaponframe=4;};
  202. void() player_rocket5 =[$rockatt5, player_rocket6 ] {self.weaponframe=5;};
  203. void() player_rocket6 =[$rockatt6, player_run ] {self.weaponframe=6;};
  204. void(float num_bubbles) DeathBubbles;
  205. void() PainSound =
  206. {
  207. local float rs;
  208. if (self.health < 0)
  209. return;
  210. if (damage_attacker.classname == "teledeath")
  211. {
  212. sound (self, CHAN_VOICE, "player/teledth1.wav", 1, ATTN_NONE);
  213. return;
  214. }
  215. // water pain sounds
  216. if (self.watertype == CONTENT_WATER && self.waterlevel == 3)
  217. {
  218. DeathBubbles(1);
  219. if (random() > 0.5)
  220. sound (self, CHAN_VOICE, "player/drown1.wav", 1, ATTN_NORM);
  221. else
  222. sound (self, CHAN_VOICE, "player/drown2.wav", 1, ATTN_NORM);
  223. return;
  224. }
  225. // slime pain sounds
  226. if (self.watertype == CONTENT_SLIME)
  227. {
  228. // FIX ME put in some steam here
  229. if (random() > 0.5)
  230. sound (self, CHAN_VOICE, "player/lburn1.wav", 1, ATTN_NORM);
  231. else
  232. sound (self, CHAN_VOICE, "player/lburn2.wav", 1, ATTN_NORM);
  233. return;
  234. }
  235. if (self.watertype == CONTENT_LAVA)
  236. {
  237. if (random() > 0.5)
  238. sound (self, CHAN_VOICE, "player/lburn1.wav", 1, ATTN_NORM);
  239. else
  240. sound (self, CHAN_VOICE, "player/lburn2.wav", 1, ATTN_NORM);
  241. return;
  242. }
  243. if (self.pain_finished > time)
  244. {
  245. self.axhitme = 0;
  246. return;
  247. }
  248. self.pain_finished = time + 0.5;
  249. // don't make multiple pain sounds right after each other
  250. // ax pain sound
  251. if (self.axhitme == 1)
  252. {
  253. self.axhitme = 0;
  254. sound (self, CHAN_VOICE, "player/axhit1.wav", 1, ATTN_NORM);
  255. return;
  256. }
  257. rs = rint((random() * 5) + 1);
  258. self.noise = string_null;
  259. if (rs == 1)
  260. self.noise = "player/pain1.wav";
  261. else if (rs == 2)
  262. self.noise = "player/pain2.wav";
  263. else if (rs == 3)
  264. self.noise = "player/pain3.wav";
  265. else if (rs == 4)
  266. self.noise = "player/pain4.wav";
  267. else if (rs == 5)
  268. self.noise = "player/pain5.wav";
  269. else
  270. self.noise = "player/pain6.wav";
  271. sound (self, CHAN_VOICE, self.noise, 1, ATTN_NORM);
  272. return;
  273. };
  274. void() player_pain1 = [ $pain1, player_pain2 ] {PainSound();self.weaponframe=0;};
  275. void() player_pain2 = [ $pain2, player_pain3 ] {};
  276. void() player_pain3 = [ $pain3, player_pain4 ] {};
  277. void() player_pain4 = [ $pain4, player_pain5 ] {};
  278. void() player_pain5 = [ $pain5, player_pain6 ] {};
  279. void() player_pain6 = [ $pain6, player_run ] {};
  280. void() player_axpain1 = [ $axpain1, player_axpain2 ] {PainSound();self.weaponframe=0;};
  281. void() player_axpain2 = [ $axpain2, player_axpain3 ] {};
  282. void() player_axpain3 = [ $axpain3, player_axpain4 ] {};
  283. void() player_axpain4 = [ $axpain4, player_axpain5 ] {};
  284. void() player_axpain5 = [ $axpain5, player_axpain6 ] {};
  285. void() player_axpain6 = [ $axpain6, player_run ] {};
  286. void(entity attacker, float damage) player_pain =
  287. {
  288. if (self.weaponframe)
  289. return;
  290. if (self.invisible_finished > time)
  291. return; // eyes don't have pain frames
  292. if (self.weapon == IT_AXE)
  293. player_axpain1 ();
  294. else
  295. player_pain1 ();
  296. };
  297. void() player_diea1;
  298. void() player_dieb1;
  299. void() player_diec1;
  300. void() player_died1;
  301. void() player_diee1;
  302. void() player_die_ax1;
  303. void() DeathBubblesSpawn =
  304. {
  305. local entity bubble;
  306. if (self.owner.waterlevel != 3)
  307. return;
  308. bubble = spawn();
  309. setmodel (bubble, "progs/s_bubble.spr");
  310. setorigin (bubble, self.owner.origin + '0 0 24');
  311. bubble.movetype = MOVETYPE_NOCLIP;
  312. bubble.solid = SOLID_NOT;
  313. bubble.velocity = '0 0 15';
  314. bubble.nextthink = time + 0.5;
  315. bubble.think = bubble_bob;
  316. bubble.classname = "bubble";
  317. bubble.frame = 0;
  318. bubble.cnt = 0;
  319. setsize (bubble, '-8 -8 -8', '8 8 8');
  320. self.nextthink = time + 0.1;
  321. self.think = DeathBubblesSpawn;
  322. self.air_finished = self.air_finished + 1;
  323. if (self.air_finished >= self.bubble_count)
  324. remove(self);
  325. };
  326. void(float num_bubbles) DeathBubbles =
  327. {
  328. local entity bubble_spawner;
  329. bubble_spawner = spawn();
  330. setorigin (bubble_spawner, self.origin);
  331. bubble_spawner.movetype = MOVETYPE_NONE;
  332. bubble_spawner.solid = SOLID_NOT;
  333. bubble_spawner.nextthink = time + 0.1;
  334. bubble_spawner.think = DeathBubblesSpawn;
  335. bubble_spawner.air_finished = 0;
  336. bubble_spawner.owner = self;
  337. bubble_spawner.bubble_count = num_bubbles;
  338. return;
  339. };
  340. void() DeathSound =
  341. {
  342. local float rs;
  343. // water death sounds
  344. if (self.waterlevel == 3)
  345. {
  346. DeathBubbles(20);
  347. sound (self, CHAN_VOICE, "player/h2odeath.wav", 1, ATTN_NONE);
  348. return;
  349. }
  350. rs = rint ((random() * 4) + 1);
  351. if (rs == 1)
  352. self.noise = "player/death1.wav";
  353. if (rs == 2)
  354. self.noise = "player/death2.wav";
  355. if (rs == 3)
  356. self.noise = "player/death3.wav";
  357. if (rs == 4)
  358. self.noise = "player/death4.wav";
  359. if (rs == 5)
  360. self.noise = "player/death5.wav";
  361. sound (self, CHAN_VOICE, self.noise, 1, ATTN_NONE);
  362. return;
  363. };
  364. void() PlayerDead =
  365. {
  366. self.nextthink = -1;
  367. self.deadflag = DEAD_DEAD; // allow respawn after a certain time
  368. };
  369. vector(float dm) VelocityForDamage =
  370. {
  371. local vector v;
  372. v_x = 100 * crandom();
  373. v_y = 100 * crandom();
  374. v_z = 200 + 100 * random();
  375. if (dm > -50)
  376. {
  377. v = v * 0.7;
  378. }
  379. else if (dm > -200)
  380. {
  381. v = v * 2;
  382. }
  383. else
  384. v = v * 10;
  385. return v;
  386. };
  387. void(string gibname, float dm) ThrowGib =
  388. {
  389. local entity new;
  390. new = spawn();
  391. new.origin = self.origin;
  392. setmodel (new, gibname);
  393. setsize (new, '0 0 0', '0 0 0');
  394. new.velocity = VelocityForDamage (dm);
  395. new.movetype = MOVETYPE_BOUNCE;
  396. if (cvar("pr_checkextension"))
  397. if (checkextension("EX_MOVETYPE_GIB"))
  398. new.movetype = MOVETYPE_GIB;
  399. new.solid = SOLID_NOT;
  400. new.avelocity_x = random()*600;
  401. new.avelocity_y = random()*600;
  402. new.avelocity_z = random()*600;
  403. new.think = SUB_Remove;
  404. new.ltime = time;
  405. new.nextthink = time + 10 + random()*10;
  406. new.frame = 0;
  407. new.flags = 0;
  408. };
  409. void(string gibname, float dm) ThrowHead =
  410. {
  411. setmodel (self, gibname);
  412. self.frame = 0;
  413. self.nextthink = -1;
  414. self.movetype = MOVETYPE_BOUNCE;
  415. if (cvar("pr_checkextension"))
  416. if (checkextension("EX_MOVETYPE_GIB"))
  417. self.movetype = MOVETYPE_GIB;
  418. self.takedamage = DAMAGE_NO;
  419. self.solid = SOLID_NOT;
  420. self.view_ofs = '0 0 8';
  421. setsize (self, '-16 -16 0', '16 16 56');
  422. self.velocity = VelocityForDamage (dm);
  423. self.origin_z = self.origin_z - 24;
  424. self.flags = self.flags - (self.flags & FL_ONGROUND);
  425. self.avelocity = crandom() * '0 600 0';
  426. };
  427. void() GibPlayer =
  428. {
  429. ThrowHead ("progs/h_player.mdl", self.health);
  430. ThrowGib ("progs/gib1.mdl", self.health);
  431. ThrowGib ("progs/gib2.mdl", self.health);
  432. ThrowGib ("progs/gib3.mdl", self.health);
  433. self.deadflag = DEAD_DEAD;
  434. if (damage_attacker.classname == "teledeath")
  435. {
  436. sound (self, CHAN_VOICE, "player/teledth1.wav", 1, ATTN_NONE);
  437. return;
  438. }
  439. if (damage_attacker.classname == "teledeath2")
  440. {
  441. sound (self, CHAN_VOICE, "player/teledth1.wav", 1, ATTN_NONE);
  442. return;
  443. }
  444. if (random() < 0.5)
  445. sound (self, CHAN_VOICE, "player/gib.wav", 1, ATTN_NONE);
  446. else
  447. sound (self, CHAN_VOICE, "player/udeath.wav", 1, ATTN_NONE);
  448. };
  449. void() PlayerDie =
  450. {
  451. local float i;
  452. self.items = self.items - (self.items & ( IT_INVISIBILITY | IT_INVULNERABILITY | IT_SUIT | IT_QUAD ) );
  453. self.invisible_finished = 0; // don't die as eyes
  454. self.invincible_finished = 0;
  455. self.super_damage_finished = 0;
  456. self.radsuit_finished = 0;
  457. self.effects = 0;
  458. self.modelindex = modelindex_player; // don't use eyes
  459. if (deathmatch || coop)
  460. DropBackpack();
  461. self.weaponmodel = string_null;
  462. self.view_ofs = '0 0 -8';
  463. self.deadflag = DEAD_DYING;
  464. self.solid = SOLID_NOT;
  465. self.flags = self.flags - (self.flags & FL_ONGROUND);
  466. self.movetype = MOVETYPE_TOSS;
  467. if (self.velocity_z < 10)
  468. self.velocity_z = self.velocity_z + random()*300;
  469. if (self.health < -40)
  470. {
  471. GibPlayer ();
  472. return;
  473. }
  474. DeathSound();
  475. self.angles_x = 0;
  476. self.angles_z = 0;
  477. if (self.weapon == IT_AXE)
  478. {
  479. player_die_ax1 ();
  480. return;
  481. }
  482. i = ( 1 + floor( random() * 6 ) );
  483. if (i == 1)
  484. player_diea1();
  485. else if (i == 2)
  486. player_dieb1();
  487. else if (i == 3)
  488. player_diec1();
  489. else if (i == 4)
  490. player_died1();
  491. else
  492. player_diee1();
  493. };
  494. void() set_suicide_frame =
  495. { // used by klill command and diconnect command
  496. if (self.model != "progs/player.mdl")
  497. return; // allready gibbed
  498. self.frame = $deatha11;
  499. self.solid = SOLID_NOT;
  500. self.movetype = MOVETYPE_TOSS;
  501. self.deadflag = DEAD_DEAD;
  502. self.nextthink = -1;
  503. };
  504. void() player_diea1 = [ $deatha1, player_diea2 ] {};
  505. void() player_diea2 = [ $deatha2, player_diea3 ] {};
  506. void() player_diea3 = [ $deatha3, player_diea4 ] {};
  507. void() player_diea4 = [ $deatha4, player_diea5 ] {};
  508. void() player_diea5 = [ $deatha5, player_diea6 ] {};
  509. void() player_diea6 = [ $deatha6, player_diea7 ] {};
  510. void() player_diea7 = [ $deatha7, player_diea8 ] {};
  511. void() player_diea8 = [ $deatha8, player_diea9 ] {};
  512. void() player_diea9 = [ $deatha9, player_diea10 ] {};
  513. void() player_diea10 = [ $deatha10, player_diea11 ] {};
  514. void() player_diea11 = [ $deatha11, player_diea11 ] {PlayerDead();};
  515. void() player_dieb1 = [ $deathb1, player_dieb2 ] {};
  516. void() player_dieb2 = [ $deathb2, player_dieb3 ] {};
  517. void() player_dieb3 = [ $deathb3, player_dieb4 ] {};
  518. void() player_dieb4 = [ $deathb4, player_dieb5 ] {};
  519. void() player_dieb5 = [ $deathb5, player_dieb6 ] {};
  520. void() player_dieb6 = [ $deathb6, player_dieb7 ] {};
  521. void() player_dieb7 = [ $deathb7, player_dieb8 ] {};
  522. void() player_dieb8 = [ $deathb8, player_dieb9 ] {};
  523. void() player_dieb9 = [ $deathb9, player_dieb9 ] {PlayerDead();};
  524. void() player_diec1 = [ $deathc1, player_diec2 ] {};
  525. void() player_diec2 = [ $deathc2, player_diec3 ] {};
  526. void() player_diec3 = [ $deathc3, player_diec4 ] {};
  527. void() player_diec4 = [ $deathc4, player_diec5 ] {};
  528. void() player_diec5 = [ $deathc5, player_diec6 ] {};
  529. void() player_diec6 = [ $deathc6, player_diec7 ] {};
  530. void() player_diec7 = [ $deathc7, player_diec8 ] {};
  531. void() player_diec8 = [ $deathc8, player_diec9 ] {};
  532. void() player_diec9 = [ $deathc9, player_diec10 ] {};
  533. void() player_diec10 = [ $deathc10, player_diec11 ] {};
  534. void() player_diec11 = [ $deathc11, player_diec12 ] {};
  535. void() player_diec12 = [ $deathc12, player_diec13 ] {};
  536. void() player_diec13 = [ $deathc13, player_diec14 ] {};
  537. void() player_diec14 = [ $deathc14, player_diec15 ] {};
  538. void() player_diec15 = [ $deathc15, player_diec15 ] {PlayerDead();};
  539. void() player_died1 = [ $deathd1, player_died2 ] {};
  540. void() player_died2 = [ $deathd2, player_died3 ] {};
  541. void() player_died3 = [ $deathd3, player_died4 ] {};
  542. void() player_died4 = [ $deathd4, player_died5 ] {};
  543. void() player_died5 = [ $deathd5, player_died6 ] {};
  544. void() player_died6 = [ $deathd6, player_died7 ] {};
  545. void() player_died7 = [ $deathd7, player_died8 ] {};
  546. void() player_died8 = [ $deathd8, player_died9 ] {};
  547. void() player_died9 = [ $deathd9, player_died9 ] {PlayerDead();};
  548. void() player_diee1 = [ $deathe1, player_diee2 ] {};
  549. void() player_diee2 = [ $deathe2, player_diee3 ] {};
  550. void() player_diee3 = [ $deathe3, player_diee4 ] {};
  551. void() player_diee4 = [ $deathe4, player_diee5 ] {};
  552. void() player_diee5 = [ $deathe5, player_diee6 ] {};
  553. void() player_diee6 = [ $deathe6, player_diee7 ] {};
  554. void() player_diee7 = [ $deathe7, player_diee8 ] {};
  555. void() player_diee8 = [ $deathe8, player_diee9 ] {};
  556. void() player_diee9 = [ $deathe9, player_diee9 ] {PlayerDead();};
  557. void() player_die_ax1 = [ $axdeth1, player_die_ax2 ] {};
  558. void() player_die_ax2 = [ $axdeth2, player_die_ax3 ] {};
  559. void() player_die_ax3 = [ $axdeth3, player_die_ax4 ] {};
  560. void() player_die_ax4 = [ $axdeth4, player_die_ax5 ] {};
  561. void() player_die_ax5 = [ $axdeth5, player_die_ax6 ] {};
  562. void() player_die_ax6 = [ $axdeth6, player_die_ax7 ] {};
  563. void() player_die_ax7 = [ $axdeth7, player_die_ax8 ] {};
  564. void() player_die_ax8 = [ $axdeth8, player_die_ax9 ] {};
  565. void() player_die_ax9 = [ $axdeth9, player_die_ax9 ] {PlayerDead();};