
//This is what makes the super theme only for the characters
addHook("ThinkFrame", do
	for player in players.iterate
		if (player.mo and player.mo.valid and player.mo.skin == "knuckles")
			if not player.powers[pw_extralife]
			and not (player.exiting)
			if player.powers[pw_super] then
				S_ChangeMusic("unknow",true,player)
			end	
		else
			P_RestoreMusic(player)
			end
		end
	end
end)

//This is what makes knuckles talk when he gets hurt.
freeslot("sfx_ohno")


sfxinfo[sfx_ohno].caption = "oh no!"

local function playerow(target, inflictor, source, damage)
	if target.skin == "knuckles"
		S_StartSound(target, sfx_ohno)
	end
end

addHook("MobjDamage", playerow, MT_PLAYER)

