From bc9cd57fa060d81ac2fdce6719c94588ff3b9f0a Mon Sep 17 00:00:00 2001 From: VonNah Date: Mon, 28 Dec 2020 19:09:32 +0100 Subject: [PATCH] Fix vehicle explosion and missile impact sounds in Tiberian Dawn --- mods/cnc/rules/vehicles.yaml | 15 +++++++++++++++ mods/cnc/weapons/explosions.yaml | 22 ++++++++++++++++++++-- mods/cnc/weapons/missiles.yaml | 3 +++ 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/mods/cnc/rules/vehicles.yaml b/mods/cnc/rules/vehicles.yaml index 519b7c3cd4..dc59740f36 100644 --- a/mods/cnc/rules/vehicles.yaml +++ b/mods/cnc/rules/vehicles.yaml @@ -80,6 +80,9 @@ HARV: EffectiveOwnerFromOwner: true WithHarvestAnimation: WithDockingAnimation: + Explodes@EMPTY: + Weapon: UnitExplodeHarvEmpty + EmptyWeapon: UnitExplodeHarvEmpty Explodes: RequiresCondition: !no-tiberium Weapon: TiberiumExplosion @@ -160,6 +163,9 @@ APC: Types: Infantry MaxWeight: 5 LoadingCondition: notmobile + Explodes: + Weapon: UnitExplodeBig + EmptyWeapon: UnitExplodeBig SpawnActorOnDeath: Actor: APC.Husk OwnerType: InternalName @@ -454,6 +460,9 @@ MTNK: AttackTurreted: WithMuzzleOverlay: WithSpriteTurret: + Explodes: + Weapon: UnitExplodeBig + EmptyWeapon: UnitExplodeBig SpawnActorOnDeath: Actor: MTNK.Husk OwnerType: InternalName @@ -512,6 +521,9 @@ HTNK: Delay: 10 StartIfBelow: 50 DamageCooldown: 200 + Explodes: + Weapon: UnitExplodeMech + EmptyWeapon: UnitExplodeMech SpawnActorOnDeath: Actor: HTNK.Husk OwnerType: InternalName @@ -560,6 +572,9 @@ MSAM: TargetFrozenActors: True ForceFireIgnoresActors: True WithSpriteTurret: + Explodes: + Weapon: UnitExplodeMech + EmptyWeapon: UnitExplodeMech SpawnActorOnDeath: Actor: MSAM.Husk OwnerType: InternalName diff --git a/mods/cnc/weapons/explosions.yaml b/mods/cnc/weapons/explosions.yaml index f7a57f9a23..0d96dfdaa0 100644 --- a/mods/cnc/weapons/explosions.yaml +++ b/mods/cnc/weapons/explosions.yaml @@ -33,7 +33,7 @@ FlametankExplode: DamageTypes: Prone50Percent, TriggerProne, FireDeath Warhead@2Eff: CreateEffect Explosions: big_napalm - ImpactSounds: xplobig6.aud + ImpactSounds: flamer2.aud Warhead@3Smu: LeaveSmudge SmudgeType: Scorch @@ -74,8 +74,26 @@ UnitExplodeSmall: Explosions: big_frag ImpactSounds: xplobig4.aud +UnitExplodeBig: + Inherits: ^DamagingExplosionHE + Warhead@2Eff: CreateEffect + Explosions: big_frag + ImpactSounds: xplobig6.aud + +UnitExplodeMech: + Inherits: ^DamagingExplosionHE + Warhead@2Eff: CreateEffect + Explosions: poof + ImpactSounds: xplosml2.aud + +UnitExplodeHarvEmpty: + Inherits: ^DamagingExplosionHE + Warhead@2Eff: CreateEffect + Explosions: building + ImpactSounds: xplos.aud + UnitExplodeStealthTank: - Inherits: UnitExplodeSmall + Inherits: UnitExplodeBig Warhead@1Dam: SpreadDamage InvalidTargets: StealthTank diff --git a/mods/cnc/weapons/missiles.yaml b/mods/cnc/weapons/missiles.yaml index 39a49e3692..ee243ff201 100644 --- a/mods/cnc/weapons/missiles.yaml +++ b/mods/cnc/weapons/missiles.yaml @@ -130,6 +130,7 @@ MammothMissiles: Heavy: 44 Warhead@3Eff: CreateEffect Explosions: small_poof + ImpactSounds: xplobig4.aud Warhead@4EffAir: CreateEffect Explosions: small_building @@ -164,6 +165,7 @@ MammothMissiles: Heavy: 48 Warhead@3Eff: CreateEffect Explosions: med_frag + ImpactSounds: xplobig4.aud 227mm.stnk: Inherits: ^MissileWeapon @@ -214,6 +216,7 @@ BoatMissile: DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath Warhead@3Eff: CreateEffect Explosions: small_poof + ImpactSounds: xplobig4.aud Warhead@4EffAir: CreateEffect Explosions: small_building