Adds the code and helmets

Adds the code and helmets
This commit is contained in:
klaasjared
2021-05-15 23:55:03 -04:00
parent 4d940e54a4
commit 71e19c7a4e
6 changed files with 39 additions and 21 deletions
@@ -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/ompilot,
/obj/item/clothing/head/pilot_vr,
/obj/item/clothing/under/rank/pilot1,
/obj/item/clothing/suit/storage/toggle/bomber/pilot,
/obj/item/clothing/shoes/boots/winter/explorer,
+31 -18
View File
@@ -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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 693 B

After

Width:  |  Height:  |  Size: 2.2 KiB

+7 -2
View File
@@ -1,4 +1,9 @@
/datum/gear/head/pilot
display_name = "helmet, pilot (Pilot)"
path = /obj/item/clothing/head/ompilot/alt //VOREStation Edit
display_name = "helmet, standard pilot (Pilot)"
path = /obj/item/clothing/head/pilot_vr //VOREStation Edit
allowed_roles = list("Pilot")
/datum/gear/head/pilot
display_name = "helmet, colored pilot (Pilot)"
path = /obj/item/clothing/head/pilot_vr/alt //VOREStation Edit
allowed_roles = list("Pilot")