Jump to content

DeployFireWeapon: Difference between revisions

From ModEnc²
ATHSE (talk | contribs)
first pass to remove redundant/off-topic links
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(6 intermediate revisions by one other user not shown)
Line 9: Line 9:
|ares=yes
|ares=yes
}}
}}
On an object that has the ability to deploy through {{f|DeployFire|yes|link}},{{f|IsSimpleDeployer|yes|link}} this specifies which weapon this object uses when it is deployed.<br>
On a unit that can deploy through {{f|DeployFire|yes|link}} or {{f|IsSimpleDeployer|yes|link}}, this specifies which weapon it uses when it is deployed.
'''0'''=[[Primary]],[[ElitePrimary]],[[Weapon1]],[[EliteWeapon1]]<br>
'''1'''=[[Secondary]],[[EliteSecondary]],[[Weapon2]],[[EliteWeapon2]]<br>
'''2'''=[[Weapon3]],[[EliteWeapon3]]<br>
'''3'''=[[Weapon4]],[[EliteWeapon4]]<br>
'''4'''=[[Weapon5]],[[EliteWeapon5]]<br>
'''5'''=[[Weapon6]],[[EliteWeapon6]]<br>
'''6'''=[[Weapon7]],[[EliteWeapon7]]<br>
'''7'''=[[Weapon8]],[[EliteWeapon8]]<br>
'''8'''=[[Weapon9]],[[EliteWeapon9]]<br>
'''9'''=[[Weapon10]],[[EliteWeapon10]]<br>
'''10'''=[[Weapon11]],[[EliteWeapon11]]<br>
'''11'''=[[Weapon12]],[[EliteWeapon12]]<br>
'''12'''=[[Weapon13]],[[EliteWeapon13]]<br>
'''13'''=[[Weapon14]],[[EliteWeapon14]]<br>
'''14'''=[[Weapon15]],[[EliteWeapon15]]<br>
'''15'''=[[Weapon16]],[[EliteWeapon16]]<br>
'''16'''=[[Weapon17]],[[EliteWeapon17]]<br>
'''17'''=[[Weapon18]],[[EliteWeapon18]]<br>
'''18'''=[[Weapon19]],[[EliteWeapon19]]<br>
For non release weapons, you can also specify which weapon the unit will use (not release) in deployment mode, for example, adding DeployFireWeapon=0 to [SCHP] will also use [[Primary]] in deployment mode.
*In the Phobos environment, DeployFireWeapon='''-1''' can be added to Infantry to allow them to use two types of weapons in deployment mode (based on weapon selection and usage rules).


{{Bugs}}
Units typically have their [[Primary]] as their undeployed weapon, and use their [[Secondary]] when deployed, like the GI, but in cases where the unit has more weapons, see the table below for acceptable values:
VehicleTypes which have {{f|DeployFire|yes|link}} and {{f|IsGattling|yes|link}} will always It will exhibit some confusing effects
{| class="wikitable"
*such as [https://www.bilibili.com/opus/955571124630978562 suddenly changing to using {{Tt|Weapon1}} (specified for DeployFireWeapon in Phobos environment) once or twice. ]
! Index !! Weapon Slot
**Even if it should not and cannot lower the stage due to '''{{f|RateDown|-1|link}}''' or other negative numbers.
|-
| 0 || Primary/[[ElitePrimary]] or [[WeaponX|Weapon1]]/[[EliteWeaponX|EliteWeapon1]]
|-
| 1 || Secondary/[[EliteSecondary]] or Weapon2/EliteWeapon2
|-
| 2 || Weapon3/EliteWeapon3
|-
| 3 || Weapon4/EliteWeapon4
|-
| 4 || Weapon5/EliteWeapon5
|-
| 5 || Weapon6/EliteWeapon6
|-
| 6 || Weapon7/EliteWeapon7
|-
| 7 || Weapon8/EliteWeapon8
|-
| 8 || Weapon9/EliteWeapon9
|-
| 9 || Weapon10/EliteWeapon10
|-
| 10 || Weapon11/EliteWeapon11
|-
| ... || Etc...
|}


{{f|DESO|link}} and all infantry deployments with {{f|IsDesolator|yes|link}} can only release secondary weapons and do not follow the DeployFireWeapon setting
=={{Bugs}}==
*However, the deployment effect of simulating DESO using [[Immune G.I. Bug]] can be specified using this statement, [https://t.bilibili.com/811527585196408853 although the effect is also quite strange.]
The [[DESO|Desolator]] and any other deployable infantry with {{f|IsDesolator|yes|link}} will only fire secondary weapons, while deployed, and do not follow the DeployFireWeapon setting. However, the deployed behaviour from simulating the Desolator using [[Immune G.I. Bug]] can be specified using this statement, [https://t.bilibili.com/811527585196408853 but the effect is also quite strange.]
 
==Phobos Behaviour==
*With [[Phobos]], DeployFireWeapon=-1 can be added to Infantry to allow them to use two types of weapons in deployment mode (based on weapon selection and usage rules).
 
*[[VehicleTypes|Vehicles]] which have {{f|DeployFire|yes|link}} and {{f|IsGattling|yes|link}} may exhibit some confusing effects, such as [https://www.bilibili.com/opus/955571124630978562 suddenly changing to using Weapon1/Primary] as specified for DeployFireWeapon. Even if it should not and cannot lower the stage due to {{f|RateDown|-1|link}} or other negative numbers.


==See also==
==See also==
Line 46: Line 54:


[[IsGattling]]
[[IsGattling]]
[[Immune G.I. Bug]]

Latest revision as of 17:19, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: DeployFireWeapon
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default: 1
Applicable to: InfantryTypes,VehicleTypes


On a unit that can deploy through DeployFire=yes or IsSimpleDeployer=yes, this specifies which weapon it uses when it is deployed.

Units typically have their Primary as their undeployed weapon, and use their Secondary when deployed, like the GI, but in cases where the unit has more weapons, see the table below for acceptable values:

Index Weapon Slot
0 Primary/ElitePrimary or Weapon1/EliteWeapon1
1 Secondary/EliteSecondary or Weapon2/EliteWeapon2
2 Weapon3/EliteWeapon3
3 Weapon4/EliteWeapon4
4 Weapon5/EliteWeapon5
5 Weapon6/EliteWeapon6
6 Weapon7/EliteWeapon7
7 Weapon8/EliteWeapon8
8 Weapon9/EliteWeapon9
9 Weapon10/EliteWeapon10
10 Weapon11/EliteWeapon11
... Etc...

Bugs/Side-Effects/Unexpected Limitations

The Desolator and any other deployable infantry with IsDesolator=yes will only fire secondary weapons, while deployed, and do not follow the DeployFireWeapon setting. However, the deployed behaviour from simulating the Desolator using Immune G.I. Bug can be specified using this statement, but the effect is also quite strange.

Phobos Behaviour

  • With Phobos, DeployFireWeapon=-1 can be added to Infantry to allow them to use two types of weapons in deployment mode (based on weapon selection and usage rules).

See also

Deployer

DeployFire

IsGattling