-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bots stuck in pickup loop #89
Comments
ok thanks. |
Hey mate, i don't think i understand where the problem is, tbh. I mean i understand that the itemstoavoid logic is complicated and having 2 weapons configurations makes it even more complicated but in my opinion it is better to have 2 separate configurations for the vanilla and the l4b2 pick-up logics as it allows more control and more customization. |
hey! The default l4b2 settings is fine, but if people add weapons to "itemstoavoid.txt" or change " items_not_to_avoid" to 0, thereby removing these weapon from the avoid list, vanilla bots will search these weapon and pickup it, but at the same time the weapon preference also forces bots pickup the highest priority weapon, which makes bots stuck in the loop. And "ShouldAvoidItem" function can only make all bots like\dislike a weapon, but weapon preference is for each bot. However, there is one situation where the two logics can work together, that is, following the vanilla logic. |
I honestly barely understand anything, but I'm trying to make the bots to not pick up sniper rifles, but for some reason they keep picking them up even though I added those weapons in itemstoavoid. How can I do this in L4B2? |
if "items_not_to_avoid" set to "1", weapons in "itemstoavoid.txt" will not avoid, so you should delete it from "itemstoavoid.txt". |
Based on Declan's feedback, I finally found the reason, but I don't know if there are other problems with this solution.
please tell me what you think.
fix bots stuck in pickup loop.zip
The text was updated successfully, but these errors were encountered: