UseOwnName: Difference between revisions
Nighthawk200 (talk | contribs) m Template Updated |
Adding pseudocode/needs transcribing, fixing up flag template |
||
Line 1: | Line 1: | ||
{{flag| | {{flag | ||
|files={{categ|ini=rules}} | |||
|values={{values|boolean}} | |||
|default=false | |||
|types={{Categ|InfantryTypes}} | |||
|yr=yes | |||
|rp=yes}} | |||
If an InfantryType is inside a VehicleType with 'Gunner=yes' set, then the name of the VehicleType will change depending on several rules. Given that there is only one VehicleType in the game with 'Gunner=yes' set, we will assume that we are working with the VehicleType known as the "IFV". | If an InfantryType is inside a VehicleType with 'Gunner=yes' set, then the name of the VehicleType will change depending on several rules. Given that there is only one VehicleType in the game with 'Gunner=yes' set, we will assume that we are working with the VehicleType known as the "IFV". | ||
If your VehicleType is not called "IFV", then substitute the string "IFV" in the following examples with the 'UIName=' of your VehicleType. | If your VehicleType is not called "IFV", then substitute the string "IFV" in the following examples with the 'UIName=' of your VehicleType. | ||
Line 61: | Line 68: | ||
All other tooltips are built using the units' UIName= entry. | All other tooltips are built using the units' UIName= entry. | ||
{{SourceCode|http://dc.strategy-x.com/src2/UnitClass/GetUIName.cpp|tr=yes}} | |||
Revision as of 18:44, 9 June 2008
Flag: | UseOwnName |
File(s): | rules(md).ini |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Default: | false |
Applicable to: | InfantryTypes |
If an InfantryType is inside a VehicleType with 'Gunner=yes' set, then the name of the VehicleType will change depending on several rules. Given that there is only one VehicleType in the game with 'Gunner=yes' set, we will assume that we are working with the VehicleType known as the "IFV". If your VehicleType is not called "IFV", then substitute the string "IFV" in the following examples with the 'UIName=' of your VehicleType.
IFV with no passenger is called "IFV"
IFV whose passenger has 'UseOwnName=true' set is called "<passenger> IFV" (where <passenger> is the 'UIName=' of the passenger).
If the passenger has 'UseOwnName=false' set (default) then the following rules apply:
- A) If the passenger's IFVMode weapon turret is turret index 0, then the IFV will be called "Rocket IFV"
- B) If the passenger's IFVMode weapon turret is turret index 1, then the IFV will be called "Machine Gun IFV"
- C) If the passenger's IFVMode weapon turret is turret index 2, then the IFV will be called "Repair IFV"
- D) If the passenger's IFVMode weapon turret is turret index 3 (or higher), then the IFV will be called "<passenger> IFV" (where <passenger> is the 'UIName=' of the passenger).
Note: Higher than 3 has not actually been confirmed. If someone tests this then please ammend this page.
Inconsistencies in Yuri's Revenge:
In Yuri's Revenge, there are some inconsistencies with the use of 'UseOwnName='
- IFVMode 2 (machine gun A, turret 1) is used by GI, Conscript and Spy. "Machine Gun IFV"
- IFVMode 4 (machine gun B, turret 1) is used by SEAL, Tanya, Boris. "<passenger> IFV"
- IFVMode 4 (machine gun B, turret 1) is used by Chrono Commando, Psi Commando. "Machine Gun IFV"
Chrono Commando and Psi Commando do not have 'UseOwnName=true' set. I believe they should.
- IFVMode 3 (flak weapon, turret 1) is used by Flak Trooper. "Machine Gun IFV"
I believe that the Flak Trooper should also have 'UseOwnName=true' set.
Both of the above inconsistencies are dealt with in the YR Unofficial 1.002 Mini-Patch.
VehicleTypes as IFV passengers:
The IFV naming system does not work with VehicleTypes. Whilst VehicleTypes can transform the IFV's turret and weapon, the IFV's tooltip will remain as "Rocket IFV".
Before you waste your time, I'll tell you now that you can't solve the problem by rearranging turrets or modifying the string table (leastways, I have tried for several hours without success).
Some people have asked what the string table entries are for the tooltips. Since it's kind of related to this I'll tell you:
tip:machinegun="Machine Gun" (as in "Machine Gun IFV")
tip:repair="Repair" (as in "Repair IFV")
tip:rocket="Rocket" (as in "Rocket IFV")
name:fv="IFV" (appended to all tooltips - note: this may be a hardcoded reference, or it may be a reference to the IFVs UIName= entry, I haven't tested it.)
All other tooltips are built using the units' UIName= entry.