mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-28 15:40:25 +01:00
Merge pull request #10339 from klaasjared/Baystation-Pilot-Helmet-Port
Ports the Baystation Pilot Helmets
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
//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
|
||||
//Pilot helmets
|
||||
/obj/item/clothing/head/pilot_vr
|
||||
name = "standard pilot helmet"
|
||||
desc = "Standard pilot gear. Protects the head from impacts. This one has a retractable visor"
|
||||
icon = 'icons/obj/clothing/helmets_vr.dmi'
|
||||
icon_state = "pilot1"
|
||||
armor = list(melee = 20, bullet = 10, laser = 10, energy = 5, bomb = 10, bio = 0, rad = 0)
|
||||
flags_inv = HIDEEARS
|
||||
cold_protection = HEAD
|
||||
@@ -16,18 +11,36 @@
|
||||
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"
|
||||
item_icons = list(slot_head_str = 'icons/mob/head_vr.dmi')
|
||||
sprite_sheets = list(
|
||||
SPECIES_TESHARI = 'icons/mob/species/teshari/helmet_vr.dmi'
|
||||
)
|
||||
action_button_name = "Toggle Visor"
|
||||
|
||||
/obj/item/clothing/head/ompilot/alt/attack_self(mob/user as mob)
|
||||
/obj/item/clothing/head/pilot_vr/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
|
||||
update_clothing_icon() //so our mob-overlays update
|
||||
|
||||
/obj/item/clothing/head/pilot_vr/alt
|
||||
name = "colored pilot helmet"
|
||||
desc = "A colored version of the standard pilot helmet. Protects the head from impacts. This one has a retractable visor"
|
||||
icon_state = "pilot2"
|
||||
item_icons = list(slot_head_str = 'icons/mob/head_vr.dmi')
|
||||
sprite_sheets = list(
|
||||
SPECIES_TESHARI = 'icons/mob/species/teshari/helmet_vr.dmi'
|
||||
)
|
||||
action_button_name = "Toggle Visor"
|
||||
|
||||
/obj/item/clothing/head/pilot_vr/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
|
||||
|
||||
Reference in New Issue
Block a user