home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 11 / PCPP11.iso / patch / quake2 / player.qc < prev    next >
Encoding:
Text File  |  1996-12-05  |  17.1 KB  |  664 lines

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