w3gh / gproxyplusplus

Automatically exported from code.google.com/p/gproxyplusplus
5 stars 10 forks source link

PATCH: Implement /track and /trackoff commands for "following" a user or bot in to a game #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I hacked up a new custom command that I called "/track"

When you type "/track <username>" your gproxy bot will issue a /whois 
<username> command every 4 seconds and when it detects the the user (could be a 
regular user or a bot that hosts games regulary) has entered a game it will 
play a sound (on win32) and start "looking" for that game (as if you had typed 
/game <gamename>)

This is very useful for me as I don't have to type long game names... and if 
I'm trying to join the next game that a bot is going to host I don't have to 
sit there manually typing /whois waiting for it to host....

As far as the sound effect goes, it just looks for a file "track_done.wav" in 
the current directory (where gproxy.exe is).... no errors will happen if the 
file doesn't exist.

For me the sound effect is key becase I'll minimize windows and start doing 
other stuff waiting for the game I'm interested in to host....

If anyone wants to use this patch (and can't apply it and compile gproxy 
themselves) let me know, and I'll send a compiled version to you.

Original issue reported on code.google.com by terat...@gmail.com on 7 Mar 2011 at 1:41

Attachments: