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

  1. // FILENAME:    DM_State_of_Confusion.cs
  2. //
  3. // AUTHORS:      Chupie Doll & Youth in Asia
  4. //------------------------------------------------------------------------------
  5.  
  6. $missionName = "DM_State_of_Confusion";
  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 onMissionStart()
  24. {
  25.     marsSounds();
  26. }
  27.  
  28. function onMissionLoad(){
  29.    cdAudioCycle("Gnash", "Cloudburst", "Cyberntx"); 
  30. }
  31.  
  32. // Easter Egg time
  33. function AirChina::trigger::onEnter(%this, %vehicleId){
  34.     say(playerManager::vehicleIdToPlayerNum(%vehicleId), 0, *IDMULT_AIR_CHINA);
  35.     %backToTheField = strcat("endTheTrip(", %vehicleId, ");");
  36.     schedule(%backToTheField, 10);    
  37. }
  38.  
  39. function endTheTrip(%vehicleId){
  40.     randomTransport(%vehicleId, -1890, 1681, -1890, 1681);
  41. }
  42.