mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 20:21:09 +01:00
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request Z-Mimic is nice. Currently just SSao atm, why SSao? Filter-based ao doesn't really work with Z-Mimic O7 Lighting cause I got tired of trying to make ours work with this. But hey, we got directional lights now so that's cool. 🆑 @Zandario & @Lohikar add: SSzmimic add: O7 Lighting add: SSao del: SSopenspace tweak: Lights now can shine in angles between 0 and 180 /🆑 Co-authored-by: Lohikar <lohikar@protonmail.com>
35 lines
709 B
Plaintext
35 lines
709 B
Plaintext
/area
|
|
luminosity = TRUE
|
|
var/dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
|
|
|
|
/area/Initialize()
|
|
. = ..()
|
|
|
|
if (dynamic_lighting)
|
|
luminosity = FALSE
|
|
|
|
/area/proc/set_dynamic_lighting(new_dynamic_lighting = DYNAMIC_LIGHTING_ENABLED)
|
|
if (new_dynamic_lighting == dynamic_lighting)
|
|
return FALSE
|
|
|
|
dynamic_lighting = new_dynamic_lighting
|
|
|
|
if (new_dynamic_lighting)
|
|
for (var/turf/T in src)
|
|
if (T.dynamic_lighting)
|
|
T.lighting_build_overlay()
|
|
|
|
else
|
|
for (var/turf/T in src)
|
|
if (T.lighting_overlay)
|
|
T.lighting_clear_overlay()
|
|
|
|
return TRUE
|
|
|
|
/area/vv_edit_var(var_name, var_value)
|
|
switch(var_name)
|
|
if(NAMEOF(src, dynamic_lighting))
|
|
set_dynamic_lighting(var_value)
|
|
return TRUE
|
|
return ..()
|