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

  1. //////////////////////////////////////////////////////////////////////////////
  2. // Section common to all game types
  3. //////////////////////////////////////////////////////////////////////////////
  4. include common.txt
  5.  
  6. //////////////////////////////////////////////////////////////////////////////
  7. // Node Control specific section
  8. //////////////////////////////////////////////////////////////////////////////
  9.  
  10. // these are per node bonuses so when you own 5 nodes you score
  11. // 5 * own5NodesBonus per score interval thus giving an exponential effect
  12. variable own1NodeBonus 4
  13. variable own2NodesBonus 6
  14. variable own3NodesBonus 8
  15. variable own4NodesBonus 10
  16. variable own5NodesBonus 12
  17.  
  18. variable nodeScoreDelay 10000
  19.  
  20. include node_common.txt
  21.  
  22. //////////////////////////////////////////////////////////////////////////////
  23. // Capture the flag specific section
  24. //////////////////////////////////////////////////////////////////////////////
  25. variable captureFlagBonus 100
  26. include ctf_common.txt
  27.  
  28. //////////////////////////////////////////////////////////////////////////////
  29. // Hold the flag specific section
  30. //////////////////////////////////////////////////////////////////////////////
  31.  
  32. variable holdFlagBonus 10
  33.  
  34. include holdflag_common.txt
  35.  
  36. //////////////////////////////////////////////////////////////////////////////
  37. // section for scoring when an enemy unit is killed by my army
  38. //////////////////////////////////////////////////////////////////////////////
  39.  
  40. variable killedUnitScore 0
  41.  
  42. // @1 = color killed, @2 = color of killer
  43. macro killed_unit 2
  44. {
  45.     if killed @1 by @2 testvar isAlly @1 @2 = 0 then
  46.         setvar killedUnitScore getplasticvalue me,
  47.         trigger @2KilledUnit
  48. }
  49.  
  50. // @1 = color of scorer, @2-4 are other colors
  51. macro score_for_each_unit_killed 4
  52. {
  53.     if @1KilledUnit then
  54.         addvar @1score killedUnitScore,
  55.         playsound "mp_death.wav" (0,0) 1 2,
  56.         trigger check@1wins
  57.  
  58.     expand killed_unit ( @1 @2 )
  59.     expand killed_unit ( @1 @3 )
  60.     expand killed_unit ( @1 @4 )
  61. }
  62.  
  63. expand score_for_each_unit_killed ( green tan   blue grey )
  64. expand score_for_each_unit_killed ( tan   green blue grey )
  65. expand score_for_each_unit_killed ( blue  green tan  grey )
  66. expand score_for_each_unit_killed ( grey  green tan  blue )
  67.  
  68.  
  69.  
  70.  
  71.