From e8548b392bf69c0914f4f3c3b1189b144b599ea2 Mon Sep 17 00:00:00 2001 From: astralloop <36741211+astralloop@users.noreply.github.com> Date: Thu, 8 Mar 2018 09:54:39 -0500 Subject: [PATCH 1/2] To go even further byond... the above lighting layer! (#36106) * This, is my normal form. * THIS, IS A SUPER SAIYAN ASCENDED. I CALL IT A SUPER SAIYAN 2 * Update lighting.dm * Spelling correction (#3) * Update layers.dm * Update chunk.dm * TO GO BYOND.... * Update lighting.dm --- code/__DEFINES/layers.dm | 3 +++ code/modules/mob/living/silicon/ai/freelook/chunk.dm | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/__DEFINES/layers.dm b/code/__DEFINES/layers.dm index 614383931c..9350116635 100644 --- a/code/__DEFINES/layers.dm +++ b/code/__DEFINES/layers.dm @@ -81,6 +81,9 @@ #define ABOVE_LIGHTING_PLANE 16 #define ABOVE_LIGHTING_LAYER 16 +#define BYOND_LIGHTING_PLANE 17 +#define BYOND_LIGHTING_LAYER 17 + //HUD layer defines #define FULLSCREEN_PLANE 18 diff --git a/code/modules/mob/living/silicon/ai/freelook/chunk.dm b/code/modules/mob/living/silicon/ai/freelook/chunk.dm index bf3139cc4f..829e467ebc 100644 --- a/code/modules/mob/living/silicon/ai/freelook/chunk.dm +++ b/code/modules/mob/living/silicon/ai/freelook/chunk.dm @@ -106,10 +106,10 @@ var/turf/t = turf if(obscuredTurfs[t]) if(!t.obscured) - t.obscured = image('icons/effects/cameravis.dmi', t, null, LIGHTING_LAYER+1) + t.obscured = image('icons/effects/cameravis.dmi', t, null, BYOND_LIGHTING_LAYER+0.1) t.obscured.pixel_x = -t.pixel_x t.obscured.pixel_y = -t.pixel_y - t.obscured.plane = LIGHTING_PLANE+1 + t.obscured.plane = BYOND_LIGHTING_PLANE+0.1 obscured += t.obscured for(var/eye in seenby) var/mob/camera/aiEye/m = eye @@ -170,4 +170,4 @@ obscured += t.obscured #undef UPDATE_BUFFER -#undef CHUNK_SIZE \ No newline at end of file +#undef CHUNK_SIZE