Checks for my dumbass

This commit is contained in:
Fesiug 2023-11-14 01:30:58 -05:00
parent 6f83bbd96d
commit 8ed9ad5ab2
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ function SWEP:D_SetClip( hand, value )
end end
function SWEP:BDeploy( hand, id ) function SWEP:BDeploy( hand, id )
assert( isbool(hand), "You forgot the hand." )
assert( isstring(id), "You forgot the ID." )
if self:D_GetID( hand ) == id then if self:D_GetID( hand ) == id then
return -- PROTO: If you're in the middle of holstering, cancel it return -- PROTO: If you're in the middle of holstering, cancel it
elseif self:D_GetID( hand ) != "" then elseif self:D_GetID( hand ) != "" then