Skip to content

New Enum Definitions

Andreas-W edited this page May 20, 2025 · 16 revisions

New Enum Values

ArmorSetFlags

Added new ArmorSetFlags:

  • PLAYER_UPGRADE2
  • PLAYER_UPGRADE3
  • PLAYER_UPGRADE4

WeaponSetFlags

Added new WeaponSetFlags that can be manually used for upgrades:

  • PLAYER_UPGRADE2
  • PLAYER_UPGRADE3
  • PLAYER_UPGRADE4 (Note: There will be more in the future)

Added new WeaponSetFlags for specific conditions:

  • GARRISONED - If a unit has a weaponset with this flag, it will be chosen when the unit is garrisoned inside a structure
  • CONTAINED - If a unit has a weaponset with this flag, it will be chosen when the unit is contained inside a transport

ConditionStates

For each new WeaponSetFlag there is a corresponding ConditionState

  • WEAPONSET_PLAYER_UPGRADE2
  • WEAPONSET_PLAYER_UPGRADE3
  • WEAPONSET_PLAYER_UPGRADE4

WeaponBonus types

Added new WeaponBonus types for the following conditions:

  • CONTAINED - this bonus is applied to passengers in TransportContain (similar to GARRISONED)

Bonus values can be defined in GameData.ini (no bonus by default). Example:

WeaponBonus = CONTAINED RANGE 125%

Clone this wiki locally