Skip to content

Commit

Permalink
hello
Browse files Browse the repository at this point in the history
  • Loading branch information
thgvr committed Feb 10, 2024
1 parent f050ebd commit 32c79aa
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 105 deletions.
1 change: 0 additions & 1 deletion code/game/objects/items/holy_weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
item_state = "cage"
worn_x_dimension = 64
worn_y_dimension = 64
dynamic_hair_suffix = ""

/obj/item/storage/box/holy/sentinel
name = "Stone Sentinel Kit"
Expand Down
7 changes: 0 additions & 7 deletions code/modules/clothing/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@

var/pocket_storage_component_path

//These allow head/mask items to dynamically alter the user's hair
// and facial hair, checking hair_extensions.dmi and facialhair_extensions.dmi
// for a state matching hair_state+dynamic_hair_suffix
// THESE OVERRIDE THE HIDEHAIR FLAGS
var/dynamic_hair_suffix = ""//head > mask for head hair
var/dynamic_fhair_suffix = ""//mask > head for facial hair

///These are armor values that protect the wearer, taken from the clothing's armor datum. List updates on examine because it's currently only used to print armor ratings to chat in Topic().
var/list/armor_list = list()
///These are armor values that protect the clothing, taken from its armor datum. List updates on examine because it's currently only used to print armor ratings to chat in Topic().
Expand Down
7 changes: 0 additions & 7 deletions code/modules/clothing/head/_head.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@
slot_flags = ITEM_SLOT_HEAD
var/blockTracking = 0 //For AI tracking
var/can_toggle = null
dynamic_hair_suffix = "+generic"
greyscale_icon_state = "hat"
greyscale_colors = list(list(16,26))
supports_variations = VOX_VARIATION

/obj/item/clothing/head/Initialize()
. = ..()
if(ishuman(loc) && dynamic_hair_suffix)
var/mob/living/carbon/human/H = loc
H.update_hair()

///Special throw_impact for hats to frisbee hats at people to place them on their heads/attempt to de-hat them.
/obj/item/clothing/head/throw_impact(atom/hit_atom, datum/thrownthing/thrownthing)
. = ..()
Expand Down
2 changes: 0 additions & 2 deletions code/modules/clothing/head/berets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
desc = "A red beret."
icon_state = "beret"
dog_fashion = /datum/dog_fashion/head/beret
dynamic_hair_suffix = "+generic"
dynamic_fhair_suffix = "+generic"

/obj/item/clothing/head/beret/vintage
name = "vintage beret"
Expand Down
6 changes: 0 additions & 6 deletions code/modules/clothing/head/collectable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
desc = "A rare chef's hat meant for hat collectors!"
icon_state = "chef"
item_state = "chef"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/chef

Expand Down Expand Up @@ -50,7 +49,6 @@
name = "collectable police officer's hat"
desc = "A collectable police officer's Hat. This hat emphasizes that you are THE LAW."
icon_state = "policehelm"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/warden

Expand All @@ -74,7 +72,6 @@
icon_state = "headslime"
item_state = "headslime"
clothing_flags = SNUG_FIT
dynamic_hair_suffix = ""

/obj/item/clothing/head/collectable/flatcap
name = "collectable flat cap"
Expand All @@ -95,7 +92,6 @@
desc = "The fur feels... a bit too realistic."
icon_state = "kitty"
item_state = "kitty"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/kitty

Expand All @@ -104,7 +100,6 @@
desc = "Not as lucky as the feet!"
icon_state = "bunny"
item_state = "bunny"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/rabbit

Expand All @@ -128,7 +123,6 @@
name = "collectable HoS hat"
desc = "Now you too can beat prisoners, set silly sentences, and arrest for no reason!"
icon_state = "hoscap"
dynamic_hair_suffix = ""

/obj/item/clothing/head/collectable/HoP
name = "collectable HoP hat"
Expand Down
1 change: 0 additions & 1 deletion code/modules/clothing/head/hardhat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
actions_types = list(/datum/action/item_action/toggle_helmet_light)
clothing_flags = SNUG_FIT
resistance_flags = FIRE_PROOF
dynamic_hair_suffix = "+generic"
light_system = MOVABLE_LIGHT_DIRECTIONAL
light_range = 4
light_power = 0.8
Expand Down
1 change: 0 additions & 1 deletion code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@
name = "police officer's hat"
desc = "A police officer's Hat. This hat emphasizes that you are THE LAW."
icon_state = "policehelm"
dynamic_hair_suffix = ""

/obj/item/clothing/head/helmet/constable
name = "constable helmet"
Expand Down
2 changes: 0 additions & 2 deletions code/modules/clothing/head/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
desc = "The commander in chef's head wear."
strip_delay = 10
equip_delay_other = 10
dynamic_hair_suffix = ""
dog_fashion = /datum/dog_fashion/head/chef

