From 0656855070e04c4d94ffe8b38c7d650898a1301b Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 21 Aug 2021 07:25:27 -0700 Subject: [PATCH] test --- ServerExt/Classes/ExtPerkManager.uc | 5 +++++ ServerExt/Classes/Ext_PerkBase.uc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ServerExt/Classes/ExtPerkManager.uc b/ServerExt/Classes/ExtPerkManager.uc index 8b62849..34eb2fd 100644 --- a/ServerExt/Classes/ExtPerkManager.uc +++ b/ServerExt/Classes/ExtPerkManager.uc @@ -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) diff --git a/ServerExt/Classes/Ext_PerkBase.uc b/ServerExt/Classes/Ext_PerkBase.uc index ac1807d..43d3637 100644 --- a/ServerExt/Classes/Ext_PerkBase.uc +++ b/ServerExt/Classes/Ext_PerkBase.uc @@ -1293,6 +1293,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];