mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
516 Renderer update (#20579)
Updated the renderers to work with BYOND 516. Some update of ZAS to hopefully be more efficient, and cold/hot air effects. Gas effects are now less prominent. Ported from Bay
This commit is contained in:
@@ -59,17 +59,18 @@
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
var/mob/M = entering
|
||||
if(!M.renderers)
|
||||
if(!istype(entering, /mob))
|
||||
return
|
||||
var/atom/movable/renderer/roofs/roof_plane = M.renderers["[ROOF_PLANE]"]
|
||||
|
||||
var/mob/M = entering
|
||||
var/atom/movable/renderer/roofs/roof_plane = M.GetRenderer(/atom/movable/renderer/roofs)
|
||||
if(roof_plane)
|
||||
roof_plane.alpha = 76
|
||||
|
||||
/datum/large_structure/tent/mob_moved(mob/mover, turf/exit_point)
|
||||
. = ..()
|
||||
if(!.)
|
||||
var/atom/movable/renderer/roofs/roof_plane = mover.renderers["[ROOF_PLANE]"]
|
||||
var/atom/movable/renderer/roofs/roof_plane = mover.GetRenderer(/atom/movable/renderer/roofs)
|
||||
if(roof_plane)
|
||||
roof_plane.alpha = 255
|
||||
|
||||
@@ -262,7 +263,7 @@
|
||||
|
||||
/obj/structure/component/tent_canvas/Destroy() //When we're destroyed, make sure we return the roof plane to anyone inside
|
||||
for(var/mob/M in loc)
|
||||
var/atom/movable/renderer/roofs/roof_plane = M.renderers["[ROOF_PLANE]"]
|
||||
var/atom/movable/renderer/roofs/roof_plane = M.GetRenderer(/atom/movable/renderer/roofs)
|
||||
if(roof_plane)
|
||||
roof_plane.alpha = 255
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user