/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/controllers/subsystem/mob.dm
45 строк
910 B
west3436
Virtual zLevels (vLevels) (#38861)
07 фев 2026, 05:04
Не верифицирован
07 фев 2026, 05:04
2f216ef
Код
Авторство
О чём код?
var/datum/subsystem/mob/SSmob /datum/subsystem/mob name = "Mob" wait = 2 SECONDS flags = SS_NO_INIT | SS_KEEP_TIMING priority = SS_PRIORITY_MOB display_order = SS_DISPLAY_MOB var/list/currentrun var/paused = 0 // Count of mobs skipped due to inactive virtual z-levels /datum/subsystem/mob/New() NEW_SS_GLOBAL(SSmob) /datum/subsystem/mob/stat_entry() ..("P:[mob_list.len] | Paused:[paused]") /datum/subsystem/mob/fire(resumed = FALSE) if (!resumed) currentrun = mob_list.Copy() paused = 0 while (currentrun.len) var/mob/M = currentrun[currentrun.len] currentrun.len-- if (!M || M.gcDestroyed || M.timestopped) continue // Skip processing non-player mobs on virtual z-levels without players if(istype(M,/mob/living)) var/mob/living/L = M if (L.paused && !L.client) paused++ continue M.Life() if (MC_TICK_CHECK) return