Page 1 of 1

[TF2] Make Bot Walk

Posted: Thu Jul 13, 2023 6:40 pm
by AncientOnes
I have bots I'm controlling through code (their AI is disabled with `nb_blind 1`). I want to make them move (walk or strafe) but can't find a solution that works. Sending `+forward` with client commands does nothing, and setting `player.buttons = PlayerButtons.FORWARD` also seems to have no effect. Thanks for your help! :smile:

Re: [TF2] Make Bot Walk

Posted: Fri Jul 14, 2023 6:42 pm
by AncientOnes
Accomplished by setting the base_velocity attribute with a little bit of trig to account for the angle

Moving bots?

Posted: Sat Jul 15, 2023 9:18 pm
by Articha
It's gonna make inaccuracy, no? How are you going to make bots aim? Is setting view possible for bots? I think yes, but the biggest question: how will you make bots fire?

Re: [TF2] Make Bot Walk

Posted: Sun Jul 16, 2023 2:00 pm
by Ayuto
If you interested in creating your own bots, you might be interested in this:
https://github.com/Ayuto/ReplayBot/blob ... lay_bot.py

It's a plugin to capture your movements and actions (also firing). After capturing you can replay everything by creating an "empty" bot.

Re: [TF2] Make Bot Walk

Posted: Sun Jul 16, 2023 8:51 pm
by Articha
I see. So you are using BotCmd to command bots, and also playerinfo to record player actions. Interesting.