OpenXcom Forum

Modding => Help => Topic started by: The Martian on October 08, 2019, 12:02:32 pm

Title: Alien use of ammo: AI can use additional ammo slots?
Post by: The Martian on October 08, 2019, 12:02:32 pm
If you define a weapon with multiple ammo slots is the enemy AI able understand and use the additional ammo types?

Or is this strictly a feature for player units?

(UFOpaedia: Compatible ammo and Action Mapping (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Compatible_ammo_and_Action_Mapping))
Code: [Select]
- type: STR_WEAPON_WITH_4_AMMO_SLOTS
   ammo:
     0:
       compatibleAmmo: [ STR_AMMO_1, STR_AMMO_2 ]
       tuLoad: 5
       tuUnload: 2
     1:
       compatibleAmmo: [ STR_AMMO_3 ]
       tuLoad: 10
       tuUnload: 4
     2:
       compatibleAmmo: [ STR_AMMO_1, STR_AMMO_4 ]
       tuLoad: 10
       tuUnload: 4
     3:
       compatibleAmmo: [ STR_GRENADE ]
       tuLoad: 20
       tuUnload: 8
Code: [Select]
- type: STR_RIFLE_WITH_A_GRENADE_LAUNCHER
   confAimed:
     shots: 1
     name: STR_AIMED_SHOT
     ammoSlot: 0
     arcing: false
   confSnap:
     shots: 2
     name: STR_DOUBLE_SNAP_SHOT
     ammoSlot: 0
     arcing: false
   confAuto:
     shots: 1
     name: STR_LAUNCH_GRENADE
     ammoSlot: 3
     arcing: true
   confMelee:
     name: STR_PUNCH_IN_THE_FACE