From 94d17f5cda5ba178031b299b361df9cbea686c33 Mon Sep 17 00:00:00 2001 From: Fesiug Date: Sat, 9 Dec 2023 21:50:28 -0500 Subject: [PATCH] Swap hands --- gamemodes/benny/gamemode/modules/player/sh_hud.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gamemodes/benny/gamemode/modules/player/sh_hud.lua b/gamemodes/benny/gamemode/modules/player/sh_hud.lua index 5fc4545..dcefcfd 100644 --- a/gamemodes/benny/gamemode/modules/player/sh_hud.lua +++ b/gamemodes/benny/gamemode/modules/player/sh_hud.lua @@ -37,6 +37,9 @@ local function beatup( ply, num ) -- If the wanted weapon is in the other hand, request to holster it. wep:D_SetReqID( !hand, "" ) end + if wep:D_GetID( hand ) != "" then -- If we have something in this hand, swap it with the other + wep:D_SetReqID( !hand, wep:D_GetID( hand ) ) + end return wep:D_SetReqID( hand, id ) end end