Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.PatrolPoint


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
//=============================================================================
// PatrolPoint.
//=============================================================================
class PatrolPoint expands NavigationPoint;

#exec Texture Import File=Textures\Pathnode.pcx Name=S_Patrol Mips=Off Flags=2

var() name Nextpatrol; //next point to go to
var() float pausetime; //how long to pause here
var  vector lookdir; //direction to look while stopped
var() name PatrolAnim;
var() sound PatrolSound;
var() byte numAnims;
var int AnimCount;
var PatrolPoint NextPatrolPoint;


function PreBeginPlay()
{
    if (pausetime > 0.0)
        lookdir = 200 * vector(Rotation);

    //find the patrol point with the tag specified by Nextpatrol
    foreach AllActors(class 'PatrolPoint', NextPatrolPoint, Nextpatrol)
        break; 
    
    Super.PreBeginPlay();
}

defaultproperties
{
     bDirectional=True
     Texture=Texture'Engine.S_Patrol'
     SoundVolume=128
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:52.913 - Created with UnCodeX