From e1946c779df3bec36402527fbf0dbe051a1cbe12 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 12 Apr 2021 21:40:29 -0400 Subject: [PATCH] Replaces old pilot helmets Same helmet without the interface that was only used on webshuttles. --- .../crates_lockers/closets/misc_vr.dm | 2 +- code/modules/clothing/head/pilot_helmet_vr.dm | 33 +++++++++++++++++++ maps/offmap_vr/talon/talon.dm | 2 +- vorestation.dme | 1 + 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 code/modules/clothing/head/pilot_helmet_vr.dm diff --git a/code/game/objects/structures/crates_lockers/closets/misc_vr.dm b/code/game/objects/structures/crates_lockers/closets/misc_vr.dm index aa7a55dff6f..4b6c275a1a1 100644 --- a/code/game/objects/structures/crates_lockers/closets/misc_vr.dm +++ b/code/game/objects/structures/crates_lockers/closets/misc_vr.dm @@ -124,7 +124,7 @@ /obj/item/weapon/storage/backpack/parachute, /obj/item/weapon/material/knife/tacknife/survival, /obj/item/weapon/gun/energy/locked/frontier/holdout, - /obj/item/clothing/head/pilot, + /obj/item/clothing/head/ompilot, /obj/item/clothing/under/rank/pilot1, /obj/item/clothing/suit/storage/toggle/bomber/pilot, /obj/item/clothing/shoes/boots/winter/explorer, diff --git a/code/modules/clothing/head/pilot_helmet_vr.dm b/code/modules/clothing/head/pilot_helmet_vr.dm new file mode 100644 index 00000000000..acf700f81f7 --- /dev/null +++ b/code/modules/clothing/head/pilot_helmet_vr.dm @@ -0,0 +1,33 @@ +//Overmap pilots. Same gear, without the dumb interface. + +/obj/item/clothing/head/ompilot + name = "pilot helmet" + desc = "Standard pilot gear. Protects the head from impacts." + icon_state = "pilot_helmet1" + item_icons = list(slot_head_str = 'icons/mob/pilot_helmet.dmi') + sprite_sheets = list( + SPECIES_TESHARI = 'icons/mob/species/teshari/pilot_helmet.dmi' + ) + flags = THICKMATERIAL + armor = list(melee = 20, bullet = 10, laser = 10, energy = 5, bomb = 10, bio = 0, rad = 0) + flags_inv = HIDEEARS + cold_protection = HEAD + min_cold_protection_temperature = HELMET_MIN_COLD_PROTECTION_TEMPERATURE + heat_protection = HEAD + max_heat_protection_temperature = HELMET_MAX_HEAT_PROTECTION_TEMPERATURE + w_class = ITEMSIZE_NORMAL + +/obj/item/clothing/head/ompilot/alt + name = "pilot helmet" + desc = "Standard pilot gear. Protects the head from impacts. This one has a retractable visor" + icon_state = "pilot_helmet2" + action_button_name = "Toggle Visor" + +/obj/item/clothing/head/ompilot/alt/attack_self(mob/user as mob) + if(src.icon_state == initial(icon_state)) + src.icon_state = "[icon_state]up" + to_chat(user, "You raise the visor on the pilot helmet.") + else + src.icon_state = initial(icon_state) + to_chat(user, "You lower the visor on the pilot helmet.") + update_clothing_icon() //so our mob-overlays update \ No newline at end of file diff --git a/maps/offmap_vr/talon/talon.dm b/maps/offmap_vr/talon/talon.dm index 74281e86b8a..cd7d227f912 100644 --- a/maps/offmap_vr/talon/talon.dm +++ b/maps/offmap_vr/talon/talon.dm @@ -345,7 +345,7 @@ Once in open space, consider disabling nonessential power-consuming electronics starts_with = list( /obj/item/weapon/material/knife/tacknife/survival, - /obj/item/clothing/head/pilot, + /obj/item/clothing/head/ompilot, /obj/item/clothing/under/rank/pilot1, /obj/item/clothing/suit/storage/toggle/bomber/pilot, /obj/item/clothing/gloves/fingerless, diff --git a/vorestation.dme b/vorestation.dme index 078f6c04b39..8ef0b551762 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1903,6 +1903,7 @@ #include "code\modules\clothing\head\misc_special.dm" #include "code\modules\clothing\head\misc_vr.dm" #include "code\modules\clothing\head\pilot_helmet.dm" +#include "code\modules\clothing\head\pilot_helmet_vr.dm" #include "code\modules\clothing\head\soft_caps.dm" #include "code\modules\clothing\head\solgov.dm" #include "code\modules\clothing\head\solgov_vr.dm"