Core.Object | +--Engine.Actor | +--Engine.NavigationPoint | +--Engine.PatrolPoint
int
AnimCount
PatrolPoint
NextPatrolPoint
name
Nextpatrol
PatrolAnim
sound
PatrolSound
byte
numAnims
float
pausetime
void
PreBeginPlay()
00001 //============================================================================= 00002 // PatrolPoint. 00003 //============================================================================= 00004 class PatrolPoint extends NavigationPoint; 00005 00006 #exec Texture Import File=Textures\Pathnode.pcx Name=S_Patrol Mips=Off Flags=2 00007 00008 var() name Nextpatrol; //next point to go to 00009 var() float pausetime; //how long to pause here 00010 var vector lookdir; //direction to look while stopped 00011 var() name PatrolAnim; 00012 var() sound PatrolSound; 00013 var() byte numAnims; 00014 var int AnimCount; 00015 var PatrolPoint NextPatrolPoint; 00016 00017 00018 function PreBeginPlay() 00019 { 00020 if (pausetime > 0.0) 00021 lookdir = 200 * vector(Rotation); 00022 00023 //find the patrol point with the tag specified by Nextpatrol 00024 foreach AllActors(class 'PatrolPoint', NextPatrolPoint, Nextpatrol) 00025 break; 00026 00027 Super.PreBeginPlay(); 00028 } 00029 00030 defaultproperties 00031 { 00032 bDirectional=True 00033 Texture=Texture'Engine.S_Patrol' 00034 SoundVolume=128 00035 }