[TF2] Make Bot Walk
-
- Junior Member
- Posts: 4
- Joined: Thu Jul 13, 2023 6:33 pm
[TF2] Make Bot Walk
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!
-
- Junior Member
- Posts: 4
- Joined: Thu Jul 13, 2023 6:33 pm
Re: [TF2] Make Bot Walk
Accomplished by setting the base_velocity attribute with a little bit of trig to account for the angle
Moving bots?
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
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.
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
I see. So you are using BotCmd to command bots, and also playerinfo to record player actions. Interesting.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 10 guests