XIDMaps
Class Base01

source: C:\XIII\XIDMaps\Classes\Base01.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Info
         |
         +--XIII.MapInfo
            |
            +--XIDMaps.Map10_Base
               |
               +--XIDMaps.Base01
Direct Known Subclasses:None

class Base01
extends XIDMaps.Map10_Base

//----------------------------------------------------------- // //-----------------------------------------------------------
Variables
 int iNumberDoorsPassed


Function Summary
 void SetGoalComplete(int N)
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class Base01 extends Map10_Base;
00005	
00006	var(Base01SetUp) Base01DoorObjective DoorVsZoneCheck[3];
00007	var int iNumberDoorsPassed;
00008	
00009	// Goal 91 == Door closing
00010	
00011	//_____________________________________________________________________________
00012	function SetGoalComplete(int N)
00013	{
00014	    if ( N == 91 )
00015	    {
00016	      if ( (XIIIPawn.Location - DoorVsZoneCheck[iNumberDoorsPassed].Location) dot vector(DoorVsZoneCheck[iNumberDoorsPassed].rotation) > 0.0 )
00017	      {
00018	        Log("-> Sas Door closed, player ok");
00019	        iNumberDoorsPassed ++;
00020	        return; // don't validate objective if player gone through door before closing
00021	      }
00022	      else
00023	      {
00024	        Log("-> Sas Door closed, player GameOver");
00025	        Level.Game.EndGame( XIIIController.PlayerReplicationInfo, "GoalIncomplete" );
00026	        return;
00027	      }
00028	    }
00029	    Super.SetGoalComplete(N);
00030	}
00031	
00032	
00033	
00034	defaultproperties
00035	{
00036	}

End Source Code