Files
CHOMPStation2/code/_onclick/hud/alien_larva.dm
CHOMPStation2StaffMirrorBot 16d5b45148 [MIRROR] intent cleanup (#9778)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-01-03 21:57:25 +01:00

32 lines
785 B
Plaintext

/mob/living/carbon/alien/create_mob_hud(datum/hud/HUD, apply_to_client = TRUE)
..()
HUD.ui_style = 'icons/mob/screen1_alien.dmi'
HUD.adding = list()
HUD.other = list()
var/obj/screen/using
using = new /obj/screen()
using.name = "mov_intent"
using.set_dir(SOUTHWEST)
using.icon = HUD.ui_style
using.icon_state = (m_intent == I_RUN ? "running" : "walking")
using.screen_loc = ui_acti
using.layer = HUD_LAYER
HUD.adding += using
HUD.move_intent = using
healths = new /obj/screen()
healths.icon = HUD.ui_style
healths.icon_state = "health0"
healths.name = "health"
healths.screen_loc = ui_alien_health
if(client && apply_to_client)
client.screen = list()
client.screen += list(healths)
client.screen += HUD.adding + HUD.other
client.screen += client.void