Files
OpenRA/mods/d2k/weapons/largeguns.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

107 lines
1.8 KiB
YAML

^Cannon:
ReloadDelay: 50
Range: 4c0
Report: MEDTANK1.WAV
Projectile: Bullet
Speed: 562
Inaccuracy: 380
Image: 120mm
Warhead@1Dam: SpreadDamage
Spread: 256
Falloff: 100, 50, 25, 0
Damage: 2700
Versus:
none: 20
wall: 50
building: 50
wood: 60
heavy: 75
invulnerable: 0
cy: 20
harvester: 50
DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
Warhead@2Smu: LeaveSmudge
SmudgeType: SandCrater, RockCrater
InvalidTargets: Vehicle, Structure
Warhead@3Eff: CreateEffect
Explosions: small_napalm
ImpactActors: false
110mm_Gun:
Inherits: ^Cannon
ReloadDelay: 35
Range: 5c0
Report: TURRET1.WAV
Projectile: Bullet
Speed: 875
Blockable: false
Warhead@1Dam: SpreadDamage
Damage: 2900
80mm_A:
Inherits: ^Cannon
80mm_H:
Inherits: ^Cannon
ReloadDelay: 55
80mm_O:
Inherits: ^Cannon
ReloadDelay: 45
DevBullet:
Inherits: ^Cannon
ReloadDelay: 75
Report: TANKHVY1.WAV
Projectile: Bullet
Speed: 281
Inaccuracy: 0
Image: doubleblastbullet
Warhead@1Dam: SpreadDamage
Spread: 384
Damage: 6500
Versus:
none: 50
wall: 100
building: 75
wood: 60
heavy: 100
invulnerable: 0
cy: 40
harvester: 100
Warhead@3Eff: CreateEffect
Explosions: shockwave
ImpactSounds: EXPLMD1.WAV
155mm:
Inherits: ^Cannon
ReloadDelay: 80
Range: 5c512
Report: MORTAR1.WAV
Projectile: Bullet
Speed: 192
Blockable: false
Shadow: yes
LaunchAngle: 62
Inaccuracy: 768
ContrailLength: 20
Image: 155mm
Warhead@1Dam: SpreadDamage
Spread: 416
Falloff: 100, 65, 35, 20, 0
Damage: 4500
Versus:
none: 125
wall: 100
building: 100
wood: 70
light: 30
heavy: 20
invulnerable: 0
cy: 20
harvester: 25
DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
Warhead@3Eff: CreateEffect
Explosions: med_explosion
ImpactSounds: EXPLMD2.WAV