Search found 4 matches

by AncientOnes
Wed Jul 26, 2023 1:02 am
Forum: Plugin Development Support
Topic: Install Numpy?
Replies: 2
Views: 13342

Install Numpy?

I've been able to install some packages based on the command gathered from [here][https://sourcepython.com/viewtopic.php?f=20&t=2190&p=13644&hilit=pip&sid=e47e99ce62a3bb7938c860934feb9433#p13643] python3 -m pip install --no-cache-dir --target tf/addons/source-python/packages/site-pac...
by AncientOnes
Fri Jul 14, 2023 6:42 pm
Forum: Plugin Development Support
Topic: [TF2] Make Bot Walk
Replies: 4
Views: 17152

Re: [TF2] Make Bot Walk

Accomplished by setting the base_velocity attribute with a little bit of trig to account for the angle
by AncientOnes
Thu Jul 13, 2023 6:48 pm
Forum: Plugin Development Support
Topic: Can we make player jump with source python?
Replies: 6
Views: 19124

Re: Can we make player jump with source python?

In case anyone comes across this topic, this worked for me in TF2: from players.constants import PlayerButtons def force_buttons(player, buttons, time=0.25): """Forces the given buttons on the given player for the given time.""" # Save the current forced buttons...
by AncientOnes
Thu Jul 13, 2023 6:40 pm
Forum: Plugin Development Support
Topic: [TF2] Make Bot Walk
Replies: 4
Views: 17152

[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. ...

Go to advanced search