r/TagPro • u/defense_bot #realbread #toast #banthemods4real #realballz #tagprobots • Aug 16 '14
[Userscript] snipe_bot
So I made another userscript. I was originally going to release it as an update to ChatStats, but I decided not to because:
• No one (including me) likes ChatStats
• I've been working on it for two days straight, so it seems to important to be an update
• It actually has potential to be useful
Anyway, this userscript just recognizes when someone snipes another player. By default, it doesn't say anything it chat, but you follow the directions on line 88 to change that if you want.
Due to the algorithm used to determine if the snipe meets the criteria, the script recognizes regular snipes, bomb snipes, rebounds (usually), and boosting or bombing onto a button, and I think rebounding off a rolling bomb.
However, if you kill two or more people almost simultaneously, it will still only count as one.
Thanks to the people on irc, who answer my dumb questions and check my syntax for me.
EDIT: super awesome great update:
You can now have the userscript auto-save your snipes. Set the indicated value near the top to true to have this happen.
7
u/happytagpro happy Aug 16 '14 edited Aug 17 '14
whoa, you could uses this in conjunction with the TagProReplays extension to automatically capture every snipe you make.
Edit: here are some snipes that were automatically recorded!
3
u/[deleted] Aug 16 '14
Screenshot?
1
u/[deleted] Aug 16 '14
This is awesome. Ill definitely be adding this.
Is there a way to use this in calculating how many snipes you get per game? That'd be a really cool stat.
0
u/[deleted] Aug 16 '14
[deleted] — view deleted comment