ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Primary"

From ModEnc
Jump to: navigation, search
m (Special removed)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Flag
 
{{Flag
|name=Primary
 
 
|files={{Categ|Rules(md).ini}}
 
|files={{Categ|Rules(md).ini}}
|values=Strings (Names of [[Weapon]]s)
+
|values={{Values|string|[[Weapons]]}}
|default=none
+
|types={{Categ|TechnoTypes}}
|types={{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}
 
 
|ra=yes
 
|ra=yes
 
|cs=yes
 
|cs=yes
Line 16: Line 14:
 
}}
 
}}
  
This flag specifies the main weapon of this object. The main weapon is used when force-firing on the ground, attacking overlays (such as walls), and scanning the area for targets. If the <tt>[[Verses]]</tt> on both <tt>[[Primary]]=</tt> and <tt>[[Secondary]]=</tt> allow targeting of a certain object, the <tt>[[Primary]]=</tt> will be selected.
+
Specifies the main weapon of the [[TechnoType]] for which this flag is set.<br>
 +
<br>
 +
The {{tt|Primary}} weapon is always used when:
 +
*Force-firing at the ground
 +
*Attacking overlays (such as walls). Note that a unit whose {{f|Secondary|link}} weapon can attack walls, but {{tt|Primary}} weapon can't, will not, in fact, be able to attack walls.
 +
*The unit's {{f|Secondary|link}} weapon's [[warhead]]'s {{f|Verses|link}} value for the {{f|Armor|link}} type of the target matches that for the unit's {{tt|Primary}} weapon.
 +
{{NeedsTesting}}
 +
*Scanning the area for targets.
 +
<br>
 +
{{Ra2}} and {{Yr}} introduced units with special-case methods for specifying weapons - the IFV, Prism Tank and Gattling Cannon use {{f|WeaponX|link}} in place of {{tt|Primary}}.
  
RA2/YR introduce other methods for specifying weapons for special cases like the IFV/Prism Tank/Gattling Weapons.
+
==Current Primary Weapon==
 +
The weapon that a unit considers to be its actual primary weapon is not always determined simply by {{tt|Primary}}. If the unit has both {{f|TurretCount|link}} and {{f|WeaponCount|link}} flags set then it will use {{f|WeaponX|link}} instead. If the unit is elite then it will use {{f|ElitePrimary|link}} or {{f|EliteWeaponX|link}} respectively instead.
 +
<br>If a unit has a current primary weapon then it is used as the unit's default {{tt|[[DeathWeapon#For_TechnoTypes|DeathWeapon]]}}.
 +
 
 +
==See Also==
 +
* [[Targeting System]]
 +
 
 +
{{WeaponsRelated}}

Latest revision as of 11:56, 27 November 2009

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Primary
File(s): Rules(md).ini
Values: Strings: Normal text. (Limited to: Weapons)
Applicable to: TechnoTypes


Specifies the main weapon of the TechnoType for which this flag is set.

The Primary weapon is always used when:

  • Force-firing at the ground
  • Attacking overlays (such as walls). Note that a unit whose Secondary weapon can attack walls, but Primary weapon can't, will not, in fact, be able to attack walls.
  • The unit's Secondary weapon's warhead's Verses value for the Armor type of the target matches that for the unit's Primary weapon.
This needs testing
Cc mouse.png
The following section contains information that has not been personally confirmed by the revision's author; readers are encouraged to test it themselves and update the section accordingly.

  • Scanning the area for targets.


Red Alert 2 and Yuri's Revenge introduced units with special-case methods for specifying weapons - the IFV, Prism Tank and Gattling Cannon use WeaponX in place of Primary.

Current Primary Weapon

The weapon that a unit considers to be its actual primary weapon is not always determined simply by Primary. If the unit has both TurretCount and WeaponCount flags set then it will use WeaponX instead. If the unit is elite then it will use ElitePrimary or EliteWeaponX respectively instead.
If a unit has a current primary weapon then it is used as the unit's default DeathWeapon.

See Also

Weapon c4.png Armament System related Flags on ModEnc