mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user