fix for choosing best weapon

This commit is contained in:
in0finite 2021-10-17 00:57:11 +02:00
parent fb580178ff
commit 7b8d2a1a1a

View file

@ -18,7 +18,6 @@ namespace SanAndreasUnity.Behaviours.Peds.AI
WeaponSlot.Heavy,
WeaponSlot.Shotgun,
WeaponSlot.Pistol,
WeaponSlot.Hand, // switch to Hand if there is no ammo in other weapons
};
@ -178,6 +177,8 @@ namespace SanAndreasUnity.Behaviours.Peds.AI
return;
}
}
_ped.WeaponHolder.SwitchWeapon(WeaponSlot.Hand);
}
}
}