From 3a245943d363dec922fe84e2a3bdabd9bef8e7a4 Mon Sep 17 00:00:00 2001 From: radar651 Date: Tue, 12 May 2020 10:29:29 -0400 Subject: [PATCH] MedHUD Patch Medical hud patch. Arrr. --- .../loadout/loadout_eyes_vr.dm | 8 ++++-- code/modules/clothing/glasses/hud_vr.dm | 25 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/code/modules/client/preference_setup/loadout/loadout_eyes_vr.dm b/code/modules/client/preference_setup/loadout/loadout_eyes_vr.dm index 42c87335f6..276554554f 100644 --- a/code/modules/client/preference_setup/loadout/loadout_eyes_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_eyes_vr.dm @@ -43,5 +43,9 @@ path = /obj/item/clothing/glasses/fluff/science_proper /datum/gear/eyes/security/secpatch - display_name = "security hudpatch" - path = /obj/item/clothing/glasses/hud/security/eyepatch \ No newline at end of file + display_name = "Security HUDpatch" + path = /obj/item/clothing/glasses/hud/security/eyepatch + +/datum/gear/eyes/medical/medpatch + display_name = "Health HUDpatch" + path = /obj/item/clothing/glasses/hud/health/eyepatch \ No newline at end of file diff --git a/code/modules/clothing/glasses/hud_vr.dm b/code/modules/clothing/glasses/hud_vr.dm index fa47512a04..652d0c9dc1 100644 --- a/code/modules/clothing/glasses/hud_vr.dm +++ b/code/modules/clothing/glasses/hud_vr.dm @@ -184,3 +184,28 @@ else icon_state = initial(icon_state) update_clothing_icon() + + +/obj/item/clothing/glasses/hud/health/eyepatch + name = "Medical Hudpatch" + desc = "An eyepatch with built in scanners, that analyzes those in view and provides accurate data about their health status." + icon_state = "eyepatch" + item_state_slots = list(slot_r_hand_str = "blindfold", slot_l_hand_str = "blindfold") + body_parts_covered = 0 + enables_planes = list(VIS_CH_STATUS,VIS_CH_HEALTH) + var/eye = null + +/obj/item/clothing/glasses/hud/health/eyepatch/verb/switcheye() + set name = "Switch Eyepatch" + set category = "Object" + set src in usr + if(!istype(usr, /mob/living)) return + if(usr.stat) return + + eye = !eye + if(eye) + icon_state = "[icon_state]_1" + else + icon_state = initial(icon_state) + update_clothing_icon() +