mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user