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

  1. // FILENAME:    DM_Moonstrike.cs
  2. //
  3. // AUTHORS:      Chupie Doll & Youth in Asia
  4. //------------------------------------------------------------------------------
  5.  
  6. $missionName = "DM_Moonstrike";
  7.  
  8. exec("multiplayerStdLib.cs");
  9. exec("DMstdLib.cs");
  10.  
  11. $server::HudMapViewOffsetX = -1400;
  12. $server::HudMapViewOffsetY = 2400;
  13.  
  14. function setDefaultMissionOptions()
  15. {
  16.     $server::TeamPlay = false;
  17.     $server::AllowDeathmatch = true;
  18.     $server::AllowTeamPlay = true;    
  19.     
  20.     $server::AllowTeamRed = true;
  21.     $server::AllowTeamBlue = true;
  22.     $server::AllowTeamYellow = true;
  23.     $server::AllowTeamPurple = true;
  24. }
  25.  
  26. function onMissionStart()
  27. {
  28.     $healRate = 100;   
  29.     $ammoRate = 3;
  30.       $zenWaitTime = 90;
  31.     
  32.     moonSounds();
  33. }
  34.  
  35. function onMissionLoad(){
  36.    cdAudioCycle("Gnash", "Cloudburst", "Cyberntx"); 
  37. }
  38.  
  39. // ZenAll Pad Functionality
  40. //------------------------------------------------------------------------------
  41. function ZenAll::trigger::onEnter(%this, %object)
  42. {
  43.        Zen::onEnter(%this, %object, *IDMULT_CHAT_ALLPAD, true, true);  
  44. }
  45. function ZenAll::trigger::onContact(%this, %object)
  46. {
  47.        Zen::work(%this, %object, $healRate, $ammoRate, $zenWaitTime, true); 
  48. }
  49.