ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

ElevationModel

From ModEnc
Revision as of 12:27, 7 May 2006 by DCoder (talk | contribs) (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Projectiles that have SubjectToElevation=yes will gain a range bonus when there is a height difference between the firer and the target. This section controls that bonus, which is calculated like this (pseudocode):

NumberOfBonuses = (FirerPositionHeight - TargetPositionHeight) / ElevationIncrement;
if NumberOfBonuses > ElevationBonusCap
 then NumberOfBonuses = ElevationBonusCap;
RangeBonus = NumberOfBonuses * ElevationIncrementBonus;

It is not confirmed whether this bonus can be negative.