From 8585057be486be8e7b07ca74d0b70d8012d2f3e4 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Wed, 23 Dec 2020 03:21:35 +0100 Subject: [PATCH] Reduce akimbo melee damage to single gun damage This leaves the attack speed as is in order to introduce an intentional disadvantage to players using akimbo guns over single guns. --- mp/src/game/shared/sdk/weapon_sdkbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp/src/game/shared/sdk/weapon_sdkbase.cpp b/mp/src/game/shared/sdk/weapon_sdkbase.cpp index cd815ed9c..4ce5e0c42 100644 --- a/mp/src/game/shared/sdk/weapon_sdkbase.cpp +++ b/mp/src/game/shared/sdk/weapon_sdkbase.cpp @@ -790,7 +790,7 @@ float CWeaponSDKBase::GetMeleeDamage( bool bIsSecondary, CSDKPlayer* pVictim ) c if (bIsStockAttack) { // The heavier the damage the more it hurts. - flDamage = RemapVal(GetSDKWpnData().iWeight, 7, 20, 25, 45); + flDamage = RemapVal(GetWeight(), 7, 20, 25, 45); } else { // Get the damage from the weapon script.