ElevationModel: Difference between revisions
No edit summary |
Appendix - Listing Applicable INI flags |
||
Line 9: | Line 9: | ||
It is not confirmed whether this bonus can be negative. | It is not confirmed whether this bonus can be negative. | ||
== Applicable INI Flags == | |||
{{Applicable INI Flags}} | |||
<onlyinclude> | |||
{{Applicable INI Flags Header|[ElevationModel]}} | |||
|- | |||
| {{Ini|Rules}} || [ElevationModel] || {{TTL|ElevationIncrement}} || int || 0 || | |||
|- | |||
| {{Ini|Rules}} || [ElevationModel] || {{TTL|ElevationIncrementBonus}} || float || 1.0 || | |||
|- | |||
| {{Ini|Rules}} || [ElevationModel] || {{TTL|ElevationBonusCap}} || float || 0.0 || | |||
|} | |||
</onlyinclude> | |||
[[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 13:01, 13 April 2008
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] | Template:TTL | int | 0 | |
Rules(md).ini | [ElevationModel] | Template:TTL | float | 1.0 | |
Rules(md).ini | [ElevationModel] | Template:TTL | float | 0.0 |