Coder Social home page Coder Social logo

Comments (6)

jeefo avatar jeefo commented on July 23, 2024

m_moveAngles - is movement direction, t has nothing to do with the view angles. So if direction points "forward", the m_strafeSpeed is in use.

If you want bot to stop you have to disable portions of navigation and avoidance code to make it work. Or just set strafe&move speed to zero.

P.S. what the point of preventing forward/backward and allowing right/left speed ?

from yapb.

that-is-not-great avatar that-is-not-great commented on July 23, 2024

i want to improve combat movement, the bot should never move forward/backwards, only strafe like a human. what determines if the direction points "forward"?

from yapb.

jeefo avatar jeefo commented on July 23, 2024

i want to improve combat movement, the bot should never move forward/backwards, only strafe like a human. what determines if the direction points "forward"?

Obviously the m_destOriign which is by default destination path origin, if nothing else set.

from yapb.

that-is-not-great avatar that-is-not-great commented on July 23, 2024

for example, if !usesKnife () on focusEnemy() I want to stop all navigation, m_moveSpeed = 0.0f; m_moveToGoal = false; no moving to goal etc., he should only strafe like a human left/right.
m_destOrigin = m_enemy->v.origin; and go into combat strafe mode, (only IN_MOVERIGHT or IN_MOVEEFT) + checkWallOnRight/Left () is enough
however even now with the strafe in attackMovement () the bot still moves forward/backward. I do not understand what excatly causes this, lets say simply: if(!usesKnife () && (m_states & (Sense::SeeingEnemy))) // block forward/backward

from yapb.

jeefo avatar jeefo commented on July 23, 2024

I can't replicate the problem, if move speed is set to zero in attackMovement () bots very rarely moves forward for me.

I bet you need to check body angles are faced against enemy too or take in account bot's body angles. take a look at setStrafeSpeed()

from yapb.

that-is-not-great avatar that-is-not-great commented on July 23, 2024

I can't replicate the problem, if move speed is set to zero in attackMovement () bots very rarely moves forward for me.

I bet you need to check body angles are faced against enemy too or take in account bot's body angles. take a look at setStrafeSpeed()

rarely is not acceptable if I want none. alright I will find out myself, thx

from yapb.

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.