Better prints

This commit is contained in:
Fesiug 2024-01-01 17:57:11 -05:00
parent f044b4db68
commit 8c7ba7f5e9
2 changed files with 3 additions and 1 deletions

View File

@ -82,11 +82,13 @@ concommand.Add("benny_inv_discard", function( ply, cmd, args )
wep:SetClip2( 0 ) wep:SetClip2( 0 )
end end
if wep:bGetMagInvID( false ) == args[1] then if wep:bGetMagInvID( false ) == args[1] then
print( "Unloaded " .. args[1] .. " for " .. tostring(wep) )
inv[wep:bGetInvID( false )].Loaded = "" inv[wep:bGetInvID( false )].Loaded = ""
wep:SetWep1_Clip( "" ) wep:SetWep1_Clip( "" )
wep:SetClip1( 0 ) wep:SetClip1( 0 )
end end
if wep:bGetMagInvID( true ) == args[1] then if wep:bGetMagInvID( true ) == args[1] then
print( "Unloaded " .. args[1] .. " for " .. tostring(wep) )
inv[wep:bGetInvID( true )].Loaded = "" inv[wep:bGetInvID( true )].Loaded = ""
wep:SetWep2_Clip( "" ) wep:SetWep2_Clip( "" )
wep:SetClip2( 0 ) wep:SetClip2( 0 )

View File

@ -139,7 +139,7 @@ end
function PT:INV_Get() function PT:INV_Get()
if !self.INV then if !self.INV then
print( "Inventory created") print( "Inventory created for " .. tostring(self) )
self.INV = {} self.INV = {}
end end
return self.INV return self.INV