From e761f1b02fe589c7d77d0df3429abbfa15210a3d Mon Sep 17 00:00:00 2001 From: Vauff Date: Sat, 11 Nov 2023 17:53:57 -0500 Subject: [PATCH] Allow zr_knockback_scale to be a float --- scripts/vscripts/ZombieReborn/Knockback.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vscripts/ZombieReborn/Knockback.lua b/scripts/vscripts/ZombieReborn/Knockback.lua index a39f262..d2270dc 100644 --- a/scripts/vscripts/ZombieReborn/Knockback.lua +++ b/scripts/vscripts/ZombieReborn/Knockback.lua @@ -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