-
Notifications
You must be signed in to change notification settings - Fork 20
Bots evade from grenades #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bots evade from grenades #1545
Conversation
bot_grenade_avoidance_spam.mp4bot_grenade_avoidance.mp4 |
e4f869b to
d333ee9
Compare
bot_grenade_avoidance_navmesh_clip.mp4 |
|
I seem to remember the combat sound logic being used for this in the base sdk, with grenades making a special kind of sound every second or so as they fly that the bots can then run away from Perhaps instead of this pr we should look at bot hearing again, and make sure bots react to sounds better and "hear" grenades and react appropriately |
|
Well maybe nextbots don't have this idk, I would have to spend some more time looking at this topic so don't consider this a damning review for this pr |
I think CAI_Senses::Listen (ai_sense.cpp) might be the example you were thinking of? At least it ended up being helpful for figuring out the approach. |
|
Out of scope for this PR but I also added |
00dae3b to
86d7dfa
Compare
Description
In their tactical monitor, bots check for grenade entities around them and then attempt to evade any grenades found using retreating logic.
Toolchain
Linked Issues
^ (reference for new behavior class but tweaked to avoid a grenade entity)