Checks for my dumbass
This commit is contained in:
parent
6f83bbd96d
commit
8ed9ad5ab2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue