addHook("ThinkFrame", function()
	for player in players.iterate do
		if player.mo.skin ~= "jimmyharold" then
			continue
		end

		if player.powers [pw_super] then
			P_SpawnGhostMobj(player.mo)
		elseif All7Emeralds(emeralds)and gamemap == 27 and not player.powers [pw_super] then
			P_GivePlayerRings(player, 200)
			P_DoSuperTransformation(player, false)
		end
	end
end)

addHook("ThinkFrame", do
	for player in players.iterate
		//REGULAR SUPER
		if (player.mo and player.mo.skin == "jimmyharold")
			if not player.powers[pw_invulnerability]
			and not player.powers[pw_extralife]
			and not player.powers[pw_sneakers]
			and not (player.exiting)
				if player.powers[pw_super] and not gamemap == 27 then
					S_ChangeMusic("finbob",true,player)
				end
			end
		end
	end
end)

addHook("ThinkFrame", do
	for player in players.iterate
		//FINAL BOSS SUPER
		if (player.mo and player.mo.skin == "jimmyharold")
			if not player.powers[pw_invulnerability]
			and not player.powers[pw_extralife]
			and not player.powers[pw_sneakers]
			and not (player.exiting)
				if player.powers[pw_super] and gamemap == 27 then
					S_ChangeMusic("finbos",true,player)
				end
			end
		end
	end
end)