mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly; All << is converted into to_chat().
24 lines
567 B
Plaintext
24 lines
567 B
Plaintext
/client/proc/global_ao_regenerate()
|
|
set name = "Regenerate AO (Global)"
|
|
set desc = "Regenerates AO caches across the map."
|
|
set category = "Debug"
|
|
|
|
if (!check_rights(R_DEBUG)) return
|
|
|
|
log_and_message_admins("has triggered a global ambient occlusion rebuild.")
|
|
to_chat(usr, "Beginning global AO rebuild.")
|
|
|
|
SSocclusion.disable()
|
|
|
|
for (var/turf/T in world) // Yes, in world.
|
|
T.ao_neighbors = null // To force a recalc.
|
|
T.ao_neighbors_mimic = null
|
|
if (T.permit_ao)
|
|
T.queue_ao()
|
|
|
|
CHECK_TICK
|
|
|
|
SSocclusion.enable()
|
|
|
|
to_chat(usr, "AO rebuild complete.")
|