From 054d35a4f892db4922130fcae0a406db863794fe Mon Sep 17 00:00:00 2001 From: keronshb <54602815+keronshb@users.noreply.github.com> Date: Sun, 18 May 2025 21:30:46 -0400 Subject: [PATCH] Force Wall Tweaks (#37525) * Reduces forcewall time to 10 seconds * Increases force wall action delay to 15 * Adds Special Wall Layer * Fixes indenting. Changes Mask and Layer to Special Wall Layer * Update Resources/Prototypes/Entities/Structures/Walls/walls.yml --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- Content.Shared/Physics/CollisionGroup.cs | 2 + .../Entities/Structures/Walls/walls.yml | 48 +++++++++---------- .../Prototypes/Magic/forcewall_spells.yml | 2 +- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/Content.Shared/Physics/CollisionGroup.cs b/Content.Shared/Physics/CollisionGroup.cs index 0a11f93dbc..db065d22b1 100644 --- a/Content.Shared/Physics/CollisionGroup.cs +++ b/Content.Shared/Physics/CollisionGroup.cs @@ -78,6 +78,8 @@ public enum CollisionGroup WallLayer = Opaque | Impassable | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable, GlassLayer = Impassable | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable, HalfWallLayer = MidImpassable | LowImpassable, + // Allows people to interact past and target players inside of this + SpecialWallLayer = Opaque | HighImpassable | MidImpassable | LowImpassable | BulletImpassable, // Statue, monument, airlock, window FullTileMask = Impassable | HighImpassable | MidImpassable | LowImpassable | InteractImpassable, diff --git a/Resources/Prototypes/Entities/Structures/Walls/walls.yml b/Resources/Prototypes/Entities/Structures/Walls/walls.yml index 7edefca9f9..a5370be2ea 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/walls.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/walls.yml @@ -1387,30 +1387,30 @@ id: WallForce name: force wall components: - - type: TimedDespawn - lifetime: 12 - - type: Tag - tags: - - Wall - - type: Physics - bodyType: Static - - type: Fixtures - fixtures: - fix1: - shape: - !type:PhysShapeAabb - bounds: "-0.5,-0.5,0.5,0.5" - mask: - - FullTileMask - layer: - - WallLayer - - type: Airtight - - type: Sprite - sprite: Structures/Magic/forcewall.rsi - state: forcewall - - type: Icon - sprite: Structures/Magic/forcewall.rsi - state: forcewall + - type: TimedDespawn + lifetime: 10 + - type: Tag + tags: + - Wall + - type: Physics + bodyType: Static + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.5,-0.5,0.5,0.5" + mask: + - SpecialWallLayer + layer: + - SpecialWallLayer + - type: Airtight + - type: Sprite + sprite: Structures/Magic/forcewall.rsi + state: forcewall + - type: Icon + sprite: Structures/Magic/forcewall.rsi + state: forcewall - type: entity parent: BaseWall diff --git a/Resources/Prototypes/Magic/forcewall_spells.yml b/Resources/Prototypes/Magic/forcewall_spells.yml index 7f501ae59b..ae71d81526 100644 --- a/Resources/Prototypes/Magic/forcewall_spells.yml +++ b/Resources/Prototypes/Magic/forcewall_spells.yml @@ -4,7 +4,7 @@ description: Creates a magical barrier. components: - type: InstantAction - useDelay: 10 + useDelay: 15 itemIconStyle: BigAction sound: !type:SoundPathSpecifier path: /Audio/Magic/forcewall.ogg -- 2.51.2