Adds bullet collision to station lights (#34070)

Adds collision with bullets to lights
This commit is contained in:
SpaceRox1244
2025-01-05 17:11:01 -05:00
committed by GitHub
parent c536094c17
commit 6b674e73d6
3 changed files with 41 additions and 0 deletions

View File

@@ -44,6 +44,19 @@
cost: 4
delay: 2
fx: EffectRCDDeconstruct2
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.4,0.5,0.4,0.35"
density: 190
mask:
- TabletopMachineMask
layer:
- TabletopMachineLayer
- type: Destructible
thresholds:
- trigger:
@@ -253,6 +266,19 @@
radius: 6
softness: 1.1
enabled: true
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.2,0.5,0.2,0.35"
density: 190
mask:
- TabletopMachineMask
layer:
- TabletopMachineLayer
- type: Damageable
damageContainer: Inorganic
- type: Destructible

View File

@@ -29,6 +29,7 @@
layer:
- MidImpassable
- LowImpassable
- BulletImpassable
- type: PointLight
radius: 10
energy: 2.5
@@ -64,6 +65,7 @@
collection: MetalGlassBreak
- type: StaticPrice
price: 75
- type: RequireProjectileTarget
- type: entity
id: PoweredLightPostSmallEmpty

View File

@@ -38,6 +38,19 @@
softness: 1
offset: "0, 0.35"
- type: RotatingLight
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.2,0.5,0.2,0.35"
density: 190
mask:
- TabletopMachineMask
layer:
- TabletopMachineLayer
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic