Don't allow holster things

This commit is contained in:
Fesiug 2023-12-17 21:35:01 -05:00
parent f64346f27d
commit 76e8f3b37b
1 changed files with 18 additions and 11 deletions

View File

@ -193,6 +193,12 @@ function SWEP:Think()
local curr = self:D_GetID( hand )
local curr_o = self:D_GetID( !hand )
if req != curr then
-- Don't allow holstering from this weapon if...
-- Just know, this feels bad.
if self:D_GetReloading( hand ) > 0 then
elseif self:D_GetShotTime( hand ) + self:GetStat( hand, "ShootHolsterTime" ) > CurTime() then
else
if curr != "" then
-- require holster first
self:BStartHolster( hand )
@ -209,6 +215,7 @@ function SWEP:Think()
end
end
end
end
self:BThinkHolster( hand )