Bots throw grenades from cover#1651
Conversation
07498e9 to
ad14b7a
Compare
|
Demo with sv_neo_grenade_debug_behavior enabled: |
3501a89 to
d0d9fc1
Compare
d0d9fc1 to
a2c5ce3
Compare
|
Added some tweaks on top of the code review feedback, where the tweaks can be seen by themselves with: |
a2c5ce3 to
d57931c
Compare
|
Pardon the large set of changes after the initial review. After watching the bots throw grenades in the context of playing rounds of CTG, I decided to chase down some edge cases with throw reliability and frag safety. |
d57931c to
66b30a0
Compare
|
Really sorry for the additional code churn and I should have done this earlier, but I was previously hoping that the grenade retreat logic from tactical monitor would fire soon enough after a grenade was thrown, but after seeing another bot run after their grenade and die, don't think it's triggering fast enough. (To recap, the tactical monitor check is throttled to emulate a human reaction time, but I think we need to immediately trigger a search for throwers since they are both immediately near their own grenade and they are often running in the same direction of their throw.) So I refactored out the grenade search from tactical monitor and placed it directly in the grenade retreat behavior. I also adapted the grenade retreat behavior to allow triggering without a specific grenade threat, so that we can trigger a grenade retreat immediately after a throw. |
ad4b313 to
96d8dba
Compare
Description
Bots decide whether they can throw a grenade at a threat after retreating to cover.
Toolchain