Hardsuit and EVA helmets allow using internals without a mask (#22716)

This commit is contained in:
SapphicOverload
2023-12-18 21:50:06 -05:00
committed by GitHub
parent 10142c3a2e
commit 176f833ea9
4 changed files with 39 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Atmos.Components
/// Tool is functional only in allowed slots /// Tool is functional only in allowed slots
/// </summary> /// </summary>
[DataField("allowedSlots")] [DataField("allowedSlots")]
public SlotFlags AllowedSlots = SlotFlags.MASK; public SlotFlags AllowedSlots = SlotFlags.MASK | SlotFlags.HEAD;
public bool IsFunctional; public bool IsFunctional;
public EntityUid? ConnectedInternalsEntity; public EntityUid? ConnectedInternalsEntity;
} }

View File

@@ -34,7 +34,7 @@ public sealed class LungSystem : EntitySystem
private void OnGotEquipped(EntityUid uid, BreathToolComponent component, GotEquippedEvent args) private void OnGotEquipped(EntityUid uid, BreathToolComponent component, GotEquippedEvent args)
{ {
if ((args.SlotFlags & component.AllowedSlots) != component.AllowedSlots) return; if ((args.SlotFlags & component.AllowedSlots) == 0) return;
component.IsFunctional = true; component.IsFunctional = true;
if (TryComp(args.Equipee, out InternalsComponent? internals)) if (TryComp(args.Equipee, out InternalsComponent? internals))

View File

@@ -5,6 +5,7 @@
name: EVA helmet name: EVA helmet
description: An old-but-gold helmet designed for extravehicular activites. Infamous for making security officers paranoid. description: An old-but-gold helmet designed for extravehicular activites. Infamous for making security officers paranoid.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Helmets/eva.rsi sprite: Clothing/Head/Helmets/eva.rsi
- type: Clothing - type: Clothing
@@ -21,6 +22,7 @@
name: EVA helmet name: EVA helmet
description: An old-but-gold helmet designed for extravehicular activites. description: An old-but-gold helmet designed for extravehicular activites.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Helmets/eva_large.rsi sprite: Clothing/Head/Helmets/eva_large.rsi
- type: Clothing - type: Clothing
@@ -33,6 +35,7 @@
name: syndicate EVA helmet name: syndicate EVA helmet
description: A simple, stylish EVA helmet. Designed for maximum humble space-badassery. description: A simple, stylish EVA helmet. Designed for maximum humble space-badassery.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Helmets/eva_syndicate.rsi sprite: Clothing/Head/Helmets/eva_syndicate.rsi
- type: Clothing - type: Clothing
@@ -45,6 +48,7 @@
name: cosmonaut helmet name: cosmonaut helmet
description: Ancient design, but advanced manufacturing. #Description here originally started with " A deceptively well armored space helmet." Potentially had armor values in SS13 that weren't brought over? description: Ancient design, but advanced manufacturing. #Description here originally started with " A deceptively well armored space helmet." Potentially had armor values in SS13 that weren't brought over?
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Helmets/cosmonaut.rsi sprite: Clothing/Head/Helmets/cosmonaut.rsi
- type: Clothing - type: Clothing
@@ -57,6 +61,7 @@
name: Paramedic Void Helmet name: Paramedic Void Helmet
description: A void helmet made for paramedics. description: A void helmet made for paramedics.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Helmets/paramedhelm.rsi sprite: Clothing/Head/Helmets/paramedhelm.rsi
- type: Clothing - type: Clothing
@@ -77,6 +82,7 @@
name: NTSRA void helmet name: NTSRA void helmet
description: An ancient space helmet, designed by the NTSRA branch of CentCom. description: An ancient space helmet, designed by the NTSRA branch of CentCom.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Helmets/ancientvoidsuit.rsi sprite: Clothing/Head/Helmets/ancientvoidsuit.rsi
- type: Clothing - type: Clothing

View File

@@ -12,6 +12,7 @@
name: basic hardsuit helmet name: basic hardsuit helmet
description: A basic-looking hardsuit helmet that provides minor protection against most sources of damage. description: A basic-looking hardsuit helmet that provides minor protection against most sources of damage.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/basic.rsi sprite: Clothing/Head/Hardsuits/basic.rsi
- type: Clothing - type: Clothing
@@ -24,6 +25,7 @@
name: atmos hardsuit helmet name: atmos hardsuit helmet
description: A special hardsuit helmet designed for working in low-pressure, high thermal environments. description: A special hardsuit helmet designed for working in low-pressure, high thermal environments.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/atmospherics.rsi sprite: Clothing/Head/Hardsuits/atmospherics.rsi
layers: layers:
@@ -63,6 +65,7 @@
name: engineering hardsuit helmet name: engineering hardsuit helmet
description: An engineering hardsuit helmet designed for working in low-pressure, high radioactive environments. description: An engineering hardsuit helmet designed for working in low-pressure, high radioactive environments.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/engineering.rsi sprite: Clothing/Head/Hardsuits/engineering.rsi
- type: Clothing - type: Clothing
@@ -80,6 +83,7 @@
name: spationaut hardsuit helmet name: spationaut hardsuit helmet
description: A sturdy helmet designed for complex industrial operations in space. description: A sturdy helmet designed for complex industrial operations in space.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/spatiohelm.rsi sprite: Clothing/Head/Hardsuits/spatiohelm.rsi
layers: layers:
@@ -114,6 +118,7 @@
name: salvage hardsuit helmet name: salvage hardsuit helmet
description: A special helmet designed for work in a hazardous, low pressure environment. Has reinforced plating for wildlife encounters and dual floodlights. description: A special helmet designed for work in a hazardous, low pressure environment. Has reinforced plating for wildlife encounters and dual floodlights.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/salvage.rsi sprite: Clothing/Head/Hardsuits/salvage.rsi
- type: Clothing - type: Clothing
@@ -132,6 +137,7 @@
name: security hardsuit helmet name: security hardsuit helmet
description: Armored hardsuit helmet for security needs. description: Armored hardsuit helmet for security needs.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/security.rsi sprite: Clothing/Head/Hardsuits/security.rsi
- type: Clothing - type: Clothing
@@ -156,6 +162,7 @@
name: brigmedic hardsuit helmet name: brigmedic hardsuit helmet
description: The lightweight helmet of the brigmedic hardsuit. Protects against viruses, and clowns. description: The lightweight helmet of the brigmedic hardsuit. Protects against viruses, and clowns.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/brigmedic.rsi sprite: Clothing/Head/Hardsuits/brigmedic.rsi
- type: Clothing - type: Clothing
@@ -182,6 +189,7 @@
name: warden's hardsuit helmet name: warden's hardsuit helmet
description: A modified riot helmet. Oddly comfortable. description: A modified riot helmet. Oddly comfortable.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/security-warden.rsi sprite: Clothing/Head/Hardsuits/security-warden.rsi
- type: Clothing - type: Clothing
@@ -206,6 +214,7 @@
name: captain's hardsuit helmet name: captain's hardsuit helmet
description: Special hardsuit helmet, made for the captain of the station. description: Special hardsuit helmet, made for the captain of the station.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/capspace.rsi sprite: Clothing/Head/Hardsuits/capspace.rsi
- type: Clothing - type: Clothing
@@ -221,6 +230,7 @@
name: chief engineer's hardsuit helmet name: chief engineer's hardsuit helmet
description: Special hardsuit helmet, made for the chief engineer of the station. description: Special hardsuit helmet, made for the chief engineer of the station.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/engineering-white.rsi sprite: Clothing/Head/Hardsuits/engineering-white.rsi
- type: Clothing - type: Clothing
@@ -238,6 +248,7 @@
name: chief medical officer's hardsuit helmet name: chief medical officer's hardsuit helmet
description: Lightweight medical hardsuit helmet that doesn't restrict your head movements. description: Lightweight medical hardsuit helmet that doesn't restrict your head movements.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/medical.rsi sprite: Clothing/Head/Hardsuits/medical.rsi
- type: Clothing - type: Clothing
@@ -255,6 +266,7 @@
name: experimental research hardsuit helmet name: experimental research hardsuit helmet
description: Lightweight hardsuit helmet that doesn't restrict your head movements. description: Lightweight hardsuit helmet that doesn't restrict your head movements.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/rd.rsi sprite: Clothing/Head/Hardsuits/rd.rsi
- type: Clothing - type: Clothing
@@ -272,6 +284,7 @@
name: head of security's hardsuit helmet name: head of security's hardsuit helmet
description: Security hardsuit helmet with the latest top secret NT-HUD software. Belongs to the HoS. description: Security hardsuit helmet with the latest top secret NT-HUD software. Belongs to the HoS.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/security-red.rsi sprite: Clothing/Head/Hardsuits/security-red.rsi
- type: Clothing - type: Clothing
@@ -296,6 +309,7 @@
name: luxury mining hardsuit helmet name: luxury mining hardsuit helmet
description: A refurbished mining hardsuit helmet, fitted with satin cushioning and an extra (non-functioning) antenna, because you're that extra. description: A refurbished mining hardsuit helmet, fitted with satin cushioning and an extra (non-functioning) antenna, because you're that extra.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/luxury.rsi sprite: Clothing/Head/Hardsuits/luxury.rsi
- type: Clothing - type: Clothing
@@ -315,6 +329,7 @@
name: blood-red hardsuit helmet name: blood-red hardsuit helmet
description: A heavily armored helmet designed for work in special operations. Property of Gorlex Marauders. description: A heavily armored helmet designed for work in special operations. Property of Gorlex Marauders.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/syndicate.rsi sprite: Clothing/Head/Hardsuits/syndicate.rsi
- type: Clothing - type: Clothing
@@ -339,6 +354,7 @@
name: blood-red medic hardsuit helmet name: blood-red medic hardsuit helmet
description: An advanced red hardsuit helmet specifically designed for field medic operations. description: An advanced red hardsuit helmet specifically designed for field medic operations.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/syndiemedic.rsi sprite: Clothing/Head/Hardsuits/syndiemedic.rsi
- type: Clothing - type: Clothing
@@ -363,6 +379,7 @@
name: syndicate elite helmet name: syndicate elite helmet
description: An elite version of the blood-red hardsuit's helmet, with improved armor and fireproofing. Property of Gorlex Marauders. description: An elite version of the blood-red hardsuit's helmet, with improved armor and fireproofing. Property of Gorlex Marauders.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/syndieelite.rsi sprite: Clothing/Head/Hardsuits/syndieelite.rsi
- type: Clothing - type: Clothing
@@ -389,6 +406,7 @@
name: syndicate commander helmet name: syndicate commander helmet
description: A bulked up version of the blood-red hardsuit's helmet, purpose-built for the commander of a syndicate operative squad. Has significantly improved armor for those deadly front-lines firefights. description: A bulked up version of the blood-red hardsuit's helmet, purpose-built for the commander of a syndicate operative squad. Has significantly improved armor for those deadly front-lines firefights.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/syndiecommander.rsi sprite: Clothing/Head/Hardsuits/syndiecommander.rsi
- type: Clothing - type: Clothing
@@ -413,6 +431,7 @@
name: cybersun juggernaut helmet name: cybersun juggernaut helmet
description: Made of compressed red matter, this helmet was designed in the Tau chromosphere facility. description: Made of compressed red matter, this helmet was designed in the Tau chromosphere facility.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/cybersun.rsi sprite: Clothing/Head/Hardsuits/cybersun.rsi
- type: Clothing - type: Clothing
@@ -435,6 +454,7 @@
name: wizard hardsuit helmet name: wizard hardsuit helmet
description: A bizarre gem-encrusted helmet that radiates magical energies. description: A bizarre gem-encrusted helmet that radiates magical energies.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/wizard.rsi sprite: Clothing/Head/Hardsuits/wizard.rsi
- type: Clothing - type: Clothing
@@ -459,6 +479,7 @@
name: organic space helmet name: organic space helmet
description: A spaceworthy biomass of pressure and temperature resistant tissue. description: A spaceworthy biomass of pressure and temperature resistant tissue.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/lingspacehelmet.rsi sprite: Clothing/Head/Hardsuits/lingspacehelmet.rsi
- type: Clothing - type: Clothing
@@ -475,6 +496,7 @@
suffix: Pirate suffix: Pirate
description: A deep space EVA helmet, very heavy but provides good protection. description: A deep space EVA helmet, very heavy but provides good protection.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/pirateeva.rsi sprite: Clothing/Head/Hardsuits/pirateeva.rsi
- type: Clothing - type: Clothing
@@ -491,6 +513,7 @@
suffix: Pirate suffix: Pirate
description: A special hardsuit helmet, made for the captain of a pirate ship. description: A special hardsuit helmet, made for the captain of a pirate ship.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/piratecaptainhelm.rsi sprite: Clothing/Head/Hardsuits/piratecaptainhelm.rsi
- type: Clothing - type: Clothing
@@ -507,6 +530,7 @@
name: ERT leader hardsuit helmet name: ERT leader hardsuit helmet
description: A special hardsuit helmet worn by members of an emergency response team. description: A special hardsuit helmet worn by members of an emergency response team.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/ERThelmets/ertleader.rsi sprite: Clothing/Head/Hardsuits/ERThelmets/ertleader.rsi
- type: Clothing - type: Clothing
@@ -528,6 +552,7 @@
name: ERT engineer hardsuit helmet name: ERT engineer hardsuit helmet
description: A special hardsuit helmet worn by members of an emergency response team. description: A special hardsuit helmet worn by members of an emergency response team.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/ERThelmets/ertengineer.rsi sprite: Clothing/Head/Hardsuits/ERThelmets/ertengineer.rsi
- type: Clothing - type: Clothing
@@ -549,6 +574,7 @@
name: ERT medic hardsuit helmet name: ERT medic hardsuit helmet
description: A special hardsuit helmet worn by members of an emergency response team. description: A special hardsuit helmet worn by members of an emergency response team.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/ERThelmets/ertmedical.rsi sprite: Clothing/Head/Hardsuits/ERThelmets/ertmedical.rsi
- type: Clothing - type: Clothing
@@ -563,6 +589,7 @@
name: ERT security hardsuit helmet name: ERT security hardsuit helmet
description: A special hardsuit helmet worn by members of an emergency response team. description: A special hardsuit helmet worn by members of an emergency response team.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/ERThelmets/ertsecurity.rsi sprite: Clothing/Head/Hardsuits/ERThelmets/ertsecurity.rsi
- type: Clothing - type: Clothing
@@ -584,6 +611,7 @@
name: ERT janitor hardsuit helmet name: ERT janitor hardsuit helmet
description: A special hardsuit helmet worn by members of an emergency response team. description: A special hardsuit helmet worn by members of an emergency response team.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/ERThelmets/ertjanitor.rsi sprite: Clothing/Head/Hardsuits/ERThelmets/ertjanitor.rsi
- type: Clothing - type: Clothing
@@ -598,6 +626,7 @@
name: CBURN exosuit helmet name: CBURN exosuit helmet
description: A pressure resistant and fireproof hood worn by special cleanup units. description: A pressure resistant and fireproof hood worn by special cleanup units.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/cburn.rsi sprite: Clothing/Head/Hardsuits/cburn.rsi
layers: layers:
@@ -636,6 +665,7 @@
name: deathsquad hardsuit helmet name: deathsquad hardsuit helmet
description: A robust helmet for special operations. description: A robust helmet for special operations.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/deathsquad.rsi sprite: Clothing/Head/Hardsuits/deathsquad.rsi
- type: Clothing - type: Clothing
@@ -661,6 +691,7 @@
name: clown hardsuit helmet name: clown hardsuit helmet
description: A clown hardsuit helmet. description: A clown hardsuit helmet.
components: components:
- type: BreathMask
- type: Sprite - type: Sprite
sprite: Clothing/Head/Hardsuits/clown.rsi sprite: Clothing/Head/Hardsuits/clown.rsi
- type: Clothing - type: Clothing