Update sh_inspect.lua

- If a weapon does not have an "inspect" or "enter_inspect" animation, it can no longer utilize inspect.
This commit is contained in:
MokaAkashiya85 2025-02-08 15:30:58 +01:00
parent 4fa7d3f8d1
commit 05d4fbc4f4

View File

@ -5,6 +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
local owner = self:GetOwner()
local inspecting = self:GetInspecting()