Files
OpenRA/mods/ra/weapons/explosions.yaml
Alexis Hunt 08ad7d7f4e Refactor handling of hit radii in projectiles.
penev discovered that the RulesetLoaded functions of projectiles were
never being called, meaning that their blocking calculations were not
properly accounting for actors with large hitboxes.

The best fix for this is to change FindActorsOnLine to always account
for the largest actor's hit radius, rather than forcing callers to pass
the largest radius. Per the comment in Util.cs, as a result, move this
computation to ActorMap. I decided to simplify by not making a separate
calculation for actors that block projectiles only; this may cause a
small performance degradation as the search space is a bit larger.

Similarly to this, I've removed the ability to specify a search radius
manually. Because this is only a search radius, setting a value smaller
than the largest eligible actor makes no sense; that would lead to
completely inconsistent blocking. Setting a larger value, on the other
hand, would make no difference.

CreateEffectWarhead was the only place in core code any of these search
radii were set, and that's because 0 was a mysterious magic value that
made the warhead incapable of hitting actors. I replaced it with a
boolean flag that more clearly indicates the actual behaviour.

Fixes #14151.
2018-02-21 23:26:41 +01:00

323 lines
7.6 KiB
YAML

^Explosion:
ValidTargets: Ground, Water, Air
Warhead@1Dam: SpreadDamage
Spread: 426
Damage: 5000
Versus:
None: 90
Wood: 75
Light: 60
Heavy: 25
Concrete: 100
DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
Warhead@Smu: LeaveSmudge
SmudgeType: Crater
InvalidTargets: Structure, Wall, Trees
Warhead@2Eff: CreateEffect
Explosions: self_destruct
ImpactSounds: kaboom22.aud
ValidTargets: Ground, Air, Ship, Trees
Warhead@3EffWater: CreateEffect
Explosions: large_splash
ImpactSounds: splash9.aud
ValidTargets: Water, Underwater
InvalidTargets: Ship, Structure, Bridge
CrateNapalm:
Inherits: ^Explosion
ValidTargets: Ground, Trees
Warhead@1Dam: SpreadDamage
Spread: 170
Damage: 6000
Falloff: 1000, 368, 135, 50, 18, 7, 0
ValidTargets: Ground, Trees
Versus:
Wood: 100
Concrete: 50
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@2Eff: CreateEffect
Explosions: napalm
ImpactSounds: firebl3.aud
ValidTargets: Ground, Water, Air, Trees
-Warhead@3EffWater: CreateEffect
Warhead@Smu: LeaveSmudge
SmudgeType: Scorch
CrateExplosion:
Inherits: ^Explosion
Warhead@1Dam: SpreadDamage
Falloff: 1000, 368, 135, 50, 18, 7, 0
AffectsParent: true
Warhead@2Eff: CreateEffect
ValidTargets: Ground, Water, Air
-Warhead@3EffWater: CreateEffect
UnitExplode:
Inherits: ^Explosion
Warhead@1Dam: SpreadDamage
Falloff: 1000, 368, 135, 50, 18, 7, 0
UnitExplodePlane:
Inherits: UnitExplode
Warhead@2Eff: CreateEffect
Explosions: large_napalm
UnitExplodeHeli:
Inherits: UnitExplode
Warhead@2Eff: CreateEffect
Explosions: napalm
VisualExplode:
Inherits: ^Explosion
-Warhead@1Dam: SpreadDamage
Warhead@2Eff: CreateEffect
Explosions: offseted_napalm
ImpactSounds: firebl3.aud
UnitExplodeShip:
Inherits: ^Explosion
-Warhead@Smu: LeaveSmudge
Warhead@2Eff: CreateEffect
Explosions: building
ImpactSounds: kaboom25.aud
ValidTargets: Ground, Water
UnitExplodeSubmarine:
Inherits: ^Explosion
-Warhead@Smu: LeaveSmudge
Warhead@2Eff: CreateEffect
Explosions: large_splash
ImpactSounds: splash9.aud
ValidTargets: Ground, Water
UnitExplodeSmall:
Inherits: ^Explosion
Warhead@1Dam: SpreadDamage
Damage: 4000
Warhead@2Eff: CreateEffect
Explosions: large_explosion
ImpactSounds: kaboom15.aud
ArtilleryExplode:
Inherits: ^Explosion
Warhead@1Dam: SpreadDamage
Damage: 15000
Warhead@2Eff: CreateEffect
Explosions: self_destruct
ImpactSounds: kaboom22.aud
V2Explode:
Inherits: SCUD
-Report:
BuildingExplode:
Warhead@2Eff: CreateEffect
Explosions: building, building_napalm, large_explosion, self_destruct, large_napalm
Warhead@Smu: LeaveSmudge
SmudgeType: Crater
InvalidTargets: Wall, Trees
SmallBuildingExplode:
Inherits: BuildingExplode
Warhead@2Eff: CreateEffect
Explosions: building, building_napalm, large_explosion, self_destruct
CivPanicExplosion:
Warhead@1Dam: SpreadDamage # Used to panic civilians which are emitted from a killed CivBuilding
Falloff: 100, 100
Range: 0, 128
Damage: 1
Delay: 1
BarrelExplode:
Inherits: ^Explosion
Warhead@1Dam: SpreadDamage
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 5
ValidTargets: Ground, Trees
Versus:
None: 120
Wood: 100
Light: 50
Concrete: 10
DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath, Incendiary
Warhead@2Eff: CreateEffect
Explosions: napalm
ImpactSounds: firebl3.aud
Delay: 5
-Warhead@3EffWater: CreateEffect
Warhead@Smu: LeaveSmudge
SmudgeType: Scorch
Size: 2
Delay: 5
ATMine:
Warhead@1Dam: SpreadDamage
Spread: 256
Damage: 40000
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, DefaultDeath
Warhead@2Eff: CreateEffect
Explosions: large_explosion
ImpactSounds: mineblo1.aud
Warhead@Smu: LeaveSmudge
SmudgeType: Crater
InvalidTargets: Structure, Wall, Trees
APMine:
Inherits: ATMine
Warhead@1Dam: SpreadDamage
DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
Warhead@2Eff: CreateEffect
Explosions: napalm
ImpactSounds: mine1.aud
Warhead@Smu: LeaveSmudge
SmudgeType: Scorch
OreExplosion:
Warhead@1Dam: SpreadDamage
Spread: 9
Damage: 1000
Versus:
None: 90
Wood: 70
Light: 60
Heavy: 20
DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
Warhead@3Res: CreateResource
AddsResourceType: Ore
Size: 1,1
Warhead@2Eff: CreateEffect
Explosions: med_explosion
ImpactSounds: kaboom25.aud
CrateNuke:
ValidTargets: Ground, Trees, Water, Air
Warhead@1Dam_impact: SpreadDamage
Spread: 1c0
Damage: 10000
Falloff: 1000, 368, 135, 50, 18, 7, 0
ValidTargets: Ground, Trees, Water, Air
Versus:
Concrete: 25
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@2Res_impact: DestroyResource
Warhead@3Eff_impact: CreateEffect
Explosions: nuke
ImpactSounds: kaboom1.aud
ImpactActors: false
Warhead@4Dam_areanuke1: SpreadDamage
Spread: 1c0
Damage: 6000
Falloff: 1000, 600, 400, 250, 150, 100, 0
Delay: 5
ValidTargets: Ground, Water, Air
Versus:
Concrete: 25
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@5Res_areanuke1: DestroyResource
Size: 4
Delay: 5
Warhead@6Eff_areanuke1: CreateEffect
ImpactSounds: kaboom22.aud
Delay: 5
ImpactActors: false
Warhead@6Smu_areanuke1: LeaveSmudge
SmudgeType: Scorch
InvalidTargets: Vehicle, Structure, Wall, Trees
Size: 4
Delay: 5
Warhead@TREEKILL: SpreadDamage
Spread: 1c0
Damage: 12000
Falloff: 1000, 600, 400, 250, 150, 100, 0
Delay: 5
ValidTargets: Trees
DamageTypes: Incendiary
MiniNuke:
ValidTargets: Ground, Trees, Water, Underwater, Air
Warhead@1Dam_impact: SpreadDamage
Spread: 1c0
Damage: 15000
Falloff: 1000, 368, 135, 50, 18, 7, 0
ValidTargets: Ground, Trees, Water, Air
Versus:
Wood: 25
Concrete: 25
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@2Res_impact: DestroyResource
Size: 1
Warhead@3Eff_impact: CreateEffect
Explosions: nuke
ImpactSounds: kaboom1.aud
ImpactActors: false
Warhead@4Dam_areanuke1: SpreadDamage
Spread: 2c0
Damage: 6000
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 5
ValidTargets: Ground, Trees, Water, Underwater, Air
Versus:
Wood: 50
Concrete: 25
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@5Res_areanuke1: DestroyResource
Size: 2
Delay: 5
Warhead@6Eff_areanuke1: CreateEffect
ImpactSounds: kaboom22.aud
Delay: 5
ImpactActors: false
Warhead@7Dam_areanuke2: SpreadDamage
Spread: 3c0
Damage: 6000
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 10
ValidTargets: Ground, Water, Underwater, Air
Versus:
Wood: 50
Concrete: 25
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@8Dam_areanuke2: SpreadDamage
Spread: 3c0
Damage: 12000
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 10
ValidTargets: Trees
DamageTypes: Incendiary
Warhead@9Res_areanuke2: DestroyResource
Size: 3
Delay: 10
Warhead@10Dam_areanuke3: SpreadDamage
Spread: 4c0
Damage: 6000
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 15
ValidTargets: Ground, Water, Underwater
Versus:
Concrete: 25
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@11Dam_areanuke3: SpreadDamage
Spread: 4c0
Damage: 18000
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 15
ValidTargets: Trees
DamageTypes: Incendiary
Warhead@12Res_areanuke3: DestroyResource
Size: 4
Delay: 15
Warhead@13Smu_areanuke3: LeaveSmudge
SmudgeType: Scorch
InvalidTargets: Vehicle, Structure, Wall, Trees
Size: 4
Delay: 15