mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 13:35:10 +00:00
12 lines
626 B
Plaintext
12 lines
626 B
Plaintext
ADMIN_VERB(toggle_fov, R_ADMIN|R_DEBUG, "Enable/Disable Field Of View", "Toggle FOV globally.", ADMIN_CATEGORY_DEBUG)
|
|
var/on_off = CONFIG_GET(flag/native_fov)
|
|
|
|
message_admins("[key_name_admin(user)] has [on_off ? "disabled" : "enabled"] the Native Field of View configuration..")
|
|
log_admin("[key_name(user)] has [on_off ? "disabled" : "enabled"] the Native Field of View configuration.")
|
|
CONFIG_SET(flag/native_fov, !on_off)
|
|
|
|
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggled Field of View", "[on_off ? "Enabled" : "Disabled"]"))
|
|
|
|
for(var/mob/living/mob in GLOB.player_list)
|
|
mob.update_fov()
|