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

ElevationModel

From ModEnc
Revision as of 18:03, 7 May 2006 by Renegade (talk | contribs)
Jump to: navigation, search
This page should correctly be named "[ElevationModel]"; it is wrong due to technical restrictions.


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.