X2AbilityCost_Ammo¶
Editor: X2AbilityCostEditor_Ammo · extends X2AbilityCostEditor.
Own fields¶
| Config field | Type | Requires | Game field | Description |
|---|---|---|---|---|
NumAmmo |
int |
SetNumAmmo=true |
iAmmo |
Ammo consumed per use. With ConsumeAllAmmo set this becomes the minimum needed to fire, rather than the amount spent. |
UseLoadedAmmo |
bool |
SetUseLoadedAmmo=true |
UseLoadedAmmo |
Draws from the loaded grenade rather than the weapon's ammo, for grenade-launcher abilities. |
ReturnChargesError |
bool |
SetReturnChargesError=true |
bReturnChargesError |
Reports a shortfall as "out of charges" instead of "out of ammo", for abilities presented to the player as charge-based. |
ConsumeAllAmmo |
bool |
SetConsumeAllAmmo=true |
bConsumeAllAmmo |
Spends the whole magazine. NumAmmo then only sets the minimum required to fire. |
Inherited fields¶
From X2AbilityCostEditor (1)
FreeCost
Every one of these is documented under Shared fields or on the page for the class that introduces it.