Code Monkey home page Code Monkey logo

Comments (3)

smilz0 avatar smilz0 commented on July 23, 2024 2

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.

4512369781 avatar 4512369781 commented on July 23, 2024 1

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.

  1. minDist = 999999999; no need do this, just 'minDist = radius'.
  2. 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.
  3. About witch and tank, I think no needed to check is bots facing them, they always will look at it, just not shoot sometimes.
  4. Except common infected, don't check "m_lifeState", because special/boss infected will delete from the tables when they dead.
  5. Should build based on the latest version, v2.0 has bug in "Left4Bots.FindBotNearestEnemy" function.

my edit: edit.zip

from left4bots.

smilz0 avatar smilz0 commented on July 23, 2024

Thanks guys, give me some time to test it.

from left4bots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.