mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Re-enables cyborg cameras through camera consoles and AI eye vision. (#52767)
* Better camera logic * AI eye cameras can see through borgo cams * Switch that to being able to see through any silicon's camera * Switch that to being able to see through any silicon's camera * Disable borgo camera at high damage * Rohesie-proof some code
This commit is contained in:
@@ -112,6 +112,10 @@
|
||||
if(c.can_use())
|
||||
cameras += c
|
||||
|
||||
for(var/mob/living/silicon/sillycone in urange(CHUNK_SIZE, locate(x + (CHUNK_SIZE / 2), y + (CHUNK_SIZE / 2), z)))
|
||||
if(sillycone.builtInCamera?.can_use())
|
||||
cameras += sillycone.builtInCamera
|
||||
|
||||
for(var/turf/t in block(locate(max(x, 1), max(y, 1), z), locate(min(x + CHUNK_SIZE - 1, world.maxx), min(y + CHUNK_SIZE - 1, world.maxy), z)))
|
||||
turfs[t] = t
|
||||
|
||||
|
||||
@@ -149,6 +149,11 @@
|
||||
|
||||
playsound(src, 'sound/machines/warning-buzzer.ogg', 75, TRUE, TRUE)
|
||||
audible_message("<span class='warning'>[src] sounds an alarm! \"CRITICAL ERROR: ALL modules OFFLINE.\"</span>")
|
||||
|
||||
if(builtInCamera)
|
||||
builtInCamera.status = FALSE
|
||||
to_chat(src, "<span class='userdanger'>CRITICAL ERROR: Built in security camera OFFLINE.</span>")
|
||||
|
||||
to_chat(src, "<span class='userdanger'>CRITICAL ERROR: ALL modules OFFLINE.</span>")
|
||||
|
||||
if(2)
|
||||
@@ -175,7 +180,6 @@
|
||||
|
||||
return TRUE
|
||||
|
||||
|
||||
/**
|
||||
* Breaks all of a cyborg's slots.
|
||||
*/
|
||||
@@ -200,6 +204,9 @@
|
||||
|
||||
inv1.icon_state = initial(inv1.icon_state)
|
||||
disabled_modules &= ~BORG_MODULE_ALL_DISABLED
|
||||
if(builtInCamera)
|
||||
builtInCamera.status = TRUE
|
||||
to_chat(src, "<span class='notice'>You hear your built in security camera focus adjust as it comes back online!</span>")
|
||||
if(2)
|
||||
if(!(disabled_modules & BORG_MODULE_TWO_DISABLED))
|
||||
return FALSE
|
||||
@@ -388,3 +395,4 @@
|
||||
|
||||
/mob/living/silicon/robot/swap_hand()
|
||||
cycle_modules()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user