Tesla Ball no longer gets kicked around by explosions. Fixes 23331. (#23377)

* Tesla Ball no longer gets kicked around by explosions. Fixes 23331.

* Remove commented block.
This commit is contained in:
J. Brown
2024-01-02 18:09:06 +00:00
committed by GitHub
parent 09c7a64da7
commit 799c22bd09

View File

@@ -4,14 +4,14 @@
components: components:
- type: Clickable - type: Clickable
- type: Physics - type: Physics
bodyType: Dynamic bodyType: KinematicController
bodyStatus: InAir bodyStatus: InAir
sleepingAllowed: false sleepingAllowed: false
- type: CanMoveInAir - type: CanMoveInAir
- type: ChasingWalk - type: ChasingWalk
minSpeed: 1 minSpeed: 1
maxSpeed: 3 maxSpeed: 3
chasingComponent: chasingComponent:
- type: LightningTarget - type: LightningTarget
- type: AmbientSound - type: AmbientSound
volume: 3 volume: 3
@@ -29,14 +29,14 @@
shootMinInterval: 4 shootMinInterval: 4
shootMaxInterval: 10 shootMaxInterval: 10
shootRange: 3 shootRange: 3
lightningPrototype: Lightning lightningPrototype: Lightning
- type: entity - type: entity
id: TeslaEnergyBall id: TeslaEnergyBall
parent: BaseEnergyBall parent: BaseEnergyBall
name: ball lightning name: ball lightning
description: A giant ball of pure energy. The space around it is humming and melting. description: A giant ball of pure energy. The space around it is humming and melting.
components: components:
- type: Fixtures - type: Fixtures
fixtures: fixtures:
EventHorizonCollider: EventHorizonCollider:
@@ -45,7 +45,7 @@
radius: 0.55 radius: 0.55
hard: true hard: true
restitution: 0.8 restitution: 0.8
density: 99999 # to do: remove the interaction with the explosions. Now the explosions can push the Tesla very far away from the station. density: 99999
mask: mask:
- Opaque - Opaque
layer: layer:
@@ -64,10 +64,10 @@
canBreachContainment: false canBreachContainment: false
colliderFixtureId: EventHorizonCollider colliderFixtureId: EventHorizonCollider
consumerFixtureId: EventHorizonConsumer consumerFixtureId: EventHorizonConsumer
consumeTiles: false consumeTiles: false
consumeEntities: false consumeEntities: false
- type: TeslaEnergyBall - type: TeslaEnergyBall
spawnProto: TeslaMiniEnergyBall spawnProto: TeslaMiniEnergyBall
- type: LightningArcShooter - type: LightningArcShooter
arcDepth: 3 arcDepth: 3
maxLightningArc: 4 maxLightningArc: 4
@@ -92,7 +92,7 @@
layers: layers:
- state: energy_ball - state: energy_ball
- type: EmitSoundOnSpawn - type: EmitSoundOnSpawn
sound: sound:
path: /Audio/Effects/tesla_collapse.ogg path: /Audio/Effects/tesla_collapse.ogg
params: params:
variation: 0.3 variation: 0.3
@@ -102,16 +102,16 @@
interactFailureString: petting-failure-tesla interactFailureString: petting-failure-tesla
interactSuccessSpawn: EffectHearts interactSuccessSpawn: EffectHearts
- type: entity - type: entity
id: TeslaMiniEnergyBall id: TeslaMiniEnergyBall
parent: BaseEnergyBall parent: BaseEnergyBall
name: mini ball lightning name: mini ball lightning
description: The cub of a destructive energy cage. Not as dangerous, but still not worth touching with bare hands. description: The cub of a destructive energy cage. Not as dangerous, but still not worth touching with bare hands.
components: components:
- type: ChasingWalk - type: ChasingWalk
minSpeed: 2 minSpeed: 2
maxSpeed: 3 maxSpeed: 3
chasingComponent: chasingComponent:
- type: TeslaEnergyBall - type: TeslaEnergyBall
- type: Fixtures - type: Fixtures
fixtures: fixtures: