From 0a70922c03d7009f37a6f41b8a34847ae4c86ee7 Mon Sep 17 00:00:00 2001 From: MokaAkashiya85 Date: Tue, 11 Feb 2025 19:18:20 +0100 Subject: [PATCH] Update sh_inspect.lua - Fixed that weapons using numbered inspects (i.e. "inspect_1", "inspect_2", etc.) weren't taken into consideration when disabling inspect. --- lua/weapons/arc9_base/sh_inspect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/weapons/arc9_base/sh_inspect.lua b/lua/weapons/arc9_base/sh_inspect.lua index c4e4d9f6..e76f644d 100644 --- a/lua/weapons/arc9_base/sh_inspect.lua +++ b/lua/weapons/arc9_base/sh_inspect.lua @@ -5,7 +5,7 @@ function SWEP:ThinkInspect() if self.NextUBGLSwitch and self.NextUBGLSwitch > CurTime() then return end if self:GetUBGL() and !self:HasAnimation("inspect_ubgl") then return end if self:GetGrenadePrimed() then return end - if !(self:HasAnimation("enter_inspect") or self:HasAnimation("inspect")) then return end + if !(self:HasAnimation( "enter_inspect" ) or self:HasAnimation( "inspect" ) or self:HasAnimation( string.match( "inspect_%d*" ))) then return end local owner = self:GetOwner() local inspecting = self:GetInspecting()