Comments (5)
ok thanks.
from left4bots.
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.
In default itemstoavoid there's already "ammo" and "upgrade_item" and items_not_to_avoid is 1, which means that if you add a weapon in itemstoavoid.txt the vanilla AI will try to pick it up and will likely get stuck in a loop with the l4b2 weapon preference. This problem only occurs with weapons (inventory slots 1 and 2), not with the other items as the vanilla AI doesn't try to replace its current items for for the other slots, so for these slots you can have both the vanilla and l4b2 logics active.
Did i miss something?
from left4bots.
hey!
I think, rather than being stuck between two logics, would better to choose one, and weapon preference could completely replace the vanilla logic for now.
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.
Taking Ellis as an example, his priority is: T2 weapons (sniper > shotgun = rifle) > T1 weapons (shotgun = smg) in coop mode.
If the weapon preference is according to this priority, there is no need to put any weapons into avoid list, and no loop problems there.
But this is only an ideal situation, and it is impossible to know how people would change the priority.
from left4bots.
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?
from left4bots.
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".
and goto "weapons" folder, remove "sniper" in the config file or move it to the line end.
from left4bots.
Related Issues (20)
- The full version of left 4 bots 2 works on second restart by either vote to restart or failing the chapter while the alpha version works fine with this mod HOT 1
- hey can u add a feature where when playing with friends they can also control the bots? it sucks when only 2 person can control them HOT 2
- Automation scripts for Swamp Fever official campaign
- "Dodge" pipe_bomb_projectile
- Automation scripts for Death Toll official campaign HOT 1
- Bots close saferoom door HOT 1
- Player survivors getting force-swapped away from pills/adrenaline after pickup HOT 3
- Fix bot shooting nervously sitting witch HOT 1
- Fix pick up melee loop HOT 5
- When swapping your weapon with the bot, you'll find that it has no ammo. HOT 5
- When one bot is incapacitated, the others always try to heal it and die HOT 4
- "fall_velocity_warp" not work since last release HOT 3
- Bots run back to human after unpause lead order HOT 1
- About "lead_pause_behind_dist" setting HOT 1
- Dedicated Server Crash on Shutdown HOT 4
- [IMPROVEMENT] Manual Attack Optimization HOT 3
- Warp doesn't work after level change on latest github version HOT 1
- [fix] Hooks not work sometimes after last update HOT 29
- [Suggestion] Bots use medkit immediately in "black and white" condition.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from left4bots.