Skip to content

Commit

Permalink
Scale melee style charge usage based on damage
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Mar 18, 2020
1 parent d843d77 commit 7f677cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mp/src/game/shared/sdk/weapon_sdkbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,7 @@ void CWeaponSDKBase::Swing()
}
}

if (m_bSwingSecondary)
pOwner->UseStyleCharge(SKILL_BOUNCER, 5);
else
pOwner->UseStyleCharge(SKILL_BOUNCER, 2.5f);
pOwner->UseStyleCharge(SKILL_BOUNCER, GetMeleeDamage(m_bSwingSecondary, NULL) / 10);

// -------------------------
// Miss
Expand Down

0 comments on commit 7f677cb

Please sign in to comment.