/datum/round_event_control/camera_failure
	name = "Camera Failure"
	typepath = /datum/round_event/camera_failure
	weight = 100
	max_occurrences = 20
	alertadmins = 0

/datum/round_event/camera_failure
	fakeable = FALSE

/datum/round_event/camera_failure/start()
	var/iterations = 1
	var/obj/machinery/camera/C = pick(GLOB.cameranet.cameras)
	while(prob(round(100/iterations)))
		while(!("SS13" in C.network))
			C = pick(GLOB.cameranet.cameras)
		if(C.status)
			C.toggle_cam(null, 0)
		iterations *= 2.5

/datum/round_event_control/camera_failure
	name = "Camera Failure"
	typepath = /datum/round_event/camera_failure
	weight = 100
	max_occurrences = 20
	alertadmins = 0

/datum/round_event/camera_failure
	fakeable = FALSE

/datum/round_event/camera_failure/start()
	var/iterations = 1
	var/list/cameras = GLOB.cameranet.cameras.Copy()
	while(prob(round(100/iterations)))
		var/obj/machinery/camera/C = pick_n_take(cameras)
		if (!C)
			break
		if (!("SS13" in C.network))
			continue
		if(C.status)
			C.toggle_cam(null, 0)
		iterations *= 2.5
