Files
OpenRA/mods/ra/weapons/other.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

199 lines
3.5 KiB
YAML

^FireWeapon:
ValidTargets: Ground, Water, Trees
ReloadDelay: 65
Range: 5c0
Warhead@1Dam: SpreadDamage
Spread: 213
Damage: 15000
ValidTargets: Ground, Water, Trees
Versus:
None: 90
Wood: 50
Light: 60
Heavy: 25
Concrete: 20
DamageTypes: Prone50Percent, TriggerProne, FireDeath, Incendiary
Warhead@2Smu: LeaveSmudge
SmudgeType: Scorch
InvalidTargets: Structure, Wall
Warhead@3Eff: CreateEffect
Explosions: napalm
ImpactSounds: firebl3.aud
ImpactActors: false
FireballLauncher:
Inherits: ^FireWeapon
Burst: 2
BurstDelays: 20
Projectile: Bullet
Speed: 250
TrailImage: fb2
Image: FB1
Warhead@1Dam: SpreadDamage
Versus:
Light: 50
Flamer:
Inherits: ^FireWeapon
ReloadDelay: 50
Burst: 15
BurstDelays: 1
Projectile: Bullet
Speed: 170
TrailImage: fb4
Image: fb3
LaunchAngle: 62
Inaccuracy: 853
Warhead@1Dam: SpreadDamage
Spread: 341
Damage: 1000
Versus:
None: 70
Wood: 80
Light: 40
Heavy: 20
Concrete: 10
Warhead@3Eff: CreateEffect
Explosions: small_napalm
Napalm:
Inherits: ^FireWeapon
ReloadDelay: 20
Range: 4c512
Projectile: Bullet
Image: BOMBLET
Speed: 85
Blockable: false
Warhead@1Dam: SpreadDamage
Spread: 170
Damage: 10000
Versus:
Wood: 100
Concrete: 50
^TeslaWeapon:
ReloadDelay: 3
Range: 8c512
Report: tesla1.aud
Projectile: TeslaZap
Warhead@1Dam: SpreadDamage
Spread: 42
Damage: 10000
Versus:
None: 1000
DamageTypes: Prone50Percent, TriggerProne, ElectricityDeath
TeslaZap:
Inherits: ^TeslaWeapon
Warhead@1Dam: SpreadDamage
Versus:
Wood: 60
PortaTesla:
Inherits: ^TeslaWeapon
ReloadDelay: 70
Range: 6c0
Warhead@1Dam: SpreadDamage
Damage: 4500
Versus:
Wood: 73
Heavy: 60
TTankZap:
Inherits: ^TeslaWeapon
ReloadDelay: 120
Range: 7c0
DogJaw:
ValidTargets: Infantry
ReloadDelay: 10
Range: 3c0
Report: dogg5p.aud
Warhead@1Dam: SpreadDamage
Spread: 213
Damage: 10000
ValidTargets: Infantry
InvalidTargets: Ant
DamageTypes: DefaultDeath
Heal:
ReloadDelay: 80
Range: 4c0
Report: heal2.aud
ValidTargets: Infantry
Projectile: Bullet
Speed: 1c682
Warhead@1Dam: SpreadDamage
Spread: 213
Damage: -5000
ValidStances: Ally
ValidTargets: Infantry
DebugOverlayColor: 00FF00
Repair:
Inherits: Heal
Report: fixit1.aud
ValidTargets: Repair
Warhead@1Dam: SpreadDamage
Damage: -2000
ValidTargets: Repair
Crush:
Warhead@1Dam: SpreadDamage
Damage: 10000
DamageTypes: Prone50Percent, TriggerProne, DefaultDeath
Warhead@2Eff: CreateEffect
ImpactSounds: squishy2.aud
Demolish:
Warhead@1Dam: SpreadDamage
DamageTypes: DefaultDeath
Warhead@2Eff: CreateEffect
Explosions: building
ImpactSounds: kaboom25.aud
Claw:
ReloadDelay: 30
Range: 1c512
Projectile: Bullet
Speed: 1c682
Warhead@1Dam: SpreadDamage
Spread: 213
Damage: 3000
Versus:
None: 97
Wood: 10
Light: 30
Heavy: 10
Concrete: 10
DamageTypes: Prone50Percent, TriggerProne, DefaultDeath
Mandible:
Inherits: Claw
ReloadDelay: 10
Warhead@1Dam: SpreadDamage
Damage: 6000
Versus:
None: 90
MADTankThump:
InvalidTargets: MADTank, Infantry
Warhead@1Dam: HealthPercentageDamage
Spread: 7c0
Damage: 1
InvalidTargets: MADTank, Infantry
MADTankDetonate:
InvalidTargets: MADTank, Infantry
Warhead@1Dam: HealthPercentageDamage
Spread: 7c0
Damage: 19
InvalidTargets: MADTank, Infantry
Warhead@2Smu: LeaveSmudge
SmudgeType: Crater
Size: 7,6
Warhead@3Eff: CreateEffect
Explosions: med_explosion
ImpactSounds: mineblo1.aud
ImpactActors: false