Merge branch 'master' into weaponswitch

This commit is contained in:
GenZmeY 2021-08-24 04:48:08 +03:00 committed by GitHub
commit 637e3675a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 9 deletions

View File

@ -516,6 +516,11 @@ simulated function ModifyRecoil(out float CurrentRecoilModifier, KFWeapon KFW)
CurrentPerk.ModifyRecoil(CurrentRecoilModifier,KFW);
}
simulated function float GetCameraViewShakeModifier(KFWeapon KFW)
{
return (CurrentPerk!=None ? CurrentPerk.GetCameraViewShakeModifier(KFW) : 1.f);
}
simulated function ModifySpread(out float InSpread)
{
if (CurrentPerk!=None)
@ -557,7 +562,7 @@ function float GetKnockdownPowerModifier(optional class<DamageType> DamageType,
function float GetStumblePowerModifier(optional KFPawn KFP, optional class<KFDamageType> DamageType, optional out float CooldownModifier, optional byte BodyPart)
{
return (CurrentPerk!=None ? CurrentPerk.GetKnockdownPowerModifier() : 1.f);
return (CurrentPerk!=None ? CurrentPerk.GetStumblePowerModifier() : 1.f);
}
function float GetStunPowerModifier(optional class<DamageType> DamageType, optional byte HitZoneIdx)
@ -893,9 +898,14 @@ simulated function float GetPenetrationModifier(byte Level, class<KFDamageType>
{
return (Ext_PerkSupport(CurrentPerk)!=None ? Ext_PerkSupport(CurrentPerk).GetPenetrationModifier(Level, DamageType, bForce) : 0.f);
}
simulated function float GetTightChokeModifier()
{
return (CurrentPerk!=None ? CurrentPerk.GetTightChokeModifier() : 1.f);
}
// SwitchSpeed
simulated function ModifyWeaponSwitchTime( out float ModifiedSwitchTime )
simulated function ModifyWeaponSwitchTime(out float ModifiedSwitc)
{
if (CurrentPerk != None)
CurrentPerk.ModifyWeaponSwitchTime(ModifiedSwitchTime);
@ -926,4 +936,4 @@ defaultproperties
BumpMomentum=1.f
BumpDamageAmount=450
BumpDamageType=class'KFDT_SWATBatteringRam'
}
}

View File

@ -1300,6 +1300,11 @@ simulated function float GetReloadRateScale(KFWeapon KFW)
return (IsWeaponOnPerk(KFW) ? Modifiers[5] : 1.f);
}
simulated function float GetCameraViewShakeModifier(KFWeapon KFW)
{
return Modifiers[2];
}
function ModifyHealth(out int InHealth)
{
InHealth *= Modifiers[6];
@ -1320,6 +1325,11 @@ function float GetStunPowerModifier(optional class<DamageType> DamageType, optio
return Modifiers[7];
}
function float GetStumblePowerModifier( optional KFPawn KFP, optional class<KFDamageType> DamageType, optional out float CooldownModifier, optional byte BodyPart )
{
return Modifiers[7];
}
simulated function ModifyMeleeAttackSpeed(out float InDuration);
function AddDefaultInventory(KFPawn P)
@ -1487,6 +1497,11 @@ simulated function float GetZedTimeExtensions(byte Level)
return 1.f;
}
simulated function float GetTightChokeModifier()
{
return Modifiers[3];
}
defaultproperties
{
CurrentConfigVer=15
@ -1589,4 +1604,4 @@ defaultproperties
EnemyDistDraw.Add(700)
EnemyDistDraw.Add(1000)
EnemyDistDraw.Add(1600)
}
}

View File

@ -28,6 +28,16 @@ simulated function float GetZedTimeModifier(KFWeapon W)
return 0.f;
}
function float GetStumblePowerModifier( optional KFPawn KFP, optional class<KFDamageType> DamageType, optional out float CooldownModifier, optional byte BodyPart )
{
if (bRapidAssault)
{
return 2.f * Modifiers[7];
}
return Modifiers[7];
}
defaultproperties
{
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_SWAT'
@ -51,4 +61,4 @@ defaultproperties
MoveSpeedMods(0)=1.3
MoveSpeedMods(1)=1.5
MoveSpeedMods(2)=2
}
}

View File

@ -2,8 +2,8 @@ Class Ext_TraitWPGuns extends Ext_TraitWeapons;
defaultproperties
{
LevelEffects(0)=(LoadoutClasses=(class'KFWeap_Pistol_Colt1911'))
LevelEffects(1)=(LoadoutClasses=(class'KFWeap_Pistol_Deagle'))
LevelEffects(2)=(LoadoutClasses=(class'KFWeap_Revolver_SW500'))
LevelEffects(0)=(LoadoutClasses=(class'KFWeap_Pistol_DualColt1911'))
LevelEffects(1)=(LoadoutClasses=(class'KFWeap_Pistol_DualDeagle'))
LevelEffects(2)=(LoadoutClasses=(class'KFWeap_Revolver_DualSW500'))
LevelEffects(3)=(LoadoutClasses=(class'KFWeap_Pistol_DualColt1911',class'KFWeap_Pistol_DualDeagle',class'KFWeap_Revolver_DualSW500'))
}
}