Comments (3)
Hey guys, i updated the /out version with this change but i made a little change to it. I removed minDist because i think in some cases it would have caused issues.
Basically if the first checked infected was a close one, it was added to the array and minDist was updated with its distance but with the if "dist < minDist" all the next infected were going to be skipped. Now, most of the times the closer infected is likely to be visible to the bot so no problem, but if that infected was not visible that resulted in the bot not shooting any infected.
Let me know if i made a mistake with this or i added any other bug.
Also, @MutinCholer can you add me on steam?
from left4bots.
I did something similar, but I grouped the infected every 32 distances, then sorted them, and finally did tracing. Apparently your method is simpler and faster.
minDist = 999999999;
no need do this, just 'minDist = radius'.- The priority of the tank should be higher than common infected, otherwise bots will ignore tank before killing all the common infected they can see it. But we also don't want to bots stuck on CI, so if tank is there, always kill CI in 120 radius first.
- About witch and tank, I think no needed to check is bots facing them, they always will look at it, just not shoot sometimes.
- Except common infected, don't check "m_lifeState", because special/boss infected will delete from the tables when they dead.
- Should build based on the latest version, v2.0 has bug in "Left4Bots.FindBotNearestEnemy" function.
my edit: edit.zip
from left4bots.
Thanks guys, give me some time to test it.
from left4bots.
Related Issues (20)
- 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
- Fix bots stuck in pickup loop HOT 5
- "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
- 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.
- Bot order commands are put "on pause" indefinitely HOT 1
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.