XIDMaps
Class Amos01

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

class Amos01
extends XIDMaps.Map03_Amos

//----------------------------------------------------------- // //-----------------------------------------------------------

Function Summary
 void FirstFrame()
     
// the staticmeshes to replace the original one
 void SetGoalComplete(int N)
     
//_____________________________________________________________________________
 void Trigger(Actor Other, Pawn EventInstigator)
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class Amos01 extends Map03_Amos;
00005	
00006	#exec OBJ LOAD FILE=XIIIAmos.utx
00007	var(Amos01SetUp) StaticMeshActor DisplayScreen;         // the big screen actor
00008	var(Amos01SetUp) StaticMesh Screen1, Screen2, Screen3;  // the staticmeshes to replace the original one
00009	
00010	function FirstFrame()
00011	{
00012		SUPER.FirstFrame();
00013	
00014	    if ( Level.Game.GoreLevel != 0 )
00015	    {
00016	// PARENTAL LOCL ON
00017			ReplaceATextureByAnOther( Texture'XIIIAmos.Amfilm02', Texture'XIIIAmos.Amfilm02PL' );
00018		}
00019		else
00020		{
00021	// PARENTAL LOCL OFF
00022			ReplaceATextureByAnOther( Texture'XIIIAmos.Amfilm02PL', Texture'XIIIAmos.Amfilm02' );
00023		}
00024	}
00025	
00026	//_____________________________________________________________________________
00027	function SetGoalComplete(int N)
00028	{
00029	    Super.SetGoalcomplete(N);
00030	
00031	    // Change the big screen visual
00032	    switch(N)
00033	    {
00034	      Case 91:
00035	        DisplayScreen.StaticMesh = Screen1;
00036	        break;
00037	      Case 92:
00038	        DisplayScreen.StaticMesh = Screen2;
00039	        break;
00040	      Case 93:
00041	        DisplayScreen.StaticMesh = Screen3;
00042	        break;
00043	    }
00044	}
00045	
00046	//_____________________________________________________________________________
00047	function Trigger( actor Other, pawn EventInstigator )
00048	{
00049		//log(self@"---> QUI ME TUE ?"@EventInstigator);
00050		if ( EventInstigator.IsA( 'XIIIPlayerPawn' ) )
00051		{
00052			//log(self@"---> C'EST LE PERSO PRINCIPAL");
00053			LOG( ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::");
00054			LOG( "FBI Killed by XIII" );
00055			SetGoalComplete(0);
00056		}
00057	}
00058	
00059	//_____________________________________________________________________________
00060	
00061	
00062	defaultproperties
00063	{
00064	}

End Source Code