Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Artillery prediction fix #374

@wzdev-ci

Description

@wzdev-ci

resolution_fixed type_bug | by Adam Olsen <rhamph+warzone@...>


The target prediction code assumes all projectiles use a constant speed. Normally this is true, but artillery varies its speed to maintain a ballistic trajectory at longer ranges.

This patch uses sqrt(dist)/30 as a flight time predictor. This is totally a guess and a bodge, but seems fairly effective.

The prediction is still fairly naïve in a number of ways:

  • slight turning motions throw it out
  • slight hills throw it out, due to speed changes
  • despite hills affecting speed, it doesn't actually aim any higher, so it can quite easily miss a unit climbing a steep hill

Issue migrated from trac:374 at 2022-04-15 18:08:07 -0700

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions