[TF2] Make Bot Walk

Please post any questions about developing your plugin here. Please use the search function before posting!
AncientOnes
Junior Member
Posts: 4
Joined: Thu Jul 13, 2023 6:33 pm

[TF2] Make Bot Walk

Postby AncientOnes » Thu Jul 13, 2023 6:40 pm

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:
AncientOnes
Junior Member
Posts: 4
Joined: Thu Jul 13, 2023 6:33 pm

Re: [TF2] Make Bot Walk

Postby AncientOnes » Fri Jul 14, 2023 6:42 pm

Accomplished by setting the base_velocity attribute with a little bit of trig to account for the angle
User avatar
Articha
Member
Posts: 32
Joined: Tue Sep 21, 2021 12:13 pm
Location: Russia

Moving bots?

Postby Articha » Sat Jul 15, 2023 9:18 pm

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?
User avatar
Ayuto
Project Leader
Posts: 2197
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [TF2] Make Bot Walk

Postby Ayuto » Sun Jul 16, 2023 2:00 pm

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.
User avatar
Articha
Member
Posts: 32
Joined: Tue Sep 21, 2021 12:13 pm
Location: Russia

Re: [TF2] Make Bot Walk

Postby Articha » Sun Jul 16, 2023 8:51 pm

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