From 81832da4f9a59fc271ce8982b948ec6688f43983 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 2 Nov 2018 13:21:25 -0400 Subject: Moved code to prevent weapon switching Moved code that prevents weaponswitching into hand.lua --- gamemode/client/cl_weaponswitch.lua | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 gamemode/client/cl_weaponswitch.lua (limited to 'gamemode/client/cl_weaponswitch.lua') diff --git a/gamemode/client/cl_weaponswitch.lua b/gamemode/client/cl_weaponswitch.lua deleted file mode 100644 index 2f681c9..0000000 --- a/gamemode/client/cl_weaponswitch.lua +++ /dev/null @@ -1,9 +0,0 @@ -local gm = GM or GAMEMODE - -function gm:PlayerSwitchWeapon( ply, oldWeapon, newWeapon ) - return false -end - -hook.Add( "HUDShouldDraw", "HideWeaponSelHUD", function( name ) - if name == "CHudWeaponSelection" then return false end -end ) -- cgit v1.2.3-70-g09d2