From ad3caf7e00922aff40e79b8d3625e3a3cf076f63 Mon Sep 17 00:00:00 2001 From: JovialFeline Date: Wed, 5 Mar 2025 10:17:01 -0500 Subject: [PATCH] Add explosion effects to RA bridges --- mods/ra/rules/civilian.yaml | 11 +++++++++++ mods/ra/rules/defaults.yaml | 10 ++++++++++ mods/ra/weapons/explosions.yaml | 6 ++++++ 3 files changed, 27 insertions(+) diff --git a/mods/ra/rules/civilian.yaml b/mods/ra/rules/civilian.yaml index 5c1773cd92..d329f7154b 100644 --- a/mods/ra/rules/civilian.yaml +++ b/mods/ra/rules/civilian.yaml @@ -564,6 +564,7 @@ OILB: BR1: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 235 DamagedTemplate: 236 @@ -583,6 +584,7 @@ BR1: BR2: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 238 DamagedTemplate: 239 @@ -602,6 +604,7 @@ BR2: BR3: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Long: true ShorePieces: br1,br2 @@ -616,6 +619,7 @@ BR3: BRIDGE1: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 131 DamagedTemplate: 378 @@ -634,6 +638,7 @@ BRIDGE1: BRIDGE2: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 133 DamagedTemplate: 379 @@ -652,6 +657,7 @@ BRIDGE2: BRIDGE3: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 620 DamagedTemplate: 621 @@ -670,6 +676,7 @@ BRIDGE3: BRIDGE4: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 624 DamagedTemplate: 625 @@ -688,6 +695,7 @@ BRIDGE4: SBRIDGE1: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 520 DamagedTemplate: 521 @@ -706,6 +714,7 @@ SBRIDGE1: SBRIDGE2: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 531 DamagedTemplate: 532 @@ -724,6 +733,7 @@ SBRIDGE2: SBRIDGE3: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 523 DamagedTemplate: 524 @@ -737,6 +747,7 @@ SBRIDGE3: SBRIDGE4: Inherits: ^Bridge + Inherits@EXPLOSIVE: ^ExplosiveBridge Bridge: Template: 527 DamagedTemplate: 528 diff --git a/mods/ra/rules/defaults.yaml b/mods/ra/rules/defaults.yaml index a8da822832..a5291550af 100644 --- a/mods/ra/rules/defaults.yaml +++ b/mods/ra/rules/defaults.yaml @@ -1151,6 +1151,16 @@ Duration: 15 Intensity: 6 +^ExplosiveBridge: + ExplosionOnDamageTransition@DAMAGED: + DamageState: Heavy + Weapon: BridgeExplode + ExplosionOnDamageTransition@COLLAPSED: + DamageState: Dead + Weapon: BridgeExplode + SoundOnDamageTransition: + DestroyedSounds: crmble2.aud + ^Rock: Inherits@1: ^SpriteActor Interactable: diff --git a/mods/ra/weapons/explosions.yaml b/mods/ra/weapons/explosions.yaml index 04158d3bc7..b8f4328888 100644 --- a/mods/ra/weapons/explosions.yaml +++ b/mods/ra/weapons/explosions.yaml @@ -184,6 +184,12 @@ BarrelCluster: Warhead@Smu: LeaveSmudge SmudgeType: Scorch +BridgeExplode: + Inherits: VisualExplode + Warhead@2Eff: CreateEffect + Explosions: large_napalm + ValidTargets: Bridge, Ground, Water + ATMine: ValidTargets: Ground, Water, GroundActor, WaterActor Warhead@1Dam: SpreadDamage