no inspect on grenades while pulled lol

This commit is contained in:
Darsu 2024-08-12 01:42:52 +07:00
parent c52c3afcc1
commit 6f73c50d9d

View File

@ -3,6 +3,7 @@ function SWEP:ThinkInspect()
if self:StillWaiting() or self:GetInSights() or self:GetBipod() or self:GetReloading() then return end
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
local owner = self:GetOwner()
local ininspectrn = string.find(self:GetIKAnimation() or "", "inspect")