Core.Object | +--Engine.Actor | +--Engine.NavigationPoint | +--Engine.PlayerStart
byte
TeamNumber
bool
bCoopStart
bEnabled
bSinglePlayerStart
void
PlayTeleportEffect(Actor Incoming, bool bOut)
Trigger(Actor Other, Pawn EventInstigator)
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 }