mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-10 15:36:47 +01:00
Nearsighted Camera Fix (#17124)
* Nearsighted Camera Fix * fluffy changes
This commit is contained in:
@@ -86,6 +86,10 @@
|
||||
return 0
|
||||
return -1
|
||||
|
||||
/// Primarily used on machinery, when this returns TRUE, equipment that helps with vision, such as prescription glasses for nearsighted characters, have an effect despite the client eye not being on the mob
|
||||
/atom/proc/grants_equipment_vision(var/mob/user)
|
||||
return
|
||||
|
||||
/atom/proc/additional_sight_flags()
|
||||
return 0
|
||||
|
||||
|
||||
@@ -285,6 +285,9 @@
|
||||
if(isXRay()) return SEE_TURFS|SEE_MOBS|SEE_OBJS
|
||||
return 0
|
||||
|
||||
/obj/machinery/camera/grants_equipment_vision(mob/user)
|
||||
return can_use()
|
||||
|
||||
//This might be redundant, because of check_eye()
|
||||
/obj/machinery/camera/proc/kick_viewers()
|
||||
for(var/mob/O in player_list)
|
||||
|
||||
@@ -35,6 +35,16 @@
|
||||
reset_current()
|
||||
return viewflag
|
||||
|
||||
/obj/machinery/computer/security/grants_equipment_vision(var/mob/user as mob)
|
||||
if(user.stat || user.blinded || inoperable())
|
||||
return FALSE
|
||||
if(!current_camera)
|
||||
return FALSE
|
||||
var/viewflag = current_camera.check_eye(user)
|
||||
if (viewflag < 0) //camera doesn't work
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/computer/security/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null, force_open = 1)
|
||||
if(..())
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user