ElevationModel: Difference between revisions
Appendix - Listing Applicable INI flags |
EvilRenegade (talk | contribs) m Replacing Template:TTL with Template:F. |
||
Line 18: | Line 18: | ||
{{Applicable INI Flags Header|[ElevationModel]}} | {{Applicable INI Flags Header|[ElevationModel]}} | ||
|- | |- | ||
| {{Ini|Rules}} || [ElevationModel] || {{ | | {{Ini|Rules}} || [ElevationModel] || {{f|ElevationIncrement|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Rules}} || [ElevationModel] || {{ | | {{Ini|Rules}} || [ElevationModel] || {{f|ElevationIncrementBonus|link}} || float || 1.0 || | ||
|- | |- | ||
| {{Ini|Rules}} || [ElevationModel] || {{ | | {{Ini|Rules}} || [ElevationModel] || {{f|ElevationBonusCap|link}} || float || 0.0 || | ||
|} | |} | ||
</onlyinclude> | </onlyinclude> |
Latest revision as of 07:55, 27 November 2009
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.
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 |