Fix barriers not working (#19774)

This commit is contained in:
DrSmugleaf
2023-09-04 15:33:40 -07:00
committed by GitHub
parent e4ca6f4fb9
commit 0527d2e719
5 changed files with 89 additions and 58 deletions

View File

@@ -5,6 +5,7 @@
parent: BaseStructure
components:
- type: Transform
anchored: false
noRot: true
- type: Sprite
sprite: Objects/Specific/Security/barrier.rsi
@@ -24,21 +25,26 @@
canCollide: false
- type: Fixtures
fixtures:
fix1:
base:
shape:
!type:PhysShapeCircle
radius: 0.45
density: 75
mask:
- MachineMask
barrier:
shape:
!type:PhysShapeCircle
radius: 0.45
layer:
- WallLayer
- type: DeployableBarrier
fixture: barrier
- type: AccessReader
access: [["Security"]]
- type: Lock
locked: false
lockOnClick: true # toggle lock just by clicking on barrier
- type: DeployableBarrier
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic