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)
 
m (Replacing Template:TTL with Template:F.)
 
(2 intermediate revisions by 2 users not shown)
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]]
+
 
 +
== Applicable INI Flags ==
 +
 
 +
{{Applicable INI Flags}}
 +
 
 +
<onlyinclude>
 +
{{Applicable INI Flags Header|[ElevationModel]}}
 +
|-
 +
| {{Ini|Rules}} || [ElevationModel] || {{f|ElevationIncrement|link}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || [ElevationModel] || {{f|ElevationIncrementBonus|link}}  || float || 1.0 ||
 +
|-
 +
| {{Ini|Rules}} || [ElevationModel] || {{f|ElevationBonusCap|link}}  || float || 0.0 ||
 +
|}
 +
</onlyinclude>
 +
 
 +
[[Category:ElevationModel Flags| ]]
 
[[Category:Rules(md).ini Sections]]
 
[[Category:Rules(md).ini Sections]]
 
[[Category:General Editing Information]]
 
[[Category:General Editing Information]]

Latest revision as of 09:55, 27 November 2009

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.


Applicable INI Flags

These tables show all INI flags applicable1 to ElevationModel. The flags are grouped by the internal classes the flags are inherited from, and then listed in the order they are read in by the game. You can re-sort the rows by column values by clicking the arrow icons in the column headings. Each flag can be clicked to visit its page for detailed information.

Please note that this section is accurate only for Yuri's Revenge. All other C&C games use different sets of flags.

1 "Applicable" in this context means "read from the INI files". Certain flags listed here don't have any effect ingame , but they are read and in certain cases cause a crash if not present. Again, refer to each flag's individual page for detailed information.


[ElevationModel]
INI File Section Key Value Type Default Value Adds to list
Rules(md).ini [ElevationModel] ElevationIncrement int 0
Rules(md).ini [ElevationModel] ElevationIncrementBonus float 1.0
Rules(md).ini [ElevationModel] ElevationBonusCap float 0.0