// fire attack
addHook("ThinkFrame", do
	for player in players.iterate
		if player.mo and player.mo.skin == "kuysting"
			if not (player.mo.fire)
				player.mo.fire = 0
			end
			if not (player.powers[pw_carry] == CR_NIGHTSMODE) 
			and not (player.powers[pw_carry]) 
			and not (player.pflags & PF_STASIS) 
			and not (player.mo.tracer and player.mo.tracer.type == MT_TUBEWAYPOINT) 
		and not (player.mo.state == S_PLAY_SUPER_TRANS1)
	    and not (player.mo.state == S_PLAY_SUPER_TRANS2)
	    and not (player.mo.state == S_PLAY_SUPER_TRANS3)
	    and not (player.mo.state == S_PLAY_SUPER_TRANS4)
	    and not (player.mo.state == S_PLAY_SUPER_TRANS5)
	    and not (player.mo.state == S_PLAY_SUPER_TRANS6)
		and not (player.pflags & PF_FINISHED)
		and P_PlayerInPain(player) == false
		    and player.playerstate == PST_LIVE
			 and (player.cmd.buttons & BT_CUSTOM1)
			and player.mo.fire == 0
            player.mo.fire = 1
		       local flame = P_SpawnPlayerMissile(player.mo, MT_REDRING)
			end
			if not (player.cmd.buttons & BT_CUSTOM1)
				player.mo.fire = 0
			end
		end
	end
end)