[L4D] Detect the bot intention
Hi,
how to check the bot intention? Like, after boomer vomited, detect is he going: - to run away - to come even a bit closer and start attacking by claw. |
Re: [L4D] Detect the bot intention
You can look for the current behavior of the NextBot.
The boomer has a couple of behaviors you can check: BoomerRetreatToCover (I'm exposed and my vomit is recharging) BoomerAttack (Victim is close, attack!) etc. use "nb_debug BEHAVIOR" to see the current behavior stack and changes to it in real time. As for getting the data from a plugin I know that "Mutant Tanks" does this sort of check for the TankIdle behavior here. I also have some code that does something similar that I can dig up if you want more reference. |
Re: [L4D] Detect the bot intention
Hi, Zynda!
I would very appreciate for some examples, surely. Also, thanks for point me to those Crasher's example. Really, useful !!! |
Re: [L4D] Detect the bot intention
These are all linux offsets by the way (should be in gamedata really but it's all hardcoded here).
Small methodmap for the Actions: PHP Code:
PHP Code:
|
Re: [L4D] Detect the bot intention
oww, nice structuring.
Really appreciate for such clear examples! It will be very useful for complementing behavior with various stuff. Have a nice day! |
All times are GMT -4. The time now is 03:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.