rott/kf_sources/KFStoryGame/Classes/KFTeamAI_Story.uc
2026-07-14 20:27:09 +07:00

20 lines
529 B
Ucode

//-----------------------------------------------------------
//
//-----------------------------------------------------------
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);
}