Files
Time-Green ee36300bc8 Resprites voidwalker hud elements (#93519)
## About The Pull Request
Continuation of https://github.com/tgstation/tgstation/pull/93224

<img width="1256" height="986" alt="image"
src="https://github.com/user-attachments/assets/f939655f-cd13-481f-aab2-e85c7c61c22c"
/>

Sprites by the amazing ell_good

## Why It's Good For The Game
Actually talented hud sprites that aren't just coder-recolors of the
alien hud

## Changelog
🆑 ell_good
image: Resprites the voidwalker hud elements
/🆑
2025-10-20 22:13:58 +02:00

114 lines
3.4 KiB
Plaintext

/datum/hud/dextrous/voidwalker
ui_style = 'icons/hud/screen_voidwalker.dmi'
/datum/hud/dextrous/voidwalker/New(mob/living/owner)
. = ..()
floor_change.icon = ui_style
floor_change.screen_loc = ui_rest
static_inventory += floor_change
resist_icon = new /atom/movable/screen/resist(null, src)
resist_icon.icon = ui_style
resist_icon.screen_loc = ui_voidwalker_left_of_hands
resist_icon.update_appearance()
action_intent = new /atom/movable/screen/combattoggle/flashy/voidwalker(null, src)
action_intent.icon = ui_style
static_inventory += action_intent
var/atom/movable/screen/space_camo_toggle = new /atom/movable/screen/space_camo(null, src)
space_camo_toggle.screen_loc = ui_above_movement
static_inventory += space_camo_toggle
var/atom/movable/screen/vomit_jump/vomit = new /atom/movable/screen/vomit_jump(null, src)
vomit.screen_loc = ui_mood
static_inventory += vomit
/// This exists because for some reason only the combat indicator screen_loc is constantly set to initial
/atom/movable/screen/combattoggle/flashy/voidwalker
screen_loc = ui_movi
/atom/movable/screen/space_camo
name = "space camouflage toggle"
icon = 'icons/hud/screen_voidwalker.dmi'
icon_state = "camo_toggle"
/// Wheter or not we're toggled on or off
var/invisibility_toggle = TRUE
/atom/movable/screen/space_camo/Click()
if(!isliving(usr))
return
invisibility_toggle = !invisibility_toggle
update_appearance()
if(invisibility_toggle)
REMOVE_TRAIT(usr, TRAIT_INVISIBILITY_BLOCKED, type)
else
ADD_TRAIT(usr, TRAIT_INVISIBILITY_BLOCKED, type)
/atom/movable/screen/space_camo/update_icon_state()
icon_state = initial(icon_state) + (invisibility_toggle ? "" : "_off")
return ..()
/atom/movable/screen/vomit_jump
name = "vomit tracker"
icon = 'icons/hud/screen_voidwalker.dmi'
icon_state = "template"
/// So we can sort of loop through it
var/index = 1
/atom/movable/screen/vomit_jump/Initialize(mapload, datum/hud/hud_owner)
. = ..()
var/icon/vomit_overlay = icon(/obj/effect/decal/cleanable/vomit/nebula::icon, pick(/obj/effect/decal/cleanable/vomit/nebula::random_icon_states))
add_overlay(vomit_overlay)
/atom/movable/screen/vomit_jump/examine(mob/user)
. = ..()
var/list/vomits = get_valid_vomits()
. += span_notice("Tracks all of the nebula vomits generated by the people you have touched.")
. += span_notice("Left-click while in space dive to move to a nebula vomit, if there are any.")
. += span_notice("Current nebula vomits: [vomits.len]")
/atom/movable/screen/vomit_jump/proc/get_valid_vomits()
var/list/valid_vomits = list()
for(var/atom/movable/vomit as anything in GLOB.nebula_vomits)
if(!is_station_level(vomit.z))
return
valid_vomits += vomit
return valid_vomits
/atom/movable/screen/vomit_jump/Click(location, control, params)
var/list/modifiers = params2list(params)
if(LAZYACCESS(modifiers, RIGHT_CLICK) || LAZYACCESS(modifiers, SHIFT_CLICK))
usr.examinate(src)
return
if(!isliving(usr))
return
if(!istype(usr.loc, /obj/effect/dummy/phased_mob/space_dive))
usr.balloon_alert(usr, "must be space diving!")
return
var/list/vomits = get_valid_vomits()
if(!vomits.len)
usr.balloon_alert(usr, "no nebula vomits!")
return
var/obj/effect/dummy/phased_mob/space_dive/holder = usr.loc
index = (index % vomits.len) + 1
holder.forceMove(get_step(vomits[index], pick(GLOB.alldirs)))
usr.playsound_local(usr, 'sound/effects/phasein.ogg', 50, FALSE)