chaos edition but for coop, code provided by kaze emanuar