2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_PerkSupport extends Ext_PerkBase;
|
|
|
|
|
2017-10-20 07:02:53 +00:00
|
|
|
var bool bUseAPShot,bUsePerforate,bCanRepairDoors;
|
|
|
|
var float APShotMul;
|
|
|
|
|
2017-10-22 09:11:47 +00:00
|
|
|
replication
|
|
|
|
{
|
|
|
|
// Things the server should send to the client.
|
|
|
|
if ( true )
|
|
|
|
bCanRepairDoors, bUseAPShot, bUsePerforate, APShotMul;
|
|
|
|
}
|
|
|
|
|
2017-10-20 07:02:53 +00:00
|
|
|
simulated function bool GetUsingTactialReload( KFWeapon KFW )
|
|
|
|
{
|
|
|
|
return (IsWeaponOnPerk(KFW) ? Modifiers[5]<0.75 : false);
|
|
|
|
}
|
|
|
|
|
2017-10-22 09:16:27 +00:00
|
|
|
simulated function bool CanRepairDoors()
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
return bCanRepairDoors;
|
|
|
|
}
|
|
|
|
|
|
|
|
simulated function float GetPenetrationModifier( byte Level, class<KFDamageType> DamageType, optional bool bForce )
|
|
|
|
{
|
|
|
|
local float PenetrationPower;
|
|
|
|
if( !bForce && (DamageType == none || ( DamageType!=None && DamageType.Default.ModifierPerkList.Find(BasePerk) == INDEX_NONE )))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
PenetrationPower = bUseAPShot ? APShotMul : 0.f;
|
|
|
|
PenetrationPower = IsPerforateActive() ? 40.f : PenetrationPower;
|
|
|
|
|
|
|
|
return PenetrationPower;
|
|
|
|
}
|
|
|
|
|
|
|
|
simulated function bool IsPerforateActive()
|
|
|
|
{
|
|
|
|
return bUsePerforate && WorldInfo.TimeDilation < 1.f;
|
|
|
|
}
|
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
PerkName="Support"
|
|
|
|
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_Support'
|
2017-10-20 07:02:53 +00:00
|
|
|
DefTraitList.Add(class'Ext_TraitGrenadeSUpg')
|
2017-10-20 02:00:49 +00:00
|
|
|
DefTraitList.Add(class'Ext_TraitWPSupp')
|
|
|
|
DefTraitList.Add(class'Ext_TraitSupply')
|
2017-10-20 07:02:53 +00:00
|
|
|
DefTraitList.Add(class'Ext_TraitAPShots')
|
|
|
|
DefTraitList.Add(class'Ext_TraitDoorRepair')
|
|
|
|
DefTraitList.Add(class'Ext_TraitPenetrator')
|
2017-10-20 02:00:49 +00:00
|
|
|
BasePerk=class'KFPerk_Support'
|
|
|
|
WeldExpUpNum=80
|
|
|
|
|
|
|
|
DefPerkStats(0)=(MaxValue=20,CostPerValue=2)
|
|
|
|
DefPerkStats(8)=(bHiddenConfig=false)
|
|
|
|
|
|
|
|
PrimaryMelee=class'KFWeap_Knife_Support'
|
|
|
|
PrimaryWeapon=class'KFWeap_Shotgun_MB500'
|
|
|
|
|
|
|
|
PrimaryWeaponDef=class'KFWeapDef_MB500'
|
|
|
|
KnifeWeaponDef=class'KFWeapDef_Knife_Support'
|
|
|
|
GrenadeWeaponDef=class'KFWeapDef_Grenade_Support'
|
|
|
|
|
|
|
|
AutoBuyLoadOutPath=(class'KFWeapDef_MB500', class'KFWeapDef_DoubleBarrel', class'KFWeapDef_M4', class'KFWeapDef_AA12')
|
|
|
|
}
|