//idfk how this works
addHook("MusicChange", function(oldname, newname)
	if consoleplayer
		local character = skins[consoleplayer.skin].name
		if character == "fakerguide" //skin to use custom themes			
			if newname == "_inv"
				return "finv"
			elseif newname == "_shoes"
				return "fshoe"
			elseif newname == "_gover"
				return "fgover"
			elseif newname == "_super"
				return "fsuper"
			elseif newname == "_clear"
				return "fgwin"
			elseif newname == "_conti"
				return "fconti"
			elseif newname == "_drown"
				return "fdrwn"
			end
		end
	end
end)

//This was "borrowed" from NTOPP go support it its not as bad as i thought it was before testing and its pretty impressive

addHook('MusicChange', function(old, new)
	if not (consoleplayer and consoleplayer.valid) return end
	if new == mapmusname and consoleplayer.ntoppv2_boogie then return 'MVITBY' end
	if ((gamestate == GS_LEVEL and consoleplayer.mo and consoleplayer.mo.skin == "fakerguide")
	or (consoleplayer.skin == "fakerguide")) then
		local music = {
			['PIZTIM'] = "FIDL1",
			['DEAOLI'] = "FIDL2",
			['PIJORE'] = "FIDL3",
			['OTMUSA'] = "FPOT",
			['OTMUSB'] = "FIDL1",
			['OVRTME'] = "FIDOT"
		}
		if music[new] and old == music[new] then return true end
		
		return music[new]
	end
end)
