mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Small fixes for camera lights
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
var/invuln = null
|
||||
var/obj/item/device/camera_bug/bug = null
|
||||
var/obj/item/weapon/camera_assembly/assembly = null
|
||||
var/light_on = 0
|
||||
|
||||
//OTHER
|
||||
|
||||
@@ -339,4 +338,4 @@
|
||||
return 0
|
||||
return 1
|
||||
busy = 0
|
||||
return 0
|
||||
return 0
|
||||
|
||||
@@ -427,6 +427,8 @@ var/list/ai_list = list()
|
||||
updatehealth()
|
||||
|
||||
/mob/living/silicon/ai/reset_view(atom/A)
|
||||
if (camera_light_on)
|
||||
light_cameras()
|
||||
if(istype(A,/obj/machinery/camera))
|
||||
current = A
|
||||
..()
|
||||
@@ -638,6 +640,11 @@ var/list/ai_list = list()
|
||||
|
||||
if (!camera_light_on)
|
||||
src << "Camera lights deactivated."
|
||||
|
||||
for (var/obj/machinery/camera/C in lit_cameras)
|
||||
C.SetLuminosity(0)
|
||||
lit_cameras = list()
|
||||
|
||||
return
|
||||
|
||||
light_cameras()
|
||||
|
||||
Reference in New Issue
Block a user