mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
Merge pull request #3305 from VOREStation/aro-ventassist
Ventcrawling assistance
This commit is contained in:
@@ -9,6 +9,7 @@ var/list/global_huds = list(
|
|||||||
global_hud.whitense,
|
global_hud.whitense,
|
||||||
global_hud.vimpaired,
|
global_hud.vimpaired,
|
||||||
global_hud.darkMask,
|
global_hud.darkMask,
|
||||||
|
global_hud.centermarker,
|
||||||
global_hud.nvg,
|
global_hud.nvg,
|
||||||
global_hud.thermal,
|
global_hud.thermal,
|
||||||
global_hud.meson,
|
global_hud.meson,
|
||||||
@@ -28,6 +29,7 @@ var/list/global_huds = list(
|
|||||||
var/obj/screen/whitense
|
var/obj/screen/whitense
|
||||||
var/list/vimpaired
|
var/list/vimpaired
|
||||||
var/list/darkMask
|
var/list/darkMask
|
||||||
|
var/obj/screen/centermarker
|
||||||
var/obj/screen/darksight
|
var/obj/screen/darksight
|
||||||
var/obj/screen/nvg
|
var/obj/screen/nvg
|
||||||
var/obj/screen/thermal
|
var/obj/screen/thermal
|
||||||
@@ -74,6 +76,12 @@ var/list/global_huds = list(
|
|||||||
darksight.plane = PLANE_LIGHTING
|
darksight.plane = PLANE_LIGHTING
|
||||||
darksight.plane = LIGHTING_LAYER + 0.1
|
darksight.plane = LIGHTING_LAYER + 0.1
|
||||||
|
|
||||||
|
//Marks the center of the screen, for things like ventcrawl
|
||||||
|
centermarker = new /obj/screen()
|
||||||
|
centermarker.icon = 'icons/mob/screen1.dmi'
|
||||||
|
centermarker.icon_state = "centermarker"
|
||||||
|
centermarker.screen_loc = "CENTER,CENTER"
|
||||||
|
|
||||||
nvg = setup_overlay("nvg_hud")
|
nvg = setup_overlay("nvg_hud")
|
||||||
thermal = setup_overlay("thermal_hud")
|
thermal = setup_overlay("thermal_hud")
|
||||||
meson = setup_overlay("meson_hud")
|
meson = setup_overlay("meson_hud")
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ var/list/ventcrawl_machinery = list(
|
|||||||
if(is_ventcrawling && istype(loc, /obj/machinery/atmospherics)) //attach us back into the pipes
|
if(is_ventcrawling && istype(loc, /obj/machinery/atmospherics)) //attach us back into the pipes
|
||||||
remove_ventcrawl()
|
remove_ventcrawl()
|
||||||
add_ventcrawl(loc)
|
add_ventcrawl(loc)
|
||||||
|
client.screen += global_hud.centermarker
|
||||||
|
|
||||||
/mob/living/simple_animal/slime/can_ventcrawl()
|
/mob/living/simple_animal/slime/can_ventcrawl()
|
||||||
if(victim)
|
if(victim)
|
||||||
@@ -184,6 +185,8 @@ var/list/ventcrawl_machinery = list(
|
|||||||
A.pipe_image = image(A, A.loc, layer = 20, dir = A.dir)
|
A.pipe_image = image(A, A.loc, layer = 20, dir = A.dir)
|
||||||
pipes_shown += A.pipe_image
|
pipes_shown += A.pipe_image
|
||||||
client.images += A.pipe_image
|
client.images += A.pipe_image
|
||||||
|
if(client)
|
||||||
|
client.screen += global_hud.centermarker
|
||||||
|
|
||||||
/mob/living/proc/remove_ventcrawl()
|
/mob/living/proc/remove_ventcrawl()
|
||||||
is_ventcrawling = 0
|
is_ventcrawling = 0
|
||||||
@@ -191,6 +194,7 @@ var/list/ventcrawl_machinery = list(
|
|||||||
if(client)
|
if(client)
|
||||||
for(var/image/current_image in pipes_shown)
|
for(var/image/current_image in pipes_shown)
|
||||||
client.images -= current_image
|
client.images -= current_image
|
||||||
|
client.screen -= global_hud.centermarker
|
||||||
client.eye = src
|
client.eye = src
|
||||||
|
|
||||||
pipes_shown.len = 0
|
pipes_shown.len = 0
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 163 KiB |
Reference in New Issue
Block a user