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

UnrealI.SkaarjBerserker


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
00037
//=============================================================================
// SkaarjBerserker.
//=============================================================================
class SkaarjBerserker expands SkaarjWarrior;

#exec TEXTURE IMPORT NAME=Skaarjw2 FILE=MODELS\Skar1.PCX GROUP=Skins 

function WhatToDoNext(name LikelyState, name LikelyLabel)
{
    local Pawn aPawn;

    aPawn = Level.PawnList;
    while ( aPawn != None )
    {
        if ( (aPawn.IsA('PlayerPawn') || aPawn.IsA('ScriptedPawn'))
            && (VSize(Location - aPawn.Location) < 500)
            && CanSee(aPawn) )
        {
            if ( SetEnemy(aPawn) )
            {
                GotoState('Attacking');
                return;
            }
        }
        aPawn = aPawn.nextPawn;
    }
    
    Super.WhatToDoNext(LikelyState, LikelyLabel);
}   

function eAttitude AttitudeToCreature(Pawn Other)
{
    if ( Other.IsA('ScriptedPawn') && !Other.IsA('Pupae') )
        return ATTITUDE_Hate;
    else
        return ATTITUDE_Ignore;
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 12:52:32.000 - Creation time: za 22-4-2006 12:53:46.859 - Created with UnCodeX