local function hud_side(v, player)
	local p_hudside   = v.cachePatch("HUBSIDE")
	if (player.mo) and mapheaderinfo[gamemap].hudhide then
		v.draw(0, 0, p_hudside, V_SNAPTOTOP|V_SNAPTORIGHT|V_20TRANS|V_PERPLAYER);
			end
		end

hud.add(hud_side)

local function hud_out(v, player)
	local p_hudout   = v.cachePatch("HUBOUT")
	if (player.mo) and mapheaderinfo[gamemap].hudhide then
		v.draw(0, 0, p_hudout, V_SNAPTOTOP|V_SNAPTORIGHT|V_PERPLAYER);
			end
		end
		
hud.add(hud_out)