## XIIIMP
Class XIIIMPFlagBase

source: C:\XIII\XIIIMP\Classes\XIIIMPFlagBase.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.NavigationPoint
             |
             +--XIIIMP.XIIIMPFlagBase

Direct Known Subclasses:None

class XIIIMPFlagBase
extends Engine.NavigationPoint

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

Variables
`Sound` | `TakenSound`
`byte` | `Team`

Function Summary
`void` | `PlayAlarm()`
`void` | `PostBeginPlay()`
    //_____________________________________________________________________________
`void` | `Timer()`

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIMPFlagBase extends NavigationPoint
    00005	     placeable;
    00006
    00007	//#exec AUDIO IMPORT FILE="..\botpack\Sounds\CTF\flagtaken.WAV" NAME="flagtaken" GROUP="CTF"
    00008
    00009	var() byte Team;
    00010	var() Sound TakenSound;
    00011
    00012	//_____________________________________________________________________________
    00013	function PostBeginPlay()
    00014	{
    00015	    local XIIIMPFlag myFlag;
    00016
    00017	    Super.PostBeginPlay();
    00018	    LoopAnim('newflag');
    00019	    if (!Level.Game.IsA('XIIIMPCTFGameInfo'))
    00020	    {
    00021	      Log(">>>> "$self$" XIIIMPFlagBase says Level is not a CTF Level");
    00022	      return;
    00023	    }
    00024
    00025	//    bHidden = false;
    00026	    if ( Team == 0 )
    00027	    {
    00028	      Log(">>>> "$self$" XIIIMPFlagBase Spawns Red Flag");
    00029	      myFlag = Spawn(class'XIIIMP.XIIIMPRFlag');
    00030	    }
    00031	    else if ( Team == 1 )
    00032	    {
    00033	      Log(">>>> "$self$" XIIIFlagBase Spawns Blue Flag");
    00034	      myFlag = Spawn(class'XIIIMP.XIIIMPFlag');
    00035	    }
    00036
    00037	    myFlag.HomeBase = self;
    00038	}
    00039
    00040	function PlayAlarm()
    00041	{
    00042	     SetTimer(5.0, false);
    00043	     AmbientSound = TakenSound;
    00044	}
    00045
    00046	function Timer()
    00047	{
    00048	     AmbientSound = None;
    00049	}
    00050
    00051	//     TakenSound=Sound'XIIISounds.flagtaken'
    00052
    00053
    00054	defaultproperties
    00055	{
    00056	     bStatic=False
    00057	     bNoDelete=True
    00058	     bAlwaysRelevant=True
    00059	     bCollideActors=True
    00060	     DrawScale=1.300000
    00061	     CollisionRadius=60.000000
    00062	     CollisionHeight=60.000000
    00063	     NetUpdateFrequency=3.000000
    00064	}

End Source Code