freeslot(
"sfx_woaga2")

sfxinfo[sfx_woaga2].caption = "Secret Found!"

local function LooseTossUp(mo)
	local loosejump = P_SpawnMobj((P_RandomRange(1888, 1952)*FRACUNIT),(P_RandomRange(-480,-554)*FRACUNIT),-672*FRACUNIT,MT_FLINGRING)
		loosejump.momz = (P_RandomRange(17,40)*FRACUNIT)
		loosejump.angle = ANG1*(P_RandomRange(0,360))
		loosejump.fuse = 5*TICRATE
		P_InstaThrust(loosejump,loosejump.angle,(P_RandomRange(1,70)*FRACUNIT))
	local loosejump = P_SpawnMobj((P_RandomRange(1888, 1952)*FRACUNIT),(P_RandomRange(-480,-554)*FRACUNIT),200*FRACUNIT,MT_FLINGRING)
		loosejump.momz = (P_RandomRange(-1,-25)*FRACUNIT)
		loosejump.angle = ANG1*(P_RandomRange(0,360))
		loosejump.fuse = 5*TICRATE
		P_InstaThrust(loosejump,loosejump.angle,(P_RandomRange(1,70)*FRACUNIT))

end

addHook("LinedefExecute", LooseTossUp, "RINGUP")

addHook("IntermissionThinker", function()
	if not mapheaderinfo[gamemap].casinover return end
	S_ChangeMusic("ACTALW", false, consoleplayer)
end)

addHook("MapLoad", function()
	if not mapheaderinfo[gamemap].casinover return end
	if gametype ~= GT_COOP
		for players in players.iterate
			COM_BufInsertText(player, "tunes MP9BJM")
		end
	else
		for players in players.iterate
			COM_BufInsertText(player, "tunes MP9VBJ")
		end
	end
end)