Better prints
This commit is contained in:
parent
f044b4db68
commit
8c7ba7f5e9
|
@ -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 )
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue