From 63f7f0b477fbe19e0cd1c5054e15de9692469161 Mon Sep 17 00:00:00 2001 From: Fesiug Date: Mon, 25 Sep 2023 20:43:09 -0400 Subject: [PATCH] No need to call OnReloaded anymore --- gamemodes/benny/gamemode/modules/player/sh_basic.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gamemodes/benny/gamemode/modules/player/sh_basic.lua b/gamemodes/benny/gamemode/modules/player/sh_basic.lua index 4ea87b9..329aaac 100644 --- a/gamemodes/benny/gamemode/modules/player/sh_basic.lua +++ b/gamemodes/benny/gamemode/modules/player/sh_basic.lua @@ -70,7 +70,6 @@ concommand.Add("benny_inv_equip", function( ply, cmd, args ) assert( item[ "Ammo" .. item.Loaded ], "That magazine doesn't exist." ) end wep:SetClip1( item.Loaded == 0 and 0 or item[ "Ammo" .. item.Loaded ] ) - wep:OnReloaded() end) concommand.Add("benny_inv_sync", function( ply, cmd, args ) @@ -98,21 +97,15 @@ concommand.Add("benny_inv_discard", function( ply, cmd, args ) net.WriteString( args[1] ) net.Send( ply ) - local reload = false if wep:GetWep1() == args[1] then wep:SetWep1( "" ) wep:SetWep1Clip( 0 ) wep:SetClip1( 0 ) - reload = true end if wep:GetWep2() == args[1] then wep:SetWep2( "" ) wep:SetWep2Clip( 0 ) wep:SetClip2( 0 ) - reload = true - end - if reload then - wep:OnReloaded() end end)