Port current /tg/ lighting system

This commit is contained in:
Chompstation Bot
2021-06-18 04:23:09 +00:00
parent 8aa043f4f4
commit 55e3dc7904
369 changed files with 16264 additions and 2783 deletions

View File

@@ -7,6 +7,7 @@
density = 1
w_class = ITEMSIZE_HUGE
layer = UNDER_JUNK_LAYER
blocks_emissive = EMISSIVE_BLOCK_GENERIC
var/opened = 0
var/sealed = 0

View File

@@ -14,9 +14,9 @@
update_icon()
/obj/structure/closet/secure_closet/guncabinet/update_icon()
overlays.Cut()
cut_overlays()
if(opened)
overlays += icon(icon,"door_open")
add_overlay("door_open")
else
var/lazors = 0
var/shottas = 0
@@ -35,17 +35,17 @@
shottas--
gun.icon_state = "projectile"
gun.pixel_x = i*4
overlays += gun
add_overlay(gun)
overlays += icon(src.icon, "door")
add_overlay("door")
if(sealed)
overlays += icon(src.icon,"sealed")
add_overlay("sealed")
if(broken)
overlays += icon(src.icon,"broken")
add_overlay("broken")
else if (locked)
overlays += icon(src.icon,"locked")
add_overlay("locked")
else
overlays += icon(src.icon,"open")
add_overlay("open")

View File

@@ -6,6 +6,7 @@
density = 1
anchored = 1
health = 0 //destroying the statue kills the mob within
blocks_emissive = EMISSIVE_BLOCK_UNIQUE
var/intialTox = 0 //these are here to keep the mob from taking damage from things that logically wouldn't affect a rock
var/intialFire = 0 //it's a little sloppy I know but it was this or the GODMODE flag. Lesser of two evils.
var/intialBrute = 0
@@ -43,7 +44,7 @@
qdel(src)
return
START_PROCESSING(SSobj, src)
START_PROCESSING(SSobj, src)
..()
/obj/structure/closet/statue/process()

View File

@@ -44,13 +44,13 @@
/obj/structure/vehiclecage/update_icon()
..()
overlays.Cut()
cut_overlays()
underlays.Cut()
var/image/framepaint = new(icon = 'icons/obj/storage.dmi', icon_state = "[initial(icon_state)]_a", layer = MOB_LAYER + 1.1)
framepaint.plane = MOB_PLANE
framepaint.color = paint_color
overlays += framepaint
add_overlay(framepaint)
for(var/obj/vehicle/V in src.contents)
var/image/showcase = new(V)