Add support for multiple impact sounds to CreateEffectWarhead

Have the engine pick one impact sound at random from the provided list.
This commit is contained in:
Pavel Penev
2016-01-02 16:48:45 +02:00
parent 7e3ec91d30
commit 489ee9fc54
31 changed files with 202 additions and 196 deletions

View File

@@ -27,7 +27,7 @@ Debris:
SmudgeType: SandCrater
Warhead@3Eff: CreateEffect
Explosions: small_explosion
ImpactSound: EXPLLG5.WAV
ImpactSounds: EXPLLG5.WAV
Debris2:
ReloadDelay: 60
@@ -61,7 +61,7 @@ Debris2:
SmudgeType: SandCrater
Warhead@3Eff: CreateEffect
Explosions: med_explosion
ImpactSound: EXPLLG5.WAV
ImpactSounds: EXPLLG5.WAV
Debris3:
ReloadDelay: 60
@@ -95,7 +95,7 @@ Debris3:
SmudgeType: SandCrater
Warhead@3Eff: CreateEffect
Explosions: med_explosion
ImpactSound: EXPLLG5.WAV
ImpactSounds: EXPLLG5.WAV
Debris4:
ReloadDelay: 60
@@ -129,4 +129,4 @@ Debris4:
SmudgeType: SandCrater
Warhead@3Eff: CreateEffect
Explosions: large_explosion
ImpactSound: EXPLLG5.WAV
ImpactSounds: EXPLLG5.WAV

View File

@@ -26,7 +26,7 @@
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: small_napalm
ImpactSound: EXPLSML4.WAV
ImpactSounds: EXPLSML4.WAV
80mm_A:
ReloadDelay: 50
@@ -132,7 +132,7 @@ DevBullet:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: shockwave
ImpactSound: EXPLMD1.WAV
ImpactSounds: EXPLMD1.WAV
155mm:
ReloadDelay: 80
@@ -163,4 +163,4 @@ DevBullet:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: med_explosion
ImpactSound: EXPLMD2.WAV
ImpactSounds: EXPLMD2.WAV

View File

@@ -29,7 +29,7 @@ Bazooka:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: tiny_explosion
ImpactSound: EXPLSML1.WAV
ImpactSounds: EXPLSML1.WAV
Rocket:
ReloadDelay: 30
@@ -62,7 +62,7 @@ Rocket:
Warhead@3Eff: CreateEffect
Explosions: rocket_explosion
ExplosionPalette: effect75alpha
ImpactSound: EXPLSML1.WAV
ImpactSounds: EXPLSML1.WAV
TowerMissile:
ReloadDelay: 60
@@ -101,7 +101,7 @@ TowerMissile:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: small_explosion
ImpactSound: EXPLSML1.WAV
ImpactSounds: EXPLSML1.WAV
mtank_pri:
ReloadDelay: 115
@@ -139,7 +139,7 @@ mtank_pri:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: small_explosion
ImpactSound: EXPLSML1.WAV
ImpactSounds: EXPLSML1.WAV
DeviatorMissile:
ReloadDelay: 160
@@ -178,7 +178,7 @@ DeviatorMissile:
Explosions: deviator
ExplosionPalette: deviatorgas
UsePlayerPalette: true
ImpactSound: EXPLSML1.WAV
ImpactSounds: EXPLSML1.WAV
Warhead@4OwnerChange: ChangeOwner
Range: 256
Duration: 375

View File

@@ -92,21 +92,21 @@ OrniBomb:
SmudgeType: Crater
Warhead@3Eff: CreateEffect
Explosions: large_explosion
ImpactSound: NAPALM1.WAV
ImpactSounds: NAPALM1.WAV
Crush:
Warhead@1Dam: SpreadDamage
Damage: 100
DamageTypes: ExplosionDeath
Warhead@2Eff: CreateEffect
ImpactSound: CRUSH1.WAV
ImpactSounds: CRUSH1.WAV
Demolish:
Warhead@1Dam: SpreadDamage
DamageTypes: ExplosionDeath
Warhead@2Eff: CreateEffect
Explosions: building
ImpactSound: EXPLLG2.WAV
ImpactSounds: EXPLLG2.WAV
Atomic:
Warhead@1Dam: SpreadDamage
@@ -126,7 +126,7 @@ Atomic:
DamageTypes: Prone50Percent, TriggerProne, SoundDeath
Warhead@2Eff: CreateEffect
Explosions: nuke
ImpactSound: EXPLLG2.WAV
ImpactSounds: EXPLLG2.WAV
CrateNuke:
Warhead@1Dam: SpreadDamage
@@ -147,7 +147,7 @@ CrateNuke:
DamageTypes: Prone50Percent, TriggerProne, SoundDeath
Warhead@2Eff: CreateEffect
Explosions: nuke
ImpactSound: EXPLLG2.WAV
ImpactSounds: EXPLLG2.WAV
CrateExplosion:
Warhead@1Dam: SpreadDamage
@@ -168,22 +168,22 @@ CrateExplosion:
DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
Warhead@2Eff: CreateEffect
Explosions: large_explosion
ImpactSound: EXPLSML4.WAV
ImpactSounds: EXPLSML4.WAV
UnitExplodeSmall:
Warhead@1Eff: CreateEffect
Explosions: self_destruct
ImpactSound: EXPLSML1.WAV
ImpactSounds: EXPLSML1.WAV
UnitExplodeMed:
Warhead@1Eff: CreateEffect
Explosions: building
ImpactSound: EXPLSML2.WAV
ImpactSounds: EXPLSML2.WAV
UnitExplodeLarge:
Warhead@1Eff: CreateEffect
Explosions: large_explosion
ImpactSound: EXPLLG2.WAV
ImpactSounds: EXPLLG2.WAV
grenade:
ReloadDelay: 50
@@ -212,7 +212,7 @@ grenade:
SmudgeType: SandCrater
Warhead@3Eff: CreateEffect
Explosions: med_explosion
ImpactSound: EXPLLG5.WAV
ImpactSounds: EXPLLG5.WAV
Weathering:
ReloadDelay: 100
@@ -237,7 +237,7 @@ GrenDeath:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: building
ImpactSound: EXPLSML4.WAV
ImpactSounds: EXPLSML4.WAV
SardDeath:
Warhead@1Dam: SpreadDamage
@@ -258,7 +258,7 @@ SardDeath:
SmudgeType: SandCrater, RockCrater
Warhead@3Eff: CreateEffect
Explosions: small_napalm
ImpactSound: EXPLSML2.WAV
ImpactSounds: EXPLSML2.WAV
SpiceExplosion:
Projectile: Bullet

View File

@@ -43,7 +43,7 @@ Fremen_S:
DamageTypes: Prone50Percent, TriggerProne, BulletDeath
Warhead@2Eff: CreateEffect
Explosions: small_explosion
ImpactSound: EXPLSML2.WAV
ImpactSounds: EXPLSML2.WAV
M_LMG:
ReloadDelay: 40