mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
[REVIEW] Ports Modular Computers from Baystation
This commit is contained in:
@@ -109,4 +109,6 @@
|
||||
// Used by mobs in virtual reality to point back to the "real" mob the client belongs to.
|
||||
var/mob/living/carbon/human/vr_holder = null
|
||||
// Used by "real" mobs after they leave a VR session
|
||||
var/mob/living/carbon/human/vr_link = null
|
||||
var/mob/living/carbon/human/vr_link = null
|
||||
|
||||
var/obj/machinery/machine_visual //machine that is currently applying visual effects to this mob. Only used for camera monitors currently.
|
||||
|
||||
@@ -1316,6 +1316,11 @@
|
||||
if(found_welder)
|
||||
client.screen |= global_hud.darkMask
|
||||
|
||||
/mob/living/carbon/human/reset_view(atom/A)
|
||||
..()
|
||||
if(machine_visual && machine_visual != A)
|
||||
machine_visual.remove_visual(src)
|
||||
|
||||
/mob/living/carbon/human/handle_vision()
|
||||
if(stat == DEAD)
|
||||
sight |= SEE_TURFS|SEE_MOBS|SEE_OBJS|SEE_SELF
|
||||
@@ -1377,6 +1382,7 @@
|
||||
|
||||
if(machine)
|
||||
var/viewflags = machine.check_eye(src)
|
||||
machine.apply_visual(src)
|
||||
if(viewflags < 0)
|
||||
reset_view(null, 0)
|
||||
else if(viewflags && !looking_elsewhere)
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
handle_modifiers() //VOREStation Edit - Needs to be done even if in nullspace.
|
||||
if(!loc)
|
||||
return
|
||||
|
||||
if(machine && !CanMouseDrop(machine, src))
|
||||
machine = null
|
||||
|
||||
var/datum/gas_mixture/environment = loc.return_air()
|
||||
|
||||
//handle_modifiers() // Do this early since it might affect other things later. //VOREStation Edit
|
||||
|
||||
@@ -145,9 +145,6 @@
|
||||
/datum/robot_component/camera/update_power_state()
|
||||
..()
|
||||
if (camera)
|
||||
//check if camera component was deactivated
|
||||
if (!powered && camera.status != powered)
|
||||
camera.kick_viewers()
|
||||
camera.status = powered
|
||||
|
||||
/datum/robot_component/camera/install()
|
||||
@@ -157,12 +154,10 @@
|
||||
/datum/robot_component/camera/uninstall()
|
||||
if (camera)
|
||||
camera.status = 0
|
||||
camera.kick_viewers()
|
||||
|
||||
/datum/robot_component/camera/destroy()
|
||||
if (camera)
|
||||
camera.status = 0
|
||||
camera.kick_viewers()
|
||||
|
||||
// SELF DIAGNOSIS MODULE
|
||||
// Analyses cyborg's modules, providing damage readouts and basic information
|
||||
|
||||
@@ -158,7 +158,7 @@ proc/getsensorlevel(A)
|
||||
/proc/stars(n, pr)
|
||||
if (pr == null)
|
||||
pr = 25
|
||||
if (pr <= 0)
|
||||
if (pr < 0)
|
||||
return null
|
||||
else
|
||||
if (pr >= 100)
|
||||
|
||||
Reference in New Issue
Block a user