aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/weapons/weapon_zone_designator.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/weapons/weapon_zone_designator.lua b/lua/weapons/weapon_zone_designator.lua
index 69e3277..19ae40b 100644
--- a/lua/weapons/weapon_zone_designator.lua
+++ b/lua/weapons/weapon_zone_designator.lua
@@ -168,6 +168,14 @@ function SWEP:PrimaryAttack()
if !tr.HitWorld and IsValid(tr.Entity) and tr.Entity:GetClass() == "ent_zone_point" then
if IsValid(zones.optionsFrame) then return end
zones.ShowOptions(tr.Entity:GetZoneID())
+ else
+
+ local _,id = self.Owner:GetCurrentZone(GetConVarNumber("zone_filter") == 1 and self:GetZoneClass())
+ if IsValid(zones.optionsFrame) then return end
+ if id != -1 then
+ zones.ShowOptions(id)
+ end
+
end
end