Code Monkey home page Code Monkey logo

Comments (7)

Joe91 avatar Joe91 commented on September 14, 2024 1

They should only be triggered if there is a clear view or if you are very Close. But after the trigger they cannot detect if they can see you or Not. But they should stop after a short time if not.
Could you try if this is still the same with the new master?

from fun-bots.

Joe91 avatar Joe91 commented on September 14, 2024 1

The trigger in the video is the parameter "distanceForDirectAttack". If you are close to the bot (by default 3 m) he will attack. You can set this to 0

from fun-bots.

Joe91 avatar Joe91 commented on September 14, 2024

Yes, this can happen some times. Thats because a bot cannot see at all and gets triggered very easy by a player. After that he just shoots for 5 seconds. In some wierd cases even longer even if he can't see you anymore. We are working on it, but its not the highest priority.
If you find out what exactly causes this, please let me know...

from fun-bots.

SmartShots avatar SmartShots commented on September 14, 2024

Yes, this can happen some times. Thats because a bot cannot see at all and gets triggered very easy by a player. After that he just shoots for 5 seconds. In some wierd cases even longer even if he can't see you anymore. We are working on it, but its not the highest priority.
If you find out what exactly causes this, please let me know...

I take it they are already not supposed to be trying to shoot at you through objects/buildings then? I presumed it was just like that because there wasn't any code to tell them that the object or building was there.

from fun-bots.

SmartShots avatar SmartShots commented on September 14, 2024

They should only ne triggered if there is a clear view or if you are very Close. But after the trigger they cannot detect if they can see you or Not. But they should stop after a short time if not.
Could you try if this is still the same with the new master?

I'm currently using the latest release - V1.2.0.0 - and have tested it some more. They do seem to be getting triggered sometimes when there is clearly no view of me.

See this example video

from fun-bots.

SmartShots avatar SmartShots commented on September 14, 2024

The trigger in the video is the parameter "distanceForDirectAttack". If you are close to the bot (by default 3 m) he will attack. You can set this to 0

I have it set to 1 in this case. I will change it to 0 and re-test.

from fun-bots.

Joe91 avatar Joe91 commented on September 14, 2024

Should be improved now. Still raycasts aren't that reliable...

from fun-bots.

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.