Add basic meteor swarm (#4420)

* Add basic meteor swarm

* Map fixes

* Dependency cache

* Fix projectile crash

* Last of the reviews
This commit is contained in:
metalgearsloth
2021-08-23 13:28:47 +10:00
committed by GitHub
parent 92209aac9a
commit 8fa7f902a1
7 changed files with 187 additions and 2 deletions

View File

@@ -0,0 +1,39 @@
- type: entity
id: MeteorLarge
name: meteor
abstract: true
components:
- type: Sprite
noRot: false
netsync: false
sprite: Objects/Weapons/Guns/Projectiles/meteor.rsi
scale: 4,4
layers:
- state: large
shader: unshaded
- type: ExplodeOnTrigger
- type: DeleteOnTrigger
- type: TriggerOnCollide
- type: Projectile
deleteOnCollide: false
- type: Explosive
devastationRange: 3
heavyImpactRange: 5
lightImpactRange: 7
flashRange: 10
- type: Physics
bodyType: Dynamic
fixedRotation: false
fixtures:
- shape:
!type:PhysShapeCircle
radius: 0.5
mass: 200
hard: true
# Didn't use MapGrid for now as the bounds are stuffed.
layer:
- Impassable
- SmallImpassable
- VaultImpassable
mask:
- Impassable