]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Can't crawl over counters (#40099)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Thu, 4 Sep 2025 21:03:10 +0000 (14:03 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Sep 2025 21:03:10 +0000 (14:03 -0700)
Counters and Tables separation

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/Physics/CollisionGroup.cs
Resources/Prototypes/Entities/Structures/Furniture/Tables/base_structuretables.yml
Resources/Prototypes/Entities/Structures/Furniture/Tables/tables.yml
Resources/Prototypes/Entities/Structures/Holographic/projections.yml
Resources/Prototypes/Entities/Structures/conveyor.yml

index 1f19184b50618ce205057692ff1607c4cbc372db..2878302e9a22531c9c7138eaac75354843f28042 100644 (file)
@@ -59,6 +59,9 @@ public enum CollisionGroup
     TableMask = Impassable | MidImpassable,
     TableLayer = MidImpassable,
 
+    // Tables that SmallMobs can't go under
+    CounterLayer = MidImpassable | LowImpassable,
+
     // Tabletop machines, windoors, firelocks
     TabletopMachineMask = Impassable | HighImpassable,
     // Tabletop machines
index 27cb4d8b686fd7e5c52a9e3fb8247fbc06ce7ddb..3cbbccd3ca0d6c223b1c0cb562164965ea2e0c2d 100644 (file)
@@ -57,4 +57,4 @@
         mask:
         - TableMask
         layer:
-        - TableLayer
+        - CounterLayer
index fda2ac5e182da082a59a654f6335988ad55430db..edf653d0669201c8044c57c8300d8b54e9247a6e 100644 (file)
@@ -77,7 +77,7 @@
         mask:
         - TableMask
         layer:
-        - TableLayer
+        - CounterLayer
   - type: Damageable
     damageContainer: StructuralInorganic
     damageModifierSet: Wood
 
 - type: entity
   id: TableReinforced
-  parent: TableBase
+  parent: CounterBase
   name: reinforced table
   description: A square piece of metal standing on four metal legs. Extra robust.
   components:
 
 - type: entity
   id: TableBrass
-  parent: TableBase
+  parent: CounterBase
   name: brass table
   description: A shiny, corrosion resistant brass table. Steampunk!
   components:
 
 - type: entity
   id: TableStone
-  parent: TableBase
+  parent: CounterBase
   name: stone table
   description: Literally the sturdiest thing you have ever seen.
   components:
       collection: FootstepCarpet
 
 - type: entity
-  parent: TableBase
+  parent: CounterBase
   id: TableXeno
   name: xeno table
   description: I wouldn't put the silverware on it.
index 4867fc84d80ecb9ee88d8e7a46641ede5d9757de..1009374cd6a3d42e859059077f38fcebd1416042 100644 (file)
           mask:
             - TableMask
           layer:
-            - TableLayer
+            - CounterLayer
     - type: TimedDespawn
       lifetime: 180
     - type: PointLight
index 6722181b269edc0cdd604e64009a96be1859e02f..feec88eeaf7038f23e2770ea0df4038b1cc46cc5 100644 (file)
           - 0.50,0.50
           - -0.50,0.50
         layer:
-        - Impassable
-        - MidImpassable
-        - LowImpassable
-        - DoorPassable
+        - ConveyorMask
         hard: False
   - type: Conveyor
   - type: DeviceNetwork