[MIRROR] vtec module fix (#8887)

Co-authored-by: Novacat <35587478+Novacat@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-09-01 08:31:31 -07:00
committed by GitHub
parent 538ecace4e
commit ec8834f9e5

View File

@@ -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))