Skip to content

Commit

Permalink
Allow zr_knockback_scale to be a float
Browse files Browse the repository at this point in the history
  • Loading branch information
Vauff authored and EasterLee committed Nov 12, 2023
1 parent 4f7bb10 commit e761f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vscripts/ZombieReborn/Knockback.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tWeaponConfigs = LoadKeyValues("cfg\\zr\\weapons.cfg")

function Knockback_Apply(hHuman, hZombie, iDamage, sWeapon)
local iScale = Convars:GetInt("zr_knockback_scale")
local iScale = Convars:GetFloat("zr_knockback_scale")

if tWeaponConfigs and tWeaponConfigs[sWeapon] and tWeaponConfigs[sWeapon].knockback then
iScale = iScale * tWeaponConfigs[sWeapon].knockback
Expand Down

0 comments on commit e761f1b

Please sign in to comment.