surepy / tf2_bot_detector

A handy little tool to gather, keep track and automatically votekick bots and bad actors in Team Fortress 2.
MIT License
58 stars 7 forks source link

Terminate connection to server before fully connecting if the server has X amount of bots/cheaters on X team. #39

Open slender100 opened 3 weeks ago

slender100 commented 3 weeks ago

A clear and concise description of what the problem is.

It can be tiring to manually terminate the connection from a server before fully connecting when it's filled with bots/cheaters.

Describe the solution you'd like

A disconnect command can be sent through the pre-existing bot detector via rcon if the bot detector sees there are X amount of bots/cheaters on X team before it full connects to a server, which could also be adjusted via a setting.

Describe alternatives you've considered

N/A

Additional context

Auto requeue would also be helpful as an additional setting that could be used in conjunction with this.

surepy commented 3 weeks ago

while it's possible to disconnect from the server ("disconnect") we can't abandon the match or requeue automatically (command does not exist, needs to call the function directly)

I'll experiment how fast it disconnects when disconnect command is sent though rcon, I will note that there's a chance that just mashing esc on the loading screen might be faster. (which, i won't bother implementing and releasing if this is the case)