Jump to content

ElevationModel

From ModEnc²
Revision as of 12:27, 7 May 2006 by en>DCoder (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.