Gives pAIs a zone selection HUD object. (#13650)

This commit is contained in:
Shadowmech88
2017-01-27 07:34:45 -06:00
committed by Probe1
parent f268b5df31
commit d9b16fb173
2 changed files with 13 additions and 0 deletions

View File

@@ -223,6 +223,8 @@ var/global/obj/screen/clicker/catcher = new()
borer_hud()
else if(isconstruct(mymob))
construct_hud()
else if(ispAI(mymob))
pai_hud()
if(isliving(mymob))
var/obj/screen/using

View File

@@ -115,3 +115,14 @@
return "0"
#undef SCANNER
/datum/hud/proc/pai_hud()
mymob.zone_sel = getFromPool(/obj/screen/zone_sel)
mymob.zone_sel.icon = 'icons/mob/screen1_robot.dmi'
mymob.zone_sel.overlays.len = 0
mymob.zone_sel.overlays += image('icons/mob/zone_sel.dmi', "[mymob.zone_sel.selecting]")
mymob.client.reset_screen()
mymob.client.screen += list(mymob.zone_sel)