addHook("PlayerThink", function(player)
	if player.mo and player.playerstate == PST_LIVE and player.mo.skin == "knuckles" then
		
		if (player.custom2tic == 1) and (player.rings >= 25 or player.powers[pw_super]) and player.control then
			P_NukeEnemies(player.mo, player.mo, 2500*FRACUNIT)
			S_StartSound(player.mo, sfx_bkpoof)
			P_FlashPal(player, 4, 8)
			P_StartQuake(25*FRACUNIT, 2*TICRATE)
			if not player.powers[pw_super] then
				player.rings = $ - 25
			else
				player.rings = $ - 10
			end
			player.mo.state = S_PLAY_SUPER_TRANS1
		end
		
	end
end)