home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Engine
/
Classes
/
PotentialClimbWatcher.uc
< prev
next >
Wrap
Text File
|
2003-06-23
|
615b
|
34 lines
class PotentialClimbWatcher extends Info
native;
simulated function Tick(float DeltaTime)
{
local rotator PawnRot;
local LadderVolume L;
local bool bFound;
if ( (Owner == None) || Owner.bDeleteMe || !Pawn(Owner).CanGrabLadder() )
{
destroy();
return;
}
PawnRot = Owner.Rotation;
PawnRot.Pitch = 0;
ForEach Owner.TouchingActors(class'LadderVolume', L)
if ( L.Encompasses(Owner) )
{
if ( (vector(PawnRot) Dot L.LookDir) > 0.9 )
{
Pawn(Owner).ClimbLadder(L);
destroy();
return;
}
else
bFound = true;
}
if ( !bFound )
destroy();
}