Files
Bubberstation/code/modules/admin/verbs/fov.dm

18 lines
674 B
Plaintext

/client/proc/cmd_admin_toggle_fov()
set name = "Enable/Disable Field of View"
set category = "Debug"
if(!check_rights(R_ADMIN) || !check_rights(R_DEBUG))
return
var/on_off = CONFIG_GET(flag/native_fov)
message_admins("[key_name_admin(usr)] has [on_off ? "disabled" : "enabled"] the Native Field of View configuration..")
log_admin("[key_name(usr)] 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()