Jump to content

OpenTransportWeapon

From ModEnc²
Revision as of 14:55, 9 April 2025 by ATHSE (talk | contribs)
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:
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:

Weapon Index Weapon Type
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
0 Weapon10/EliteWeapon10
11 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.