home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 54 / ClassicFond54.iso / games / stars.rar / multiplayer / DM_Heavens_Peak.cs < prev    next >
Text File  |  1999-02-19  |  2KB  |  74 lines

  1. // FILENAME:    DM_Heavens_Peak.cs
  2. //
  3. // AUTHORS:      Chupie Doll & Youth in Asia
  4. //------------------------------------------------------------------------------
  5.  
  6. $missionName = "DM_Heavens_Peak";
  7.  
  8. exec("multiplayerStdLib.cs");
  9. exec("DMstdLib.cs");
  10.  
  11. function setDefaultMissionOptions()
  12. {
  13.     $server::TeamPlay = false;
  14.     $server::AllowDeathmatch = true;
  15.     $server::AllowTeamPlay = true;    
  16.     
  17.     $server::AllowTeamRed = true;
  18.     $server::AllowTeamBlue = true;
  19.     $server::AllowTeamYellow = true;
  20.     $server::AllowTeamPurple = true;
  21. }
  22.  
  23. function onMissionLoad(){
  24.    cdAudioCycle("Purge", "Newtech", "Cyberntx"); 
  25. }
  26.  
  27. // move the map
  28. $server::HudMapViewOffsetX = -1500;
  29. $server::HudMapViewOffsetY = 2500;
  30.  
  31. function onMissionStart()
  32. {
  33.     $healRate = 100;   
  34.     $ammoRate = 3;
  35.        $padWaitTime = 45;
  36.       $zenWaitTime = 90;
  37.     
  38.     temperateSounds();
  39. }
  40.  
  41. // Healing Pad Functionality
  42. //------------------------------------------------------------------------------
  43. function ZenHeal::trigger::onEnter(%this, %object)
  44. {
  45.        Zen::onEnter(%this, %object, *IDMULT_CHAT_HEALPAD, true, true);  
  46. }
  47. function ZenHeal::trigger::onContact(%this, %object)
  48. {
  49.        Zen::work(%this, %object, $healRate, 0, $padWaitTime, true); 
  50. }
  51.  
  52. // Ammo Pad Functionality
  53. //------------------------------------------------------------------------------
  54. function ZenAmmo::trigger::onEnter(%this, %object)
  55. {
  56.        Zen::onEnter(%this, %object, *IDMULT_CHAT_AMMOPAD, true, true);  
  57. }
  58.  
  59. function ZenAmmo::trigger::onContact(%this, %object)
  60. {
  61.        Zen::work(%this, %object, 0, $ammoRate, $padWaitTime, true); 
  62. }
  63.  
  64. // ZenAll Pad Functionality
  65. //------------------------------------------------------------------------------
  66. function ZenAll::trigger::onEnter(%this, %object)
  67. {
  68.        Zen::onEnter(%this, %object, *IDMULT_CHAT_ALLPAD, true, true);  
  69. }
  70. function ZenAll::trigger::onContact(%this, %object)
  71. {
  72.        Zen::work(%this, %object, $healRate, $ammoRate, $padWaitTime, true); 
  73. }
  74.