mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 08:27:08 +00:00
a
This commit is contained in:
@@ -151,6 +151,7 @@ GLOBAL_LIST_INIT(multiz_hole_baseturfs, typecacheof(list(
|
|||||||
lc_bottomleft = old_lc_bottomleft
|
lc_bottomleft = old_lc_bottomleft
|
||||||
if (old_opacity != opacity || dynamic_lighting != old_dynamic_lighting)
|
if (old_opacity != opacity || dynamic_lighting != old_dynamic_lighting)
|
||||||
reconsider_lights()
|
reconsider_lights()
|
||||||
|
updateVisibility(src)
|
||||||
|
|
||||||
if (dynamic_lighting != old_dynamic_lighting)
|
if (dynamic_lighting != old_dynamic_lighting)
|
||||||
if (IS_DYNAMIC_LIGHTING(src))
|
if (IS_DYNAMIC_LIGHTING(src))
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
levelupdate()
|
levelupdate()
|
||||||
PROFILE_TICK
|
PROFILE_TICK
|
||||||
// HOOK FOR MOB/FREELOOK SYSTEM
|
// HOOK FOR MOB/FREELOOK SYSTEM
|
||||||
updateVisibility(src)
|
|
||||||
#warn above
|
|
||||||
PROFILE_TICK
|
PROFILE_TICK
|
||||||
|
|
||||||
// This is not great.
|
// This is not great.
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ GLOBAL_LIST(topic_status_cache)
|
|||||||
//This happens after the Master subsystem new(s) (it's a global datum)
|
//This happens after the Master subsystem new(s) (it's a global datum)
|
||||||
//So subsystems globals exist, but are not initialised
|
//So subsystems globals exist, but are not initialised
|
||||||
/world/New()
|
/world/New()
|
||||||
|
LINE_PROFILE_START
|
||||||
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
|
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
|
||||||
if (debug_server)
|
if (debug_server)
|
||||||
call(debug_server, "auxtools_init")()
|
call(debug_server, "auxtools_init")()
|
||||||
@@ -422,7 +423,7 @@ GLOBAL_REAL_VAR(world_log_redirected) = FALSE
|
|||||||
. += "[GLOB.using_map.station_short], "
|
. += "[GLOB.using_map.station_short], "
|
||||||
|
|
||||||
. += "[get_security_level()] alert, "
|
. += "[get_security_level()] alert, "
|
||||||
|
|
||||||
. += "[GLOB.clients.len] players"
|
. += "[GLOB.clients.len] players"
|
||||||
|
|
||||||
status = .
|
status = .
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
item_state_slots = list(slot_r_hand_str = "headset", slot_l_hand_str = "headset")
|
item_state_slots = list(slot_r_hand_str = "headset", slot_l_hand_str = "headset")
|
||||||
body_parts_covered = 0
|
body_parts_covered = 0
|
||||||
|
|
||||||
/obj/item/clothing/glasses/hud/security/Iniialize(mapload)
|
/obj/item/clothing/glasses/hud/security/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED), list(slot_glasses))
|
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED), list(slot_glasses))
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
enables_planes = list(VIS_AUGMENTED)
|
enables_planes = list(VIS_AUGMENTED)
|
||||||
plane_slots = list(slot_glasses)
|
plane_slots = list(slot_glasses)
|
||||||
|
|
||||||
/obj/item/clothing/glasses/omnihud/Iniialize(mapload)
|
/obj/item/clothing/glasses/omnihud/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB), list(slot_glasses))
|
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB), list(slot_glasses))
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
tgarscreen_path = /datum/tgui_module/crew_monitor/glasses
|
tgarscreen_path = /datum/tgui_module/crew_monitor/glasses
|
||||||
enables_planes = list(VIS_AUGMENTED)
|
enables_planes = list(VIS_AUGMENTED)
|
||||||
|
|
||||||
/obj/item/clothing/glasses/omnihud/med/Iniialize(mapload)
|
/obj/item/clothing/glasses/omnihud/med/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB, DATA_HUD_MEDICAL), list(slot_glasses))
|
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB, DATA_HUD_MEDICAL), list(slot_glasses))
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
enables_planes = list(VIS_AUGMENTED)
|
enables_planes = list(VIS_AUGMENTED)
|
||||||
|
|
||||||
|
|
||||||
/obj/item/clothing/glasses/omnihud/sec/Iniialize(mapload)
|
/obj/item/clothing/glasses/omnihud/sec/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses))
|
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses))
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
flash_protection = FLASH_PROTECTION_MAJOR
|
flash_protection = FLASH_PROTECTION_MAJOR
|
||||||
enables_planes = list(VIS_AUGMENTED)
|
enables_planes = list(VIS_AUGMENTED)
|
||||||
|
|
||||||
/obj/item/clothing/glasses/omnihud/all/Iniialize(mapload)
|
/obj/item/clothing/glasses/omnihud/all/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses))
|
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses))
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,6 @@
|
|||||||
smooshTetherHolomaps(smoosh_list)
|
smooshTetherHolomaps(smoosh_list)
|
||||||
|
|
||||||
holomaps_initialized = TRUE
|
holomaps_initialized = TRUE
|
||||||
admin_notice("<span class='notice'>Holomaps initialized in [round(0.1*(world.timeofday-start_time),0.1)] seconds.</span>", R_DEBUG)
|
|
||||||
|
|
||||||
// TODO - Check - They had a delayed init perhaps?
|
// TODO - Check - They had a delayed init perhaps?
|
||||||
for (var/obj/machinery/station_map/S in station_holomaps)
|
for (var/obj/machinery/station_map/S in station_holomaps)
|
||||||
|
|||||||
@@ -12,10 +12,6 @@
|
|||||||
/turf/drain_power()
|
/turf/drain_power()
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
/turf/simulated/Destroy()
|
|
||||||
updateVisibility(src)
|
|
||||||
return ..()
|
|
||||||
|
|
||||||
// STRUCTURES
|
// STRUCTURES
|
||||||
|
|
||||||
/obj/structure/Destroy()
|
/obj/structure/Destroy()
|
||||||
@@ -34,7 +30,8 @@
|
|||||||
|
|
||||||
/obj/effect/Initialize(mapload)
|
/obj/effect/Initialize(mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
updateVisibility(src)
|
if(!mapload)
|
||||||
|
updateVisibility(src)
|
||||||
|
|
||||||
// DOORS
|
// DOORS
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
var/list/chunks = list()
|
var/list/chunks = list()
|
||||||
var/ready = 0
|
var/ready = 0
|
||||||
var/chunk_type = /datum/chunk
|
var/chunk_type = /datum/chunk
|
||||||
|
/// are we generated at all?
|
||||||
|
var/any_generated = FALSE
|
||||||
|
|
||||||
/datum/visualnet/New()
|
/datum/visualnet/New()
|
||||||
..()
|
..()
|
||||||
@@ -30,6 +32,7 @@
|
|||||||
y &= ~0xf
|
y &= ~0xf
|
||||||
var/key = "[x],[y],[z]"
|
var/key = "[x],[y],[z]"
|
||||||
if(!chunks[key])
|
if(!chunks[key])
|
||||||
|
any_generated = TRUE
|
||||||
chunks[key] = new chunk_type(null, x, y, z)
|
chunks[key] = new chunk_type(null, x, y, z)
|
||||||
|
|
||||||
return chunks[key]
|
return chunks[key]
|
||||||
@@ -64,7 +67,7 @@
|
|||||||
|
|
||||||
/datum/visualnet/proc/updateVisibility(atom/A, var/opacity_check = 1)
|
/datum/visualnet/proc/updateVisibility(atom/A, var/opacity_check = 1)
|
||||||
|
|
||||||
if(!SSticker || (opacity_check && !A.opacity))
|
if(!any_generated || (opacity_check && !A.opacity))
|
||||||
return
|
return
|
||||||
majorChunkChange(A, 2)
|
majorChunkChange(A, 2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user