* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
22 lines
532 B
Plaintext
22 lines
532 B
Plaintext
/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
|
|
startWhen = 1
|
|
endWhen = 2
|
|
announceWhen = 0
|
|
|
|
/datum/round_event/camera_failure/tick()
|
|
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
|