[MIRROR] Field of View and Blindness improvements [bounty + upstream push] [MDB IGNORE] (#10060)

* 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>
This commit is contained in:
SkyratBot
2021-12-22 14:56:01 +00:00
committed by GitHub
co-authored by Azarak
parent 5604c5d160
commit c0706f4a41
45 changed files with 600 additions and 14 deletions
+1
View File
@@ -203,6 +203,7 @@ GLOBAL_PROTECT(admin_verbs_debug)
/client/proc/cmd_sdql_spell_menu,
/client/proc/adventure_manager,
/client/proc/load_circuit,
/client/proc/cmd_admin_toggle_fov,
)
GLOBAL_LIST_INIT(admin_verbs_possess, list(/proc/possess, /proc/release))
GLOBAL_PROTECT(admin_verbs_possess)
+17
View File
@@ -0,0 +1,17 @@
/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()