ECS StunnableProjectile (#4309)

* ECS StunnableProjectile

Also renamed it to the more generic component for stunning on collision

* Reviews
This commit is contained in:
metalgearsloth
2021-07-21 19:16:38 +10:00
committed by GitHub
parent 94ef2cb66e
commit 8862028860
6 changed files with 59 additions and 49 deletions

View File

@@ -23,7 +23,7 @@
- type: Projectile
damages:
Blunt: 10
- type: StunnableProjectile
- type: StunOnCollide
- type: entity
id: PelletShotgun

View File

@@ -71,8 +71,9 @@
soundHit: /Audio/Weapons/Guns/Hits/snap.ogg
damages:
Blunt: 3
- type: StunnableProjectile
paralyzeAmount: 2
- type: StunOnCollide
stunAmount: 2
knockdownAmount: 2
# Energy projectiles
- type: entity
@@ -105,7 +106,7 @@
soundHitSpecies: "/Audio/Weapons/Guns/Hits/taser_hit.ogg"
damages:
Heat: 5
- type: StunnableProjectile
- type: StunOnCollide
stunAmount: 5
knockdownAmount: 5
@@ -175,8 +176,9 @@
- type: Projectile
deleteOnCollide: false
soundHit: /Audio/Effects/gen_hit.ogg
- type: StunnableProjectile
paralyzeAmount: 8
- type: StunOnCollide
stunAmount: 8
knockdownAmount: 8
- type: entity
id: BulletGrenadeBlast