Uploaded October 2017 | Updated December 2026, 2 days ago
Normally, if you put a TFBot into a kart, it won't move very effectively, because they try to strafe, but the strafing keys (A/D) are actually rotation keys when in a kart. I wrote a quick mod to make them use WASD more intelligently while in karts. (Why? I don't know.)
Normally, bots use W/S and A/D independently to move or strafe in whichever direction they're trying to go. The mod makes them (a) only go forward, and never go backward; (b) not attempt to strafe; (c) only press W if they are facing roughly the direction they want to go; and (d) press A or D appropriately if they aren't facing roughly the direction they want to go, depending on which way the angular error is.
(The sound in this video may be slightly out-of-sync; I'm not really sure what that was caused by.)
Source code for this mod:
github.com/sigsegv-mvm/sigsegv-mvm/blob/6ffc00c442cbe1d2326abb894a226926ad30c83b/src/mod/bot/kart_locomotion.cpp
Normally, if you put a TFBot into a kart, it won't move very effectively, because they try to strafe, but the strafing keys (A/D) are actually rotation keys when in a kart. I wrote a quick mod to make them use WASD more intelligently while in karts. (Why? I don't know.)
Normally, bots use W/S and A/D independently to move or strafe in whichever direction they're trying to go. The mod makes them (a) only go forward, and never go backward; (b) not attempt to strafe; (c) only press W if they are facing roughly the direction they want to go; and (d) press A or D appropriately if they aren't facing roughly the direction they want to go, depending on which way the angular error is.
(The sound in this video may be slightly out-of-sync; I'm not really sure what that was caused by.)
Source code for this mod:
github.com/sigsegv-mvm/sigsegv-mvm/blob/6ffc00c442cbe1d2326abb894a226926ad30c83b/src/mod/bot/kart_locomotion.cpp










