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 cost: 4
delay: 2 delay: 2
fx: EffectRCDDeconstruct2 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 - type: Destructible
thresholds: thresholds:
- trigger: - trigger:
@@ -253,6 +266,19 @@
radius: 6 radius: 6
softness: 1.1 softness: 1.1
enabled: true 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 - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic
- type: Destructible - type: Destructible

View File

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

View File

@@ -38,6 +38,19 @@
softness: 1 softness: 1
offset: "0, 0.35" offset: "0, 0.35"
- type: RotatingLight - 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 - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic
damageModifierSet: Metallic damageModifierSet: Metallic