mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-20 14:04:43 +00:00
18 lines
674 B
Plaintext
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()
|