Originally Posted by [b
Quote[/b] (GilJaysmith @ Nov. 14 2002,04:22)]Range is the range within which the shooting cursor turns green (modified by the relative height of the firing unit and the target point). If the shooting cursor is green then the unit can attempt to fire, but all that means is that the individual men start to look for targets and firing solutions.
Velocity is what determines the actual maximum range. If I remember rightly, the maximum range is the velocity squared and then divided by four, or thereabouts.
In practice we use Range to limit the firing range of projectiles which are fired at high speed: compare the stats for arrows and crossbow bolts to see this in action.
TryHigh determines whether the firer can try a plunging shot if the flat shot is blocked. (For most shots there are two firing solutions, one flat and one high, either side of 45 degrees).
The comment about minAngle and maxAngle is wrong... it says that 64 is straight up, but actually these numbers are in degrees, so 0 is flat and 90 is straight up. (We have numerous internal camera and angle systems - one comment in the source code reads "Murder on the Orientation Express" - and one of them translates a full circle into 256 units, thus 90 degrees is 64 units.)
Any other questions, fire away (ahem).
Gil ~ CA