2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_PerkGunslinger extends Ext_PerkRhythmPerkBase;
|
|
|
|
|
|
|
|
var bool bHasUberAmmo,bHasFanfire;
|
|
|
|
|
|
|
|
replication
|
|
|
|
{
|
|
|
|
// Things the server should send to the client.
|
2020-11-28 20:04:55 +00:00
|
|
|
if (true)
|
2017-10-20 02:00:49 +00:00
|
|
|
bHasUberAmmo,bHasFanfire;
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
simulated function bool GetUsingTactialReload(KFWeapon KFW)
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
return (IsWeaponOnPerk(KFW) ? Modifiers[5]<0.8 : false);
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
simulated function bool GetIsUberAmmoActive(KFWeapon KFW)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
return bHasUberAmmo && IsWeaponOnPerk(KFW) && WorldInfo.TimeDilation < 1.f;
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
simulated function float GetZedTimeModifier(KFWeapon W)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
2017-10-20 07:02:53 +00:00
|
|
|
local name StateName;
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2020-11-28 20:12:58 +00:00
|
|
|
if (bHasFanfire && IsWeaponOnPerk(W))
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
StateName = W.GetStateName();
|
2020-11-28 20:12:58 +00:00
|
|
|
if (BasePerk.Default.ZedTimeModifyingStates.Find(StateName) != INDEX_NONE || StateName == 'Reloading')
|
2017-10-20 07:02:53 +00:00
|
|
|
return 1.f;
|
|
|
|
}
|
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
return 0.f;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
DefTraitList.Add(class'Ext_TraitWPGuns')
|
|
|
|
DefTraitList.Add(class'Ext_TraitUberAmmo')
|
|
|
|
DefTraitList.Add(class'Ext_TraitFanfire')
|
|
|
|
DefTraitList.Add(class'Ext_TraitRackEmUp')
|
|
|
|
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_Gunslinger'
|
|
|
|
BasePerk=class'KFPerk_Gunslinger'
|
|
|
|
|
|
|
|
PrimaryMelee=class'KFWeap_Knife_Gunslinger'
|
|
|
|
PrimaryWeapon=class'KFWeap_Revolver_DualRem1858'
|
|
|
|
PerkGrenade=class'KFProj_NailBombGrenade'
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
PrimaryWeaponDef=class'KFWeapDef_Remington1858Dual'
|
|
|
|
KnifeWeaponDef=class'KFWeapDef_Knife_Gunslinger'
|
|
|
|
GrenadeWeaponDef=class'KFWeapDef_Grenade_Gunslinger'
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
AutoBuyLoadOutPath=(class'KFWeapDef_Remington1858', class'KFWeapDef_Remington1858Dual', class'KFWeapDef_Colt1911', class'KFWeapDef_Colt1911Dual',class'KFWeapDef_Deagle', class'KFWeapDef_DeagleDual', class'KFWeapDef_SW500', class'KFWeapDef_SW500Dual')
|
|
|
|
}
|