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

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

View File

@@ -0,0 +1,15 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from cev-eris at https://github.com/discordia-space/CEV-Eris/raw/2acc4d34a894dbcc9dbf3779b696ddf296aa2c56/icons/obj/projectiles.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "large"
}
]
}