Jump to content

OpenTransportWeapon: Difference between revisions

From ModEnc²
ATHSE (talk | contribs)
No edit summary
m default= -1
 
(3 intermediate revisions by one other user not shown)
Line 4: Line 4:
|types={{Categ|InfantryTypes}},{{Categ|VehicleTypes}}
|types={{Categ|InfantryTypes}},{{Categ|VehicleTypes}}
|values={{values|unsigned integers}}
|values={{values|unsigned integers}}
|default=-1
|default= -1
|yr=yes
|yr=yes
}}
}}
This is part of the {{f|OpenTopped|yes|link}} vehicle logic used by the Battle Fortress in {{yr}}, where 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.
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.


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


{| class="wikitable"
{| class="wikitable"
! Weapon Index !! Weapon Type
! Index !! Weapon Slot
|-
|-
| 0 || [[Primary]]/[[ElitePrimary]] or [[WeaponX|Weapon1]]/[[EliteWeaponX|EliteWeapon1]]
| 0 || [[Primary]]/[[ElitePrimary]] or [[WeaponX|Weapon1]]/[[EliteWeaponX|EliteWeapon1]]
Line 32: Line 32:
| 8 || Weapon9/EliteWeapon9
| 8 || Weapon9/EliteWeapon9
|-
|-
| 0 || Weapon10/EliteWeapon10
| 9 || Weapon10/EliteWeapon10
|-
|-
| 11 || Weapon11/EliteWeapon11
| 10 || Weapon11/EliteWeapon11
|-
|-
| ... || Etc...
| ... || Etc...

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.