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 (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_CUSTOM1)
					 player.weapondelay = TICRATE*4
						if player.rings > -1
							player.mo.state = S_PLAY_BLOCKCONTROL
							player.powers[pw_invulnerability] = 11
							P_SwitchShield(player, SH_PINK)
							P_SwitchShield(player, SH_NONE)
						else
							S_StartSound(player.mo, sfx_kabuem)
						end
					end
				end
			end
		end
	end
end)