OpenRA / OpenRA

Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
https://www.openra.net
GNU General Public License v3.0
14.6k stars 2.66k forks source link

Convert Missile RangeLimit from ticks to WDist #10086

Closed reaperrr closed 8 years ago

reaperrr commented 8 years ago

In its current form, RangeLimit is not intuitive (when I read 'Range', I think of distance rather than time) and hard to get right on top of that (even more so now that missile speed can change during flight).

Converting it to WDist (defaulting to weapon range) would make the property name far less ambigous and the functionality much easier to control.

pchote commented 8 years ago

The issue is that it is inherently measured / used in ticks. How about we rename it to something more consistent/intuitive like FuelDuration instead?

penev92 commented 8 years ago

Problem: Would the WDist account for arks? Or will it be the distance in a straight line?

GraionDilach commented 8 years ago

In TS/Ares, RangeLimit was RangeLimit and AFAIK is measured via passed distance, including arcs.

pchote commented 8 years ago

We could accumulate the total distance by adding the current velocity times to a counter each tick.

reaperrr commented 8 years ago

Closed by #11205.