mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
@@ -606,9 +606,9 @@ GLOBAL_LIST_EMPTY(do_after_once_tracker)
|
||||
var/mob/living/carbon/human/H = thing
|
||||
H.sec_hud_set_security_status()
|
||||
|
||||
/proc/update_all_mob_malf_hud(new_status)
|
||||
/proc/update_all_mob_malf_hud()
|
||||
for(var/mob/living/carbon/human/H in GLOB.human_list)
|
||||
H.malf_hud_set_status(new_status)
|
||||
H.malf_hud_set_status()
|
||||
|
||||
/proc/getviewsize(view)
|
||||
var/viewX
|
||||
|
||||
@@ -511,17 +511,17 @@
|
||||
Malf AI HUD
|
||||
~~~~~~~~~~~~~~~*/
|
||||
|
||||
/mob/living/carbon/human/proc/malf_hud_set_status(new_status)
|
||||
/mob/living/carbon/human/proc/malf_hud_set_status()
|
||||
var/image/holder = hud_list[MALF_AI_HUD]
|
||||
var/new_status
|
||||
var/targetname = get_visible_name(TRUE) //gets the name of the target, works if they have an id or if their face is uncovered
|
||||
if(!SSticker)
|
||||
return //wait till the game starts or the monkeys runtime
|
||||
if(!new_status)
|
||||
for(var/datum/data/record/E in GLOB.data_core.general)
|
||||
if(E.fields["name"] == targetname)
|
||||
for(var/datum/data/record/R in GLOB.data_core.security)
|
||||
if(R.fields["id"] == E.fields["id"])
|
||||
new_status = E.fields["ai_target"]
|
||||
for(var/datum/data/record/E in GLOB.data_core.general)
|
||||
if(E.fields["name"] == targetname)
|
||||
for(var/datum/data/record/R in GLOB.data_core.security)
|
||||
if(R.fields["id"] == E.fields["id"])
|
||||
new_status = E.fields["ai_target"]
|
||||
if(targetname)
|
||||
var/datum/data/record/R = find_record("name", targetname, GLOB.data_core.security)
|
||||
if(R)
|
||||
|
||||
@@ -786,7 +786,7 @@
|
||||
|
||||
found_record.fields["ai_target"] = new_status
|
||||
|
||||
update_all_mob_malf_hud(new_status)
|
||||
update_all_mob_malf_hud()
|
||||
|
||||
|
||||
/mob/living/carbon/human/can_be_flashed(intensity = 1, override_blindness_check = 0)
|
||||
|
||||
Reference in New Issue
Block a user