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)
 
Line 1: Line 1:
 +
{{WrongTitle|[{{PAGENAME}}]}}
 +
 
Projectiles that have <tt>[[SubjectToElevation]]=yes</tt> 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):
 
Projectiles that have <tt>[[SubjectToElevation]]=yes</tt> 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):
  
Line 8: Line 10:
 
It is not confirmed whether this bonus can be negative.
 
It is not confirmed whether this bonus can be negative.
  
[[Category:ElevationModel Flags]]
+
[[Category:ElevationModel Flags| ]]
 
[[Category:Rules(md).ini Sections]]
 
[[Category:Rules(md).ini Sections]]
 
[[Category:General Editing Information]]
 
[[Category:General Editing Information]]

Revision as of 18:03, 7 May 2006

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.