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

Difference between revisions of "ElevationModel"

From ModEnc
Jump to: navigation, search
(Created)
(No difference)

Revision as of 12:27, 7 May 2006

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.