home *** CD-ROM | disk | FTP | other *** search
/ Eigen PC: CD-ROM 37 / EPC_47.BIN / toyspace / data1.cab / Required_Files / rules / death_common.txt < prev    next >
Text File  |  1999-10-08  |  1KB  |  35 lines

  1. // Common rules for death and ctf_death.txt
  2.  
  3. // @1 = color killed, @2 = Capitalized color (e.g. "Green"), @3 = color of killer
  4. macro killed_sarge 3
  5. {
  6.     if killed @1sarge1 by @3 testvar isAlly @3 @1 = 0 then
  7.         showmessage "@2 sarge killed by @3",
  8.         trigger @3KilledEnemySarge
  9. }
  10.  
  11. // @1 = color, @2 = Capitalized color (e.g. "Green"), @3-5 are other colors
  12. macro death_rules 5
  13. {
  14.     // in deathmatch the enemy sarge should be shown on the stratmap
  15.     if startup1 testvar iscoloringame @1 > 0 then
  16.         setitemflag @1sarge1 strategic 1
  17.  
  18.     // check for the sarge being killed and who killed them
  19.     expand killed_sarge ( @1 @2 @3 )
  20.     expand killed_sarge ( @1 @2 @4 )
  21.     expand killed_sarge ( @1 @2 @5 )
  22.  
  23.     // deathmatch specific scoring events
  24.  
  25.     if @1KilledEnemySarge then
  26.         addvar @1score killEnemySargeBonus,
  27.         playsound "mp_death.wav" (0,0) 1 2,
  28.         trigger check@1wins
  29. }
  30.  
  31. expand death_rules ( green Green tan blue grey )
  32. expand death_rules ( tan Tan green blue grey )
  33. expand death_rules ( blue Blue green tan grey )
  34. expand death_rules ( grey Grey green tan blue )
  35.