space-station-14 icon indicating copy to clipboard operation
space-station-14 copied to clipboard

Welding masks restrict vision

Open MACMAN2003 opened this issue 1 month ago • 17 comments

About the PR

Made welding masks (not the welding gas masks) restrict your vision.

Why / Balance

it's realistic and it gives a use to the flipped up welding mask sprites. As for game balance, it's pretty much a nerf, it blinds you completely when it's down and does not protect you when it's up.

Technical details

I don't really understand the code enough to summarize it but I'll try my best. I moved the flash immunity component from server to shared, so that the welding mask can actually toggle it The welding mask component stores an invalid entity UID until it is worn then it stores the UID of the wearer until unequipped. Whenever the welding mask component receives a "folded event" it effectively toggles all the fancy things that come with a welding mask. The welding mask adds/removes a component to the clientside player every time it is toggled.

Media

  • [x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

(blindness effect is out of date) https://github.com/space-wizards/space-station-14/assets/20659419/f5dd4a05-d8fb-4f5f-820a-d686b69bd7a0

image

Breaking changes

Changelog

🆑

  • tweak: Welding masks can be folded up and will restrict vision when folded down.

MACMAN2003 avatar Jun 02 '24 13:06 MACMAN2003