From 7bf9a6be403e83237b2b0b08f099892b30f82f32 Mon Sep 17 00:00:00 2001 From: LiddulBOFH <13317534+LiddulBOFH@users.noreply.github.com> Date: Wed, 17 Jan 2024 01:30:01 -0600 Subject: [PATCH] Super duper important fix Fixed the LWR's ability to detect wiremod laser pointer so it'll only get set off if its the active weapon, as opposed to always being set off as long as it was active --- lua/acf/entities/sensors/receivers/receivers.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/acf/entities/sensors/receivers/receivers.lua b/lua/acf/entities/sensors/receivers/receivers.lua index 7cd4dbb..d5ab1e2 100644 --- a/lua/acf/entities/sensors/receivers/receivers.lua +++ b/lua/acf/entities/sensors/receivers/receivers.lua @@ -30,6 +30,7 @@ do -- Laser Receiver for _,ply in pairs(player.GetAll()) do local Wep = ply:GetWeapon("laserpointer") if not IsValid(Wep) then continue end + if Wep ~= ply:GetActiveWeapon() then continue end if Wep.Pointing then local Las = {Dir = ply:EyeAngles():Forward(),Position = ply:EyePos(),Player = ply}