After an AI soldier is wounded, the AI may equip a smoke grenade and start moving while holding it. The AI does not switch back to its primary weapon afterward.
A similar issue occurs when an AI soldier loses its weapon. Instead of searching for or picking up a nearby weapon, the AI continues moving while holding a smoke grenade.
Steps to reproduce:
Spawn AI soldiers.
Injure one of them in battle with enemy.
Observe the AI behavior after being wounded.
In some cases, the AI equips a smoke grenade and starts moving.
The AI does not return to its primary weapon.
Expected result:
The AI should switch back to an appropriate weapon after using/holding a smoke grenade. If unarmed, it should evaluate nearby available weapons and potentially pick one up according to its AI behavior.
Actual result:
The AI can become stuck in a state where it continuously holds a smoke grenade and does not equip another weapon, even when an appropriate weapon is available nearby.