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.
This commit is contained in:
MokaAkashiya85 2025-02-11 19:18:20 +01:00
parent 05d4fbc4f4
commit 0a70922c03

View File

@ -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()