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

  1. // FILENAME:    DM_Cold_Titan_Night.cs
  2. //
  3. // AUTHORS:      Chupie Doll & Youth in Asia
  4. //------------------------------------------------------------------------------
  5.  
  6. $missionName = "DM_Cold_Titan_Night";
  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("SS3", "SS4", "Watching"); 
  25. }
  26.  
  27. function onMissionStart()
  28. {
  29.     $healRate = 100;   
  30.     $ammoRate = 3;
  31.        $padWaitTime = 45;
  32.       $zenWaitTime = 90;
  33.  
  34.     titanSounds();    
  35. }
  36.  
  37. // Healing Pad Functionality
  38. //------------------------------------------------------------------------------
  39. function ZenHeal::trigger::onEnter(%this, %object)
  40. {
  41.        Zen::onEnter(%this, %object, *IDMULT_CHAT_HEALPAD, true, true);  
  42. }
  43. function ZenHeal::trigger::onContact(%this, %object)
  44. {
  45.        Zen::work(%this, %object, $healRate, 0, $padWaitTime, true); 
  46. }
  47.  
  48. // Ammo Pad Functionality
  49. //------------------------------------------------------------------------------
  50. function ZenAmmo::trigger::onEnter(%this, %object)
  51. {
  52.        Zen::onEnter(%this, %object, *IDMULT_CHAT_AMMOPAD, true, true);  
  53. }
  54.  
  55. function ZenAmmo::trigger::onContact(%this, %object)
  56. {
  57.        Zen::work(%this, %object, 0, $ammoRate, $padWaitTime, true); 
  58. }
  59.  
  60. // ZenAll Pad Functionality
  61. //------------------------------------------------------------------------------
  62. function ZenAll::trigger::onEnter(%this, %object)
  63. {
  64.        Zen::onEnter(%this, %object, *IDMULT_CHAT_ALLPAD, true, true);  
  65. }
  66. function ZenAll::trigger::onContact(%this, %object)
  67. {
  68.        Zen::work(%this, %object, $healRate, $ammoRate, $padWaitTime, true); 
  69. }
  70.  
  71. //If someone shoots frosty, his houses blow up revealing a nasty surprise
  72. //------------------------------------------------
  73. function tur1::turret::onAdd(%this)
  74. {
  75.     $turret1=%this;
  76.     order($turret1,ShutDown,true);
  77. }
  78. function tur2::turret::onAdd(%this)
  79. {
  80.     $turret2=%this;
  81.     order($turret2,ShutDown,true);
  82. }
  83. function Frosty::structure::onAttacked(%attacked,%attacker)
  84. {
  85.     %bang1=getObjectId("MissionGroup\\extra\\frosty's house\\house1");
  86.     healObject(%bang1,-30000);
  87.     order($turret1,ShutDown,false);
  88.     order($turret1, Attack, %attacker);
  89.     %bang2=getObjectId("MissionGroup\\extra\\frosty's house\\house2");
  90.     healObject(%bang2,-30000);
  91.     order($turret2,ShutDown,false);
  92.     order($turret2, Attack, %attacker);
  93. }
  94.