Skip to content

X2Condition_AbilitySourceWeapon

Editor: X2AbilityConditionEditor_AbilitySourceWeapon · extends X2AbilityConditionEditor_Base.

Own fields

Config field Type Requires Game field Description
WantsReload bool SetWantsReload=true WantsReload Fail with AA_AmmoAlreadyFull when the source weapon's clip is already full.
CheckAmmo bool SetCheckAmmo=true CheckAmmo Compare the source weapon's ammo against CheckAmmoData.
CheckAmmoData CheckConfig SetCheckAmmoData=true CheckAmmoData The ammo check used when CheckAmmo is true: Value, CheckType, and ValueMin/ValueMax for range checks.
NotLoadedAmmoInSecondaryWeapon bool SetNotLoadedAmmoInSecondaryWeapon=true NotLoadedAmmoInSecondaryWeapon Fail when the source weapon is currently loaded as ammo in the secondary weapon.
MatchGrenadeType name SetMatchGrenadeType=true MatchGrenadeType Grenade template the source weapon, or its loaded ammo, must be.
CheckGrenadeFriendlyFire bool SetCheckGrenadeFriendlyFire=true CheckGrenadeFriendlyFire Reject friendly targets unless the grenade template allows friendly fire.
CheckAmmoTechLevel bool SetCheckAmmoTechLevel=true CheckAmmoTechLevel Reject the source ammo when it is not valid for the unit's primary weapon.
MatchWeaponTemplate name SetMatchWeaponTemplate=true MatchWeaponTemplate Weapon template the source weapon must be, exact match on its DataName.