Skip to content

Commit

Permalink
Corpsman's helmet HUD now gives both medical and squad data
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoryBlaine committed Aug 30, 2024
1 parent 777dec9 commit 1951c0f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions code/game/objects/items/devices/helmet_visors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@
/obj/item/device/helmet_visor/medical/advanced
name = "advanced medical optic"
helmet_overlay = "med_sight_left"
hud_type = list(MOB_HUD_FACTION_USCM, MOB_HUD_MEDICAL_ADVANCED)

/obj/item/device/helmet_visor/medical/advanced/activate_visor(obj/item/clothing/head/helmet/marine/attached_helmet, mob/living/carbon/human/user)
. = ..()

for(var/type in hud_type)
var/datum/mob_hud/current_mob_hud = huds[type]
current_mob_hud.add_hud_to(user, attached_helmet)

/obj/item/device/helmet_visor/medical/advanced/deactivate_visor(obj/item/clothing/head/helmet/marine/attached_helmet, mob/living/carbon/human/user)
. = ..()

for(var/type in hud_type)
var/datum/mob_hud/current_mob_hud = huds[type]
current_mob_hud.remove_hud_from(user, attached_helmet)

/obj/item/device/helmet_visor/medical/advanced/process(delta_time)
return PROCESS_KILL

/obj/item/device/helmet_visor/medical/advanced/can_toggle(mob/living/carbon/human/user)
. = ..()
Expand Down
3 changes: 1 addition & 2 deletions code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,7 @@ GLOBAL_LIST_INIT(allowed_helmet_items, list(
desc = "M10 combat helmet issued to marine hospital corpsmen. Has a red cross painted on its front for attracting the injured and snipers' attentions alike."
icon_state = "med_helmet"
specialty = "M10 pattern medic"
built_in_visors = list(new /obj/item/device/helmet_visor, new /obj/item/device/helmet_visor/medical/advanced)
start_down_visor_type = /obj/item/device/helmet_visor/medical/advanced
built_in_visors = list(new /obj/item/device/helmet_visor/medical/advanced)

/obj/item/clothing/head/helmet/marine/covert
name = "\improper M10 covert helmet"
Expand Down

0 comments on commit 1951c0f

Please sign in to comment.