Files
Bubberstation/code/game/objects/effects/lighting.dm
SkyratBot f8b87b994b [MIRROR] Overlay Lighting Color/Intensity Pass (#26825)
Overlay Lighting Color/Intensity Pass

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2024-03-11 22:26:46 -04:00

44 lines
1.2 KiB
Plaintext

/**
* Basically, a fake object that emits light.
*
* Why is this used sometimes instead of giving atoms light values directly?
* Because using these, you can have multiple light sources in a single object.
*/
/obj/effect/dummy/lighting_obj
name = "lighting"
desc = "Tell a coder if you're seeing this."
icon_state = "nothing"
light_system = OVERLAY_LIGHT
light_range = MINIMUM_USEFUL_LIGHT_RANGE
light_color = COLOR_WHITE
blocks_emissive = EMISSIVE_BLOCK_NONE
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
/obj/effect/dummy/lighting_obj/Initialize(mapload, range, power, color, duration)
. = ..()
if(!isnull(range))
set_light_range(range)
if(!isnull(power))
set_light_power(power)
if(!isnull(color))
set_light_color(color)
if(duration)
QDEL_IN(src, duration)
/obj/effect/dummy/lighting_obj/moblight
name = "mob lighting"
/obj/effect/dummy/lighting_obj/moblight/Initialize(mapload, range, power, color, duration)
. = ..()
if(!ismob(loc))
return INITIALIZE_HINT_QDEL
/obj/effect/dummy/lighting_obj/moblight/fire
name = "mob fire lighting"
light_color = LIGHT_COLOR_FIRE
light_range = LIGHT_RANGE_FIRE
light_power = 2
/obj/effect/dummy/lighting_obj/moblight/species
name = "species lighting"