//Captain
Expand Down Expand Up @@ -138,7 +137,6 @@
icon_state = "hoscap"
armor = list("melee" = 40, "bullet" = 30, "laser" = 25, "energy" = 35, "bomb" = 25, "bio" = 10, "rad" = 0, "fire" = 50, "acid" = 60)
strip_delay = 80
dynamic_hair_suffix = ""

/obj/item/clothing/head/HoS/cowboy
name = "sheriff's hat"
Expand Down
11 changes: 0 additions & 11 deletions code/modules/clothing/head/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
name = "nurse's hat"
desc = "It allows quick identification of trained medical personnel."
icon_state = "nursehat"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/nurse

Expand Down Expand Up @@ -124,7 +123,6 @@
name = "rabbit ears"
desc = "A headband with a pair of faux rabbit ears."
icon_state = "bunny"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/rabbit

Expand Down Expand Up @@ -165,14 +163,12 @@
desc = "Yarr."
icon_state = "bandana"
item_state = "bandana"
dynamic_hair_suffix = ""

/obj/item/clothing/head/bowler
name = "bowler-hat"
desc = "Gentleman, elite aboard!"
icon_state = "bowler"
item_state = "bowler"
dynamic_hair_suffix = ""

/obj/item/clothing/head/witchwig
name = "witch costume wig"
Expand Down Expand Up @@ -288,7 +284,6 @@
w_class = WEIGHT_CLASS_SMALL
attack_verb = list("warned", "cautioned", "smashed")
resistance_flags = NONE
dynamic_hair_suffix = ""

/obj/item/clothing/head/santa
name = "santa hat"
Expand All @@ -303,7 +298,6 @@
name = "jester hat"
desc = "A hat with bells, to add some merriness to the suit."
icon_state = "jester_hat"
dynamic_hair_suffix = ""

/obj/item/clothing/head/jester/alt
icon_state = "jester2"
Expand Down Expand Up @@ -331,7 +325,6 @@
icon_state = "crown"
armor = list("melee" = 15, "bullet" = 0, "laser" = 0,"energy" = 10, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
resistance_flags = FIRE_PROOF
dynamic_hair_suffix = ""

/obj/item/clothing/head/crown/fancy
name = "magnificent crown"
Expand Down Expand Up @@ -376,7 +369,6 @@
name = "french beret"
desc = "A quality beret, infused with the aroma of chain-smoking, wine-swilling Parisians. You feel less inclined to engage in military conflict, for some reason."
icon_state = "beret"
dynamic_hair_suffix = ""

/obj/item/clothing/head/frenchberet/equipped(mob/M, slot)
. = ..()
Expand Down Expand Up @@ -439,7 +431,6 @@
item_state = "shrine_wig"
worn_x_dimension = 64
worn_y_dimension = 64
dynamic_hair_suffix = ""

/obj/item/clothing/head/intern
name = "\improper CentCom Head Intern beancap"
Expand Down Expand Up @@ -505,8 +496,6 @@
name = "cowboy hat"
desc = "A classic stetson hat, made from real imitation leather! Wearing it gives you a strong urge to yeehaw."
icon_state = "cowboy"
dynamic_fhair_suffix = "+generic"
dynamic_fhair_suffix = "+generic"

dog_fashion = /datum/dog_fashion/head/cowboy

Expand Down
2 changes: 0 additions & 2 deletions code/modules/clothing/head/misc_special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
desc = "A pair of kitty ears. Meow!"
icon_state = "kitty"
color = "#999999"
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/kitty

Expand All @@ -190,7 +189,6 @@
flags_inv = 0
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
light_range = 1 //luminosity when on
dynamic_hair_suffix = ""

dog_fashion = /datum/dog_fashion/head/reindeer

Expand Down
2 changes: 0 additions & 2 deletions code/modules/clothing/spacesuits/_spacesuits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
permeability_coefficient = 0.01
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 100, "rad" = 50, "fire" = 80, "acid" = 70)
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDEHAIR|HIDEFACIALHAIR
dynamic_hair_suffix = ""
dynamic_fhair_suffix = ""
cold_protection = HEAD
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
heat_protection = HEAD
Expand Down
4 changes: 1 addition & 3 deletions code/modules/clothing/spacesuits/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ Contains:
desc = "An armored beret commonly used by special operations officers. Uses advanced force field technology to protect the head from space."
icon_state = "beret_badge"
greyscale_colors = "#397F3F#FFCE5B"
dynamic_hair_suffix = "+generic"
dynamic_fhair_suffix = "+generic"
flags_inv = 0
armor = list("melee" = 80, "bullet" = 80, "laser" = 50, "energy" = 60, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
strip_delay = 130
Expand Down Expand Up @@ -317,7 +315,7 @@ Contains:
light_system = NO_LIGHT_SUPPORT
light_range = 0 //luminosity when on
actions_types = list()
flags_inv = HIDEEARS|HIDEHAIR|HIDEFACIALHAIR //facial hair will clip with the helm, this'll need a dynamic_fhair_suffix at some point.
flags_inv = HIDEEARS|HIDEHAIR|HIDEFACIALHAIR

/obj/item/clothing/head/helmet/space/hardsuit/carp/Initialize()
. = ..()
Expand Down
1 change: 0 additions & 1 deletion code/modules/clothing/suits/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@
body_parts_covered = HEAD
clothing_flags = THICKMATERIAL
flags_inv = HIDEHAIR|HIDEEARS
dynamic_hair_suffix = ""

/obj/item/clothing/suit/hooded/bloated_human //OH MY GOD WHAT HAVE YOU DONE!?!?!?
name = "bloated human suit"
Expand Down
1 change: 0 additions & 1 deletion code/modules/clothing/suits/toggles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@

/obj/item/clothing/head/hooded
var/obj/item/clothing/suit/hooded/suit
dynamic_hair_suffix = ""

/obj/item/clothing/head/hooded/Destroy()
suit = null
Expand Down
2 changes: 0 additions & 2 deletions code/modules/clothing/suits/utility.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
clothing_flags = THICKMATERIAL | SNUG_FIT
armor = list("melee" = 20, "bullet" = 0, "laser" = 20,"energy" = 30, "bomb" = 100, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
flags_inv = HIDEFACE|HIDEMASK|HIDEEARS|HIDEEYES|HIDEHAIR|HIDEFACIALHAIR
dynamic_hair_suffix = ""
dynamic_fhair_suffix = ""
cold_protection = HEAD
min_cold_protection_temperature = HELMET_MIN_TEMP_PROTECT
heat_protection = HEAD
Expand Down
24 changes: 20 additions & 4 deletions code/modules/mob/dead/new_player/sprite_accessories/hair.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Hair for use on mobs
// Keep the names alphabetical, and capitalized.
// You do not need to define _s or _l sub-states, game automatically does this for you
// You do not need to define _s or _l sub-states, game automatically does this for you //what is this

/datum/sprite_accessory/hair
icon = 'icons/mob/human_face.dmi' // default icon for all hairs
Expand Down Expand Up @@ -302,6 +302,14 @@
name = "Gentle"
icon_state = "hair_gentle"

/datum/sprite_accessory/hair/gloomy
name = "Gloomy"
icon_state = "hair_gloomy"

/datum/sprite_accessory/hair/gloomy_long
name = "Gloomy (Long)"
icon_state = "hair_gloomylong"

/datum/sprite_accessory/hair/halfbang
name = "Half-banged Hair"
icon_state = "hair_halfbang"
Expand All @@ -310,9 +318,9 @@
name = "Half-banged Hair 2"
icon_state = "hair_halfbang2"

/datum/sprite_accessory/hair/halfshaved
name = "Half-shaved"
icon_state = "hair_halfshaved"
/datum/sprite_accessory/hair/halfshave
name = "Half-shave"
icon_state = "hair_halfshave"

/datum/sprite_accessory/hair/harley
name = "Harley"
Expand Down Expand Up @@ -694,6 +702,10 @@
name = "Tress Shoulder"
icon_state = "hair_tressshoulder"

/datum/sprite_accessory/hair/tribun
name = "Tri-bun"
icon_state = "hair_tribun"

/datum/sprite_accessory/hair/trimmed
name = "Trimmed"
icon_state = "hair_trimmed"
Expand All @@ -706,6 +718,10 @@
name = "Twintails"
icon_state = "hair_twintail"

/datum/sprite_accessory/hair/ruby
name = "Ruby"
icon_state = "hair_ruby"

/datum/sprite_accessory/hair/undercut
name = "Undercut"
icon_state = "hair_undercut"
Expand Down
4 changes: 0 additions & 4 deletions code/modules/mob/living/carbon/human/inventory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@
/mob/living/carbon/human/head_update(obj/item/I, forced)
if((I.flags_inv & (HIDEHAIR|HIDEFACIALHAIR)) || forced)
update_hair()
else
var/obj/item/clothing/C = I
if(istype(C) && C.dynamic_hair_suffix)
update_hair()
if(I.flags_inv & HIDEEYES || forced)
update_inv_glasses()
if(I.flags_inv & HIDEEARS || forced)
Expand Down
Loading

0 comments on commit 32c79aa

Please sign in to comment.