Files
OpenRA/mods/ts/weapons/missiles.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

151 lines
2.9 KiB
YAML

^DefaultMissile:
ReloadDelay: 60
Range: 6c0
MinRange: 0c512
ValidTargets: Ground, Air
Projectile: Missile
MaximumLaunchSpeed: 96
Blockable: false
Shadow: true
Inaccuracy: 128
Image: DRAGON
TrailImage: small_smoke_trail
HorizontalRateOfTurn: 8
RangeLimit: 8c0
Palette: ra
MinimumLaunchSpeed: 75
Speed: 216
Acceleration: 6
MinimumLaunchAngle: 128
MaximumLaunchAngle: 192
VerticalRateOfTurn: 11
CruiseAltitude: 2c124
AllowSnapping: true
TerrainHeightAware: true
Warhead@1Dam: SpreadDamage
Spread: 108
Falloff: 100, 50, 25, 12, 6, 3, 0
Damage: 2500
ValidTargets: Ground, Air
Versus:
None: 25
Wood: 65
Light: 75
Heavy: 100
Concrete: 60
DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
Warhead@2Eff: CreateEffect
Explosions: small_clsn
ExplosionPalette: effect-ignore-lighting-alpha75
ImpactSounds: expnew12.aud
ValidTargets: Ground, Air
Warhead@3EffWater: CreateEffect
Explosions: small_watersplash
ExplosionPalette: player
ImpactSounds: ssplash3.aud
ValidTargets: Water
InvalidTargets: Vehicle
Warhead@Smu: LeaveSmudge
SmudgeType: SmallCrater
InvalidTargets: Vehicle, Building, Wall
Bazooka:
Inherits: ^DefaultMissile
Report: rketinf1.aud
HoverMissile:
Inherits: ^DefaultMissile
ReloadDelay: 68
Burst: 2
Range: 8c0
Report: hovrmis1.aud
Projectile: Missile
RangeLimit: 11c0
Warhead@1Dam: SpreadDamage
Damage: 3000
MammothTusk:
Inherits: ^DefaultMissile
ReloadDelay: 80
Report: misl1.aud
ValidTargets: Air
Burst: 2
Projectile: Missile
HorizontalRateOfTurn: 10
RangeLimit: 9c0
Warhead@1Dam: SpreadDamage
Spread: 144
Damage: 4000
ValidTargets: Air
Versus:
None: 100
Wood: 85
Light: 70
Heavy: 35
Concrete: 28
DamageTypes: Explosion
Warhead@2Eff: CreateEffect
ImpactActors: false
Explosions: medium_twlt
ImpactSounds: expnew07.aud
InvalidImpactTypes: Water
-Warhead@3EffWater: CreateEffect
BikeMissile:
Inherits: ^DefaultMissile
Range: 5c0
Report: misl1.aud
ValidTargets: Ground
Projectile: Missile
RangeLimit: 7c0
Warhead@1Dam: SpreadDamage
Damage: 4000
ValidTargets: Ground, Air
Dragon:
Inherits: ^DefaultMissile
ReloadDelay: 50
Burst: 2
Report: misl1.aud
Warhead@1Dam: SpreadDamage
Damage: 3000
Hellfire:
Inherits: ^DefaultMissile
ReloadDelay: 50
Report: orcamis1.aud
Burst: 2
ValidTargets: Ground
Warhead@1Dam: SpreadDamage
Spread: 72
Damage: 3000
ValidTargets: Ground, Air
Versus:
None: 30
Wood: 65
Light: 150
Heavy: 100
Concrete: 30
RedEye2:
Inherits: ^DefaultMissile
ReloadDelay: 55
Range: 15c0
Report: samshot1.aud
ValidTargets: Air
Projectile: Missile
MaximumLaunchSpeed: 144
Arm: 1
HorizontalRateOfTurn: 5
RangeLimit: 25c0
Speed: 288
Warhead@1Dam: SpreadDamage
Spread: 128
Damage: 3300
ValidTargets: Air, Ground
DamageTypes: SmallExplosionDeath
Warhead@2Eff: CreateEffect
Explosions: large_grey_explosion
ImpactSounds: expnew13.aud
ImpactActors: false