Skip to content

Commit

Permalink
Plastic Flaps Collision Fix Again (SerbiaStrong-220#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
stalengd authored Sep 25, 2024
1 parent b3603df commit a726b5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
17 changes: 6 additions & 11 deletions Content.Shared/Physics/CollisionGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,15 @@ public enum CollisionGroup
LargeMobLayer = Opaque | HighImpassable | MidImpassable | LowImpassable | BulletImpassable,

// Machines, computers
MachineMask = Impassable | MidImpassable | LowImpassable,
// SS220 Plastic Flaps Collision Fix Again begin
//MachineMask = Impassable | MidImpassable | LowImpassable,
MachineMask = Impassable | HighImpassable | LowImpassable,
// SS220 Plastic Flaps Collision Fix Again end
MachineLayer = Opaque | MidImpassable | LowImpassable | BulletImpassable,
ConveyorMask = Impassable | MidImpassable | LowImpassable | DoorPassable,

// Crates
// SS220 Plastic Flaps Collision Fix begin
//CrateMask = Impassable | HighImpassable | LowImpassable,
// Why: not deleted for compatibility with wizards changes
CrateMask = MachineMask,
// SS220 Plastic Flaps Collision Fix end
CrateMask = Impassable | HighImpassable | LowImpassable,

// Tables that SmallMobs can go under
TableMask = Impassable | MidImpassable,
Expand All @@ -77,11 +76,7 @@ public enum CollisionGroup

// Soap, spills
SlipLayer = MidImpassable | LowImpassable,
// SS220 Plastic Flaps Collision Fix begin
//ItemMask = Impassable | HighImpassable,
// Why: plastic flaps moved to HighImpassible layer, and items should be able to pass
ItemMask = Impassable,
// SS220 Plastic Flaps Collision Fix end
ItemMask = Impassable | HighImpassable,
ThrownItem = Impassable | HighImpassable | BulletImpassable,
WallLayer = Opaque | Impassable | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable,
GlassLayer = Impassable | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable,
Expand Down
10 changes: 2 additions & 8 deletions Resources/Prototypes/Entities/Structures/plastic_flaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
mask:
- Impassable
layer:
# SS220 Plastic Flaps Collision Fix begin
#- MidImpassable
- HighImpassable
# SS220 Plastic Flaps Collision Fix end
- MidImpassable
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Metallic
Expand Down Expand Up @@ -73,10 +70,7 @@
- Impassable
layer:
- Opaque
# SS220 Plastic Flaps Collision Fix begin
#- MidImpassable
- HighImpassable
# SS220 Plastic Flaps Collision Fix end
- MidImpassable
- type: Occluder
- type: Construction
graph: PlasticFlapsGraph
Expand Down

0 comments on commit a726b5a

Please sign in to comment.