Solves the helmet hidding hair issue (#4774)

Allows people to switch if they want to hide their hair or not when wearing a helmet, it does not work with space helmets or the hos dermal implant.

Forum thread: https://forums.aurorastation.org/viewtopic.php?f=18&t=11070
This commit is contained in:
Alberyk
2018-05-26 18:23:51 -03:00
committed by Erki
parent 33b46e8b14
commit cc8421411e
2 changed files with 12 additions and 0 deletions

View File

@@ -16,6 +16,16 @@
max_heat_protection_temperature = HELMET_MAX_HEAT_PROTECTION_TEMPERATURE
siemens_coefficient = 0.5
w_class = 3
var/allow_hair_covering = TRUE //in case if you want to allow someone to switch the BLOCKHEADHAIR var from the helmet or not
/obj/item/clothing/head/helmet/verb/toggle_block_hair()
set name = "Toggle Helmet Hair Coverage"
set category = "Object"
if(allow_hair_covering)
flags_inv ^= BLOCKHEADHAIR
usr << "<span class='notice'>[src] will now [flags_inv & BLOCKHEADHAIR ? "hide" : "show"] hair.</span>"
..()
/obj/item/clothing/head/helmet/warden
name = "warden's hat"
@@ -41,6 +51,7 @@
name = "dermal armour patch"
desc = "You're not quite sure how you manage to take it on and off, but it implants nicely in your head."
icon_state = "dermal"
allow_hair_covering = FALSE
/obj/item/clothing/head/helmet/hop
name = "crew resource's hat"

View File

@@ -21,6 +21,7 @@
siemens_coefficient = 0.9
species_restricted = list("exclude","Diona","Xenomorph","Vox","Golem")
flash_protection = FLASH_PROTECTION_MAJOR
allow_hair_covering = FALSE
var/obj/machinery/camera/camera
var/list/camera_networks