From d6795521e68a0bdb44600b5a850293e83a0533bf Mon Sep 17 00:00:00 2001 From: icedream Date: Sat, 21 Dec 2013 00:11:16 +0100 Subject: [PATCH] So not even the documentation told me that LocalPlayer() doesn't even have GetWeapon. --- lua/weapons/disguiser/cl_fxfake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/weapons/disguiser/cl_fxfake.lua b/lua/weapons/disguiser/cl_fxfake.lua index 37bcea9..6a95333 100644 --- a/lua/weapons/disguiser/cl_fxfake.lua +++ b/lua/weapons/disguiser/cl_fxfake.lua @@ -33,9 +33,9 @@ usermessage.Hook("disguiserShootFX", function(um) local bFirstTimePredicted = um:ReadBool() // Player and weapon valid? - if !IsValid(LocalPlayer()) || !IsValid(LocalPlayer():GetWeapon()) || !IsValid(LocalPlayer():GetWeapon().DoShootEffect) then return false end + if !IsValid(LocalPlayer()) || !IsValid(LocalPlayer():GetActiveWeapon()) || !IsValid(LocalPlayer():GetActiveWeapon().DoShootEffect) then return false end // Render shoot effect - LocalPlayer():GetWeapon("disguiser"):DoShootEffect( + LocalPlayer():GetActiveWeapon("disguiser"):DoShootEffect( hitpos, hitnormal, entity, physbone, bFirstTimePredicted) end) \ No newline at end of file