From ec8834f9e59466829d90ba0f14814d507cdeaa3e Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Sun, 1 Sep 2024 08:31:31 -0700 Subject: [PATCH] [MIRROR] vtec module fix (#8887) Co-authored-by: Novacat <35587478+Novacat@users.noreply.github.com> Co-authored-by: CHOMPStation2 --- code/_onclick/hud/robot.dm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/_onclick/hud/robot.dm b/code/_onclick/hud/robot.dm index c857c56861..3ab7410269 100644 --- a/code/_onclick/hud/robot.dm +++ b/code/_onclick/hud/robot.dm @@ -216,6 +216,23 @@ var/obj/screen/robot_inventory client.screen += list( throw_icon, zone_sel, hands, healths, pullin, robot_inventory, gun_setting_icon) client.screen += HUD.adding + HUD.other client.screen += client.void + if(vtec_active) + using = new /obj/screen() + using.name = "control_vtec" + using.icon = HUD.ui_style + using.screen_loc = ui_vtec_control + using.color = HUD.ui_color + using.alpha = HUD.ui_alpha + if(speed == 0) + using.icon_state = "speed_0" + else if(speed == -0.5) + using.icon_state = "speed_1" + else if(speed == -1) + using.icon_state = "speed_2" + HUD.control_vtec = using + m_intent = "run" + HUD.move_intent.icon_state = "running" + client.screen += HUD.control_vtec /datum/hud/proc/toggle_vtec_control() if(!isrobot(mymob))