Engine
Class PlayerStart

source: e:\games\UnrealTournament\Engine\Classes\PlayerStart.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.NavigationPoint
         |
         +--Engine.PlayerStart
Direct Known Subclasses:None

class PlayerStart
extends Engine.NavigationPoint

//============================================================================= // Player start location. //=============================================================================
Variables
 byte TeamNumber
 bool bCoopStart
 bool bEnabled
 bool bSinglePlayerStart


Function Summary
 void PlayTeleportEffect(Actor Incoming, bool bOut)
 void Trigger(Actor Other, Pawn EventInstigator)



Source Code


00001	//=============================================================================
00002	// Player start location.
00003	//=============================================================================
00004	class PlayerStart extends NavigationPoint 
00005		native;
00006	
00007	#exec Texture Import File=Textures\S_Player.pcx Name=S_Player Mips=Off Flags=2
00008	
00009	// Players on different teams are not spawned in areas with the
00010	// same TeamNumber unless there are more teams in the level than
00011	// team numbers.
00012	var() byte TeamNumber;
00013	var() bool bSinglePlayerStart;
00014	var() bool bCoopStart;		
00015	var() bool bEnabled; 
00016	
00017	function Trigger( actor Other, pawn EventInstigator )
00018	{
00019		bEnabled = !bEnabled;
00020	}
00021	
00022	function PlayTeleportEffect(actor Incoming, bool bOut)
00023	{
00024		if ( Level.Game.bDeathMatch && Incoming.IsA('PlayerPawn') )
00025			PlayerPawn(Incoming).SetFOVAngle(135);
00026		Level.Game.PlayTeleportEffect(Incoming, bOut, Level.Game.bDeathMatch );
00027	}
00028	
00029	defaultproperties
00030	{
00031	     bSinglePlayerStart=True
00032	     bCoopStart=True
00033	     bEnabled=True
00034	     bDirectional=True
00035	     Texture=Texture'Engine.S_Player'
00036	     SoundVolume=128
00037	     CollisionRadius=18.000000
00038	     CollisionHeight=40.000000
00039	}

End Source Code