home *** CD-ROM | disk | FTP | other *** search
/ Quaker's Paradise / Quakers_Paradise.iso / div / gibbin / jsubs.qc < prev    next >
Encoding:
Text File  |  1997-06-20  |  1.6 KB  |  59 lines

  1. void(string gibname, float dm) ThrowGib;
  2. float() random;
  3.  
  4. void() SUB_Gib =
  5. {
  6.         local vector x, y, v;
  7.         x='1 0 0';
  8.         y='0 1 0';
  9.         v=x*(50-random()*100)+y*(50-random()*100);
  10.         if (random() < 0.8)                 
  11.            SpawnMeatSpray(self.origin, v);
  12.        
  13.         else if (random() < 0.3)
  14.                 ThrowGib("progs/gib1.mdl", self.health*3);
  15.         else if (random() < 0.5)
  16.                 ThrowGib("progs/gib2.mdl", self.health*3);
  17.         else 
  18.                 ThrowGib("progs/gib3.mdl", self.health*3);
  19. };      
  20.  
  21. ///////
  22. void() SUB_Gib1 =
  23. {
  24.        local vector x, y, v;
  25.         x='1 0 0';
  26.         y='0 1 0';
  27.         v=x*(50-random()*100)+y*(50-random()*100);
  28.         if (random() < 0.8)                 
  29.            SpawnMeatSpray(self.origin, v);
  30.  
  31.         else if (random() < 0.3)
  32.                 ThrowGib("progs/gib3.mdl", self.health*3);
  33.         else if (random() < 0.5)
  34.                 ThrowGib("progs/zom_gib.mdl", self.health*3);
  35.         else
  36.                 ThrowGib("progs/gib3.mdl", self.health*3);
  37. };
  38.  
  39.  
  40. ///////
  41. void() SUB_Gib2 =
  42. {
  43.         local vector x, y, v;
  44.         x='1 0 0';
  45.         y='0 1 0';
  46.         v=x*(50-random()*100)+y*(50-random()*100);
  47.         if (random() < 0.8)                 
  48.            SpawnMeatSpray(self.origin, v);
  49.  
  50.         else if (random() < 0.3)
  51.                 ThrowGib("progs/zom_gib.mdl", self.health*3);
  52.         else if (random() < 0.5)
  53.                 ThrowGib("progs/zom_gib.mdl", self.health*3);
  54.         else
  55.                 ThrowGib("progs/gib3.mdl", self.health);
  56. };
  57.  
  58.  
  59.