We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55fd4ad commit abdc5bfCopy full SHA for abdc5bf
Base.rte/AI/HumanFunctions.lua
@@ -27,7 +27,7 @@ end
27
28
function HumanFunctions.DoAutomaticEquip(actor)
29
-- Equip a weapon automatically if the one held by a player is destroyed
30
- if actor:IsPlayerControlled() and actor.EquippedItem == nil and actor.InventorySize > 0 then
+ if actor:IsPlayerControlled() and actor.EquippedItem == nil and actor.InventorySize > 0 and not actor.controller:IsState(Controller.WEAPON_FIRE) then
31
actor:EquipFirearm(true);
32
end
33
0 commit comments