2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_PerkSWAT extends Ext_PerkBase;
|
|
|
|
|
|
|
|
var byte RepTacticalMove;
|
|
|
|
var float MoveSpeedMods[3];
|
2017-10-20 07:02:53 +00:00
|
|
|
var bool bRapidAssault;
|
2017-10-20 02:00:49 +00:00
|
|
|
|
|
|
|
replication
|
|
|
|
{
|
|
|
|
// Things the server should send to the client.
|
|
|
|
if ( true )
|
2017-10-20 07:02:53 +00:00
|
|
|
RepTacticalMove, bRapidAssault;
|
2017-10-20 02:00:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
simulated function float GetIronSightSpeedModifier( KFWeapon KFW )
|
|
|
|
{
|
|
|
|
return ((RepTacticalMove>0 && IsWeaponOnPerk(KFW)) ? MoveSpeedMods[RepTacticalMove-1] : 1.f);
|
|
|
|
}
|
|
|
|
|
2017-10-20 07:02:53 +00:00
|
|
|
simulated function bool GetIsUberAmmoActive( KFWeapon KFW )
|
|
|
|
{
|
|
|
|
return bRapidAssault && IsWeaponOnPerk(KFW) && WorldInfo.TimeDilation < 1.f;
|
|
|
|
}
|
|
|
|
|
|
|
|
simulated function float GetZedTimeModifier( KFWeapon W )
|
|
|
|
{
|
|
|
|
if( bRapidAssault && WorldInfo.TimeDilation<1.f && IsWeaponOnPerk(W) && BasePerk.Default.ZedTimeModifyingStates.Find(W.GetStateName()) != INDEX_NONE )
|
|
|
|
return 0.51f;
|
|
|
|
return 0.f;
|
|
|
|
}
|
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
PerkName="SWAT"
|
|
|
|
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_SWAT'
|
|
|
|
DefTraitList.Add(class'Ext_TraitWPSWAT')
|
|
|
|
DefTraitList.Add(class'Ext_TraitHeavyArmor')
|
|
|
|
DefTraitList.Add(class'Ext_TraitTacticalMove')
|
|
|
|
DefTraitList.Add(class'Ext_TraitSWATEnforcer')
|
2017-10-20 07:02:53 +00:00
|
|
|
DefTraitList.Add(class'Ext_TraitRapidAssault')
|
2017-10-20 02:00:49 +00:00
|
|
|
BasePerk=class'KFPerk_SWAT'
|
|
|
|
|
|
|
|
PrimaryMelee=class'KFWeap_Knife_SWAT'
|
|
|
|
PrimaryWeapon=class'KFWeap_SMG_MP7'
|
|
|
|
PerkGrenade=class'KFProj_FlashBangGrenade'
|
|
|
|
|
|
|
|
PrimaryWeaponDef=class'KFWeapDef_MP7'
|
|
|
|
KnifeWeaponDef=class'KFweapDef_Knife_SWAT'
|
|
|
|
GrenadeWeaponDef=class'KFWeapDef_Grenade_SWAT'
|
|
|
|
|
|
|
|
AutoBuyLoadOutPath=(class'KFWeapDef_MP7', class'KFWeapDef_MP5RAS', class'KFWeapDef_P90', class'KFWeapDef_Kriss')
|
|
|
|
|
|
|
|
MoveSpeedMods(0)=1.3
|
|
|
|
MoveSpeedMods(1)=1.5
|
|
|
|
MoveSpeedMods(2)=2
|
|
|
|
}
|