Fixes parallax being visible in the "fog of war" (#19474)

* the most genius solution to a stupid problem

* help me

* perfect hatred
This commit is contained in:
Charlie
2022-10-23 15:48:09 +01:00
committed by GitHub
parent 21fc24a31c
commit 16e845a81b
5 changed files with 26 additions and 6 deletions
+4 -1
View File
@@ -11,6 +11,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
icon = 'icons/mob/mob.dmi'
icon_state = "ghost"
layer = GHOST_LAYER
plane = GAME_PLANE
stat = DEAD
density = FALSE
alpha = 127
@@ -90,6 +91,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
toggle_all_huds_on(body)
RegisterSignal(src, COMSIG_MOB_HUD_CREATED, .proc/set_ghost_darkness_level) //something something don't call this until we have a HUD
..()
plane = GAME_PLANE
/mob/dead/observer/Destroy()
toggle_all_huds_off()
@@ -146,7 +148,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
MA.icon = initial(icon)
MA.icon_state = initial(icon_state)
MA.underlays = COPY.underlays
MA.layer = GHOST_LAYER
MA.plane = GAME_PLANE
. = MA
/mob/dead/CanPass(atom/movable/mover, turf/target, height=0)
@@ -1075,7 +1075,7 @@ Pass a positive integer as an argument to override a bot's default speed.
MA.icon = path_image_icon
MA.icon_state = path_image_icon_state
MA.layer = ABOVE_OPEN_TURF_LAYER
MA.plane = 0
MA.plane = FLOOR_PLANE
MA.appearance_flags = RESET_COLOR|RESET_TRANSFORM
MA.color = path_image_color
MA.dir = direction