mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
* Openturf icon fixes and improvements * more things * Remove some pointless/bad layering/planing * yeah well I didn't need this anyways * Refactor Z mimickry to be at /turf * more refactoring * Cleanup, use turf/flags instead of z_mimic_flags * Fix turf/Entered() * misc optimizations * fixes * Major icon smoothing optimizations * Speed up boot some more * Fix AO * Remove some redundant code * Tie Z-lights to Z-mimic instead of openturfs * Fix an opacity issue with no_mutate turfs * Fix some issues with Z-mimic AO not properly clearing * Fix some OT->OT changetuf bugs * Add helpers for changing Z-mimic operational state on turfs * Fix some merge issues, change how F_CUT smoothhint works a bit. * indentation * SSopenturf -> SSzcopy
24 lines
553 B
Plaintext
24 lines
553 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.")
|
|
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()
|
|
|
|
usr << "AO rebuild complete."
|