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

KFStoryGame.KFTeamAI_Story


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
//-----------------------------------------------------------
//
//-----------------------------------------------------------
class KFTeamAI_Story extends KFTeamAI;

/* Hack for story NPCs -  check their team Index number instead of the TeamInfo object ..
(They dont actually get put on teams with human players) */

function bool FriendlyToward(Pawn Other)
{
    if(KF_StoryNPC(Other) != none)
    {
        return KF_StoryNPC(Other).TeamIndex == Team.TeamIndex ;
    }

	return Super.OnThisTeam(Other);
}

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fri 13-10-2023 03:17:28.000 - Creation time: Fri 13-10-2023 03:19:04.336 - Created with UnCodeX