From 8c7ba7f5e9ab12a5bb0869f232b9b7ca76bafceb Mon Sep 17 00:00:00 2001 From: Fesiug Date: Mon, 1 Jan 2024 17:57:11 -0500 Subject: [PATCH] Better prints --- gamemodes/benny/gamemode/modules/player/sh_basic.lua | 2 ++ gamemodes/benny/gamemode/modules/player/sh_player.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gamemodes/benny/gamemode/modules/player/sh_basic.lua b/gamemodes/benny/gamemode/modules/player/sh_basic.lua index 8880833..788c2a9 100644 --- a/gamemodes/benny/gamemode/modules/player/sh_basic.lua +++ b/gamemodes/benny/gamemode/modules/player/sh_basic.lua @@ -82,11 +82,13 @@ concommand.Add("benny_inv_discard", function( ply, cmd, args ) wep:SetClip2( 0 ) end if wep:bGetMagInvID( false ) == args[1] then + print( "Unloaded " .. args[1] .. " for " .. tostring(wep) ) inv[wep:bGetInvID( false )].Loaded = "" wep:SetWep1_Clip( "" ) wep:SetClip1( 0 ) end if wep:bGetMagInvID( true ) == args[1] then + print( "Unloaded " .. args[1] .. " for " .. tostring(wep) ) inv[wep:bGetInvID( true )].Loaded = "" wep:SetWep2_Clip( "" ) wep:SetClip2( 0 ) diff --git a/gamemodes/benny/gamemode/modules/player/sh_player.lua b/gamemodes/benny/gamemode/modules/player/sh_player.lua index 028c65a..6b65d70 100644 --- a/gamemodes/benny/gamemode/modules/player/sh_player.lua +++ b/gamemodes/benny/gamemode/modules/player/sh_player.lua @@ -139,7 +139,7 @@ end function PT:INV_Get() if !self.INV then - print( "Inventory created") + print( "Inventory created for " .. tostring(self) ) self.INV = {} end return self.INV