1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFAIController_HuskFriendlyTest.uc

44 lines
1.3 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFAIController_HuskFriendlyTest
//=============================================================================
// Husk's AIController that will target zeds not players - for testing
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
//=============================================================================
class KFAIController_HuskFriendlyTest extends KFAIController_ZedHusk;
/** Don't create a benchmarking PRI for the test Hans */
function InitPlayerReplicationInfo(){}
/** Make sure test Hans is on the human team */
simulated event byte ScriptGetTeamNum()
{
return 0;
}
function bool CanDoFireball( float DistToTargetSq )
{
return false;
}
function bool CanDoFlamethrower( float DistToTargetSq )
{
if( `TimeSince(LastFlameThrowerTime) > TimeBetweenFlameThrower &&
DistToTargetSq <= MaxDistanceForFlameThrower * MaxDistanceForFlameThrower &&
MyKFPawn.CanDoSpecialMove(SM_HoseWeaponAttack) )
{
return true;
}
return false;
}
defaultproperties
{
bAllowScriptTeamCheck=true
// FlameThrower
TimeBetweenFlameThrower=1
MaxDistanceForFlameThrower=1000
}