## XIDMaps
Class Sanc02b

source: C:\XIII\XIDMaps\Classes\Sanc02b.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--XIII.MapInfo
                |
                +--XIDMaps.Map15_Sanctuaire
                   |
                   +--XIDMaps.Sanc02b

Direct Known Subclasses:None

class Sanc02b
extends XIDMaps.Map15_Sanctuaire

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

States
STA_NoShootAllowed, STA_NoShootAllowed, STA_NoShootAllowed

Function Summary
`void` | `SomeoneShoots(Pawn Shooter)`
    // 2 - S'echapper du sanctuaire
    // 3 - ANTIGOAL : L'alerte a ete donn

State STA_NoShootAllowed Function Summary
`void` | `SetGoalComplete(int N)`
    //_____________________________________________________________________________
`void` | `SomeoneShoots(Pawn Shooter)`

State STA_NoShootAllowed Function Summary

State STA_NoShootAllowed Function Summary

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class Sanc02b extends Map15_Sanctuaire;
    00005
    00006	// 0 - Espionner ce qui est dit pendant l'Assemblée. L'assemblée sera annulée si l'alerte est donnée
    00007	// 1 - ANTIGOAL : XIII s'est fait remarqué et a interrompu la reunion avant d'avoir pu obtenir tout les renseignements necessaires.
    00008	// 2 - S'echapper du sanctuaire
    00009	// 3 - ANTIGOAL : L'alerte a ete donnée. La reunion est annulée.
    00010
    00011
    00012	FUNCTION SomeoneShoots( Pawn Shooter )
    00013	{
    00014	}
    00015
    00016	STATE STA_NoShootAllowed
    00017	{
    00018		EVENT BeginState( )
    00019		{
    00020			LOCAL Mutator m;
    00021
    00022			m = spawn(class'Sanc02bMutator');
    00023			m.NextMutator = Level.Game.BaseMutator.NextMutator;
    00024			Level.Game.BaseMutator = m;
    00025			LOG( "BEGINSTATE STA_NoShootAllowed"@m );
    00026		}
    00027
    00028		EVENT EndState( )
    00029		{
    00030			LOCAL Mutator m;
    00031
    00032	//		m = Level.Game.BaseMutator;
    00033	//		Level.Game.BaseMutator = m.NextMutator;
    00034	//		m.Destroy( );
    00035			LOG( "ENDSTATE STA_NoShootAllowed"@m );
    00036		}
    00037
    00038		FUNCTION SomeoneShoots( Pawn Shooter )
    00039		{
    00040	//		Log(Shooter@"SHOOTS");
    00041	//		if ( Shooter!=none /*&& Shooter.IsPlayerPawn()*/ )
    00042				SetGoalComplete( 1 );
    00043		}
    00044	}
    00045
    00046	//_____________________________________________________________________________
    00047	FUNCTION SetGoalComplete(int N)
    00048	{
    00049		SUPER.SetGoalComplete(N);
    00050
    00051		switch ( N )
    00052		{
    00053		case 0:
    00054			GotoState( '' );
    00055			SetSecondaryGoal(1);
    00056			SetPrimaryGoal(2);
    00057			break;
    00058		case 513:
    00059			GotoState( 'STA_NoShootAllowed' );
    00060			break;
    00061		}
    00062	}
    00063
    00064
    00065
    00066	defaultproperties
    00067	{
    00068	}

End Source Code