Files
Aurora.3/code/game/objects/effects/decals/warning_stripes.dm
T
Cody Brittain 9983fca311 Update SSOverlays (ported from Baystation) (#19051)
Our SSOverlays system is outdated, and is likely the cause of many of
the issues seen in #18895. It has also been linked to a massive server
performance decrease.

This brings an updated system from Baystation, hopefully with speed
increases.

Should be testmerged, ideally with #18895.

---------

Co-authored-by: Cody Brittain <cbrittain10@live.com>
2024-05-01 07:46:27 +00:00

12 lines
385 B
Plaintext

/obj/effect/decal/warning_stripes
icon = 'icons/effects/warning_stripes.dmi'
layer = DECAL_LAYER
/obj/effect/decal/warning_stripes/Initialize()
. = ..()
var/turf/T = get_turf(src)
var/image/I = image(icon, icon_state = icon_state, dir = dir)
I.color = color
T.AddOverlays(I, ATOM_ICON_CACHE_PROTECTED) // Register it as protected so we don't lose it on icon update.
qdel(src)