Skip to content

Commit

Permalink
Reduce akimbo melee damage to single gun damage
Browse files Browse the repository at this point in the history
This leaves the attack speed as is in order to introduce an
intentional disadvantage to players using akimbo guns over single guns.
  • Loading branch information
TomyLobo committed Dec 24, 2020
1 parent 4143edc commit 8585057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/shared/sdk/weapon_sdkbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8585057

Please sign in to comment.