Jump to content

OpenTransportWeapon: Difference between revisions

From ModEnc²
en>Bbglas007
No edit summary
m default= -1
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Specifies which weapon this unit uses when it is inside a VehicleType with OpenTopped=yes set. Can be set to '0' for Primary= weapon to be used, or '1' for Secondary= weapon to be used. Defaults to '0'.<br />
|name={{PAGENAME}}
(Yuri's Revenge Only)
|files={{Categ|ini=rules}}
|types={{Categ|InfantryTypes}},{{Categ|VehicleTypes}}
|values={{values|unsigned integers}}
|default=&nbsp;-1
|yr=yes
}}
This is part of the {{f|OpenTopped|yes|link}} vehicle logic used by the Battle Fortress in {{yr}}, where [[Passengers|passengers]] on such a transport [[VehicleTypes|vehicle]] use their own weapons when boarded. Specifically this tag selects which weapon this unit uses when it is inside an OpenTopped vehicle.


Seemingly by default, a full "gattling" cycle works and can use all 3 ground and 3 air weapons from inside a vehicle which has OpenTopped=yes without discerning "which weapon" is to be used
A value of -1 will make the game choose the weapon, for the remaining values refer to the table below:
 
{| class="wikitable"
! Index !! Weapon Slot
|-
| 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...
|}
 
By default, a full [[IsGattling|gattling]] cycle works, and can use all 3 ground and 3 air weapons from inside an OpenTopped vehicle, without pre-selecting which weapon is to be used in all cases.

Latest revision as of 18:33, 11 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: OpenTransportWeapon
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


This is part of the OpenTopped=yes vehicle logic used by the Battle Fortress in Yuri's Revenge, where passengers on such a transport vehicle use their own weapons when boarded. Specifically this tag selects which weapon this unit uses when it is inside an OpenTopped vehicle.

A value of -1 will make the game choose the weapon, for the remaining values refer to the table below:

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...

By default, a full gattling cycle works, and can use all 3 ground and 3 air weapons from inside an OpenTopped vehicle, without pre-selecting which weapon is to be used in all cases.