Files
Bubberstation/code/modules/surgery
Cruix 7e2f7ee3ad Added a system to hide parts of hair when wearing hats (#87263)
## About The Pull Request

Added a system to allow clothing to apply a mask to your hair sprite,
using the same blend procs that hair gradients do. This allows us to
hide the upper part of people's hair without affecting portions below a
person's hat.

Currently this is only implemented on hardhats as an example. This is
the mask they use:

![Mask_Example](https://github.com/user-attachments/assets/aef11885-33e4-48b2-90de-d10447a34b0f)
This hides any hair above the brow line and above a 45 degree angle
along the sides of the head. For hats with a thinner or wider profile, a
thinner or wider mask could be made.

Alternatively, you could create a mask for a suit slot item that makes
it appear like long, draping hair has been tucked into the suit. You
could also color the mask to create items that change the color of a
person's hair, if you wanted to do that for some reason. If multiple
items of clothing have masks, they will all be applied in sequence.

Before:

![before](https://github.com/user-attachments/assets/e4f13255-c6dc-4eb7-8b75-ada84380a739)

After:

![after](https://github.com/user-attachments/assets/59e5db78-e5ac-455a-af5b-cb1b460f5f43)

Removing the hardhat will cause your afro to poof back out completely
unharmed.

## Why It's Good For The Game

It looks better than having tall hairstyles show up behind your
headwear, but it does not hide your hair completely.

## Changelog

🆑
add: Hardhats now squish down excessively tall hairstyles while being
worn.
/🆑
2024-10-25 02:01:06 +02:00
..
2024-09-23 22:24:50 -07:00