From 61df53ea82d0e46992d7a3a5275a521734e2c2ef Mon Sep 17 00:00:00 2001 From: FrameLimiter Date: Fri, 29 Dec 2017 11:17:18 -0500 Subject: [PATCH] Fixes civilian panic from civ building explosion The Civilian building explosions were not making the civilians panic. --- mods/ra/rules/civilian.yaml | 1 + mods/ra/rules/defaults.yaml | 5 ++++- mods/ra/weapons/explosions.yaml | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mods/ra/rules/civilian.yaml b/mods/ra/rules/civilian.yaml index e620dd5b09..df5e39186e 100644 --- a/mods/ra/rules/civilian.yaml +++ b/mods/ra/rules/civilian.yaml @@ -296,6 +296,7 @@ V19.Husk: -HitShape: -Health: -Explodes: + -Explodes@CIVPANIC: Interactable: BARL: diff --git a/mods/ra/rules/defaults.yaml b/mods/ra/rules/defaults.yaml index 339b073fdd..9b79024423 100644 --- a/mods/ra/rules/defaults.yaml +++ b/mods/ra/rules/defaults.yaml @@ -814,13 +814,16 @@ Actor: c3 Probability: 15 Explodes: - Weapon: CivBuildingExplosion + Weapon: SmallBuildingExplode + Explodes@CIVPANIC: + Weapon: CivPanicExplosion ^CivField: Inherits: ^CivBuilding -HitShape: -Health: -Explodes: + -Explodes@CIVPANIC: -Selectable: -SelectionDecorations: Tooltip: diff --git a/mods/ra/weapons/explosions.yaml b/mods/ra/weapons/explosions.yaml index 8f232fa238..799daa46d7 100644 --- a/mods/ra/weapons/explosions.yaml +++ b/mods/ra/weapons/explosions.yaml @@ -123,10 +123,10 @@ SmallBuildingExplode: Warhead@2Eff: CreateEffect Explosions: building, building_napalm, large_explosion, self_destruct -CivBuildingExplosion: - Inherits: SmallBuildingExplode +CivPanicExplosion: Warhead@1Dam: SpreadDamage # Used to panic civilians which are emitted from a killed CivBuilding - Spread: 64 + Falloff: 100, 100 + Range: 0, 128 Damage: 1 Delay: 1