mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* Field of View and Blindness improvements [bounty + upstream push] * Update death.dm * almost done * Update fov_handler.dm * Face mouse when in combat mode, fix * Fixes the category for the fov admin verb. #63401 * Fixes objects with bad planes and FoV bugs #63412 * pain * there we go * face pref Co-authored-by: Azarak <azarak10@gmail.com>
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()
|