1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFSM_PlayerPatriarch_MortarAttack.uc
2020-12-13 18:01:13 +03:00

36 lines
1.2 KiB
Ucode

//=============================================================================
// KFSM_PlayerPatriarch_MortarAttack
//=============================================================================
// Player-controlled Patriarch's mortar attack
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
//=============================================================================
class KFSM_PlayerPatriarch_MortarAttack extends KFSM_Patriarch_MortarAttack;
/** Restrictions for doing mortar attack */
protected function bool InternalCanDoSpecialMove()
{
local KFPawn_ZedPatriarch_Versus MyPatPawnV;
MyPatPawnV = KFPawn_ZedPatriarch_Versus( KFPOwner );
// Clear mortar targets first
MyPatPawnV.ClearMortarTargets();
if( MyPatPawnV.IsLocallyControlled() && !MyPatPawnV.CollectMortarTargets(true, true) )
{
MyPatPawnV.MyKFPC.MyGFxHUD.ShowNonCriticalMessage( MyPatPawnV.NoMortarTargetsMsg );
return false;
}
return super.InternalCanDoSpecialMove();
}
defaultproperties
{
Handle=KFSM_PlayerPatriarch_MortarAttack
//AnimName=Mortar_Shoot
//BarrageFireAnimName=Mortar_rapidfire
LoadAnimNames[0]=Mortar_TO_LoadP
}