The TTT Bot Project is an attempt at creating AI players for Trouble in Terrorist Town to make the game seem a little more lively at low player counts. They are not intended to replace players and are “passive” entities which means unless they are a Traitor, they will only defend themselves. TTT is complex as it requires a lot of critical thinking, which is hard enough for the majority of players, so these bots will end up being pretty stupid. Honestly my AI and pathfinding work is sub-par at best and I’m hoping that by making this addon public, it can gain some more attention and more knowledgeable people can contribute. I try to comment my code pretty well so hopefully you can navigate your way through my codebase. Also you can NOT artificially boost your player count with these, Garry’s Mod and Gametracker both know they are bots.
Innocent: - These bots will wander around the map and try to pick up weapons to eventually defend themselves. They will not attack you unless you attack them first so you don’t need to worry about RDM.
Traitor: - They will wander the map for a short period of time to find weapons and then will begin targeting and attacking players they encounter.
Detective: - They will buy a health station and drop it then suicide so the Innocents are not at a huge disadvantage
!KickBots in chat will start a RTV-esque vote to kick all AI players from the game until the next map.
- Any addon you have that uses voting systems will be slightly broken because of these bots. The solution to that is to go into the code and find all occurences of player.GetAll() and replace it with player.GetHumans() because bots can’t vote. #botsrights
Old video of the Lite bots in a match.
Regular - https://github.com/Exho1/TTT-Bots
*The standard, newer bots that use gm_navigation’s pathfinding to find their way around the map. Comes with the dev map I made for testing the bots on *
Lite - https://github.com/Exho1/TTT-Bots-Lite
The older bots that move around the map by looking at a point and walking towards it. These guys are very stupid but as a result the load on the server is a lot lighter so its uses are expanded.