From 6a537cd9242b396d8171604f0cff3a06bd568cca Mon Sep 17 00:00:00 2001 From: icedream Date: Sat, 21 Dec 2013 00:12:40 +0100 Subject: [PATCH] IsValid doesn't work on functions. --- lua/weapons/disguiser/cl_fxfake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/weapons/disguiser/cl_fxfake.lua b/lua/weapons/disguiser/cl_fxfake.lua index 6a95333..d6f6c40 100644 --- a/lua/weapons/disguiser/cl_fxfake.lua +++ b/lua/weapons/disguiser/cl_fxfake.lua @@ -33,7 +33,7 @@ usermessage.Hook("disguiserShootFX", function(um) local bFirstTimePredicted = um:ReadBool() // Player and weapon valid? - if !IsValid(LocalPlayer()) || !IsValid(LocalPlayer():GetActiveWeapon()) || !IsValid(LocalPlayer():GetActiveWeapon().DoShootEffect) then return false end + if !IsValid(LocalPlayer()) || !IsValid(LocalPlayer():GetActiveWeapon()) || !!LocalPlayer():GetActiveWeapon().DoShootEffect then return false end // Render shoot effect LocalPlayer():GetActiveWeapon("disguiser"):DoShootEffect(