home *** CD-ROM | disk | FTP | other *** search
/ Hacker 9 / HACKER09.ISO / Games / StarSiege.exe / Starsiege / Missions.vol / DM_Cold_Titan_Night.cs < prev    next >
Text File  |  1998-07-27  |  1KB  |  45 lines

  1. ////////////////////////////////////////
  2. //Script for Titan1_DM AKA "A night'n Titan"
  3. /////////////////////////////////////////
  4.  
  5. function setDefaultMissionOptions()
  6. {
  7.     $server::TeamPlay = False;        // for DM_ games
  8. }
  9.  
  10.  
  11. //If someone shoots frosty, his houses blow up revealing a nasty surprise
  12.  
  13. //------------------------------------------------
  14. function tur1::turret::onAdd(%this)
  15. {
  16.     $turret1=%this;
  17.     order($turret1,ShutDown,true);
  18. }
  19. function tur2::turret::onAdd(%this)
  20. {
  21.     $turret2=%this;
  22.     order($turret2,ShutDown,true);
  23. }
  24.  
  25.  
  26. function Frosty::structure::onAttacked(%attacked,%attacker)
  27. {
  28.     %bang1=getObjectId("MissionGroup\\extra\\frosty's house\\house1");
  29.     healObject(%bang1,-30000);
  30.     order($turret1,ShutDown,false);
  31.     %bang2=getObjectId("MissionGroup\\extra\\frosty's house\\house2");
  32.     order($turret1,ShutDown,false);
  33.     healObject(%bang2,-30000);
  34.     order($turret1,ShutDown,false);
  35.     chat(%attacker,0,strcat("Don't Shoot Frosty!!"));
  36.     if($server::TeamPlay)
  37.     {
  38.         if(getTeam($turret1)==getTeam(%attacker))
  39.         {
  40.             setTeam($turret1,1);
  41.             setTeam($turret2,2);
  42.         }
  43.     }
  44. }
  45.