mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 11:31:38 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user