freeslot("sfx_kabuem")
sfxinfo[sfx_kabuem] = {
        singular = false,
        priority = 1,
        flags = SF_NOMULTIPLESOUND
}
sfxinfo[sfx_kabuem].caption = "Please deposit 5 coins"

		
addHook("ThinkFrame", do
	for player in players.iterate
		if player.mo and player.mo.skin == "universe"
			if not player.exiting
				if not (P_PlayerInPain(player) or (P_IsObjectOnGround(player.mo) or (player.panim == PA_ABILITY2) or (player.mo.state == S_PLAY_PAIN) and not(player.powers[pw_super]))) //states in which yeets cannot be done
					if (player.cmd.buttons & BT_CUSTOM3)
					 player.weapondelay = TICRATE*4
						if player.rings > -1
							P_InstaThrust(player.mo, player.mo.angle, 58*FRACUNIT)
							P_SpawnGhostMobj(player.mo)
					        P_SpawnGhostMobj(player.mo)
							P_RadiusAttack(player.mo, player.mo, 128*FRACUNIT, DMG_NUKE, true)
						else
							S_StartSound(player.mo, sfx_kabuem)
						end
					end
				end
			end
		end
	end
end)