Most Recent Update: New module! Uploaded stats per mode plugin!
About: 
This series of plugins will automatically and passively collect your stats in the background. They can be toggled by pressing ‘K’. The key can be changed by yourself if needed. Stats collecting is enabled by default. Simply download the .gml files and place them in the “Plugins” folder. (for any new people who don’t know)
The stats files, by default, are saved in a folder called “Stats” that will be automatically created in your gg2 directory. These text files are formatted into columns and as such are best viewed in Microsoft Excel or any spreadsheet program.
Modules: 
1. Toggle Button (THIS IS REQUIRED)
2. Individual Stats
3. Summary of Stats
4. Stats per mode
5. Stats per class [Still testing, will release soon]
Pick and choose the features you want by getting only those modules. I strongly suggest that all modules are downloaded for the full experience. Note that the first module (Toggle Button) is REQUIRED for all other modules to work.
Descriptions: 
1. Toggle Button
-This adds in a toggle button to enable or disable stats collection. This is REQUIRED for all other modules to work.
2. Individual Stats
-This simply collects the stats at the end of every match as individual entries into a composite file. If so desired, you can sort them, do analysis, graph them, create other data visualizations, etc.
3. Summary Stats
-This provides basic data analysis on all the data ever collected. This does NOT rely on the individual stats module.
4. Stats per mode
-This collects stats based on what mode they were collected in and provides basic data analysis.
5. Stats per class
-This collects stats based on what class they were collected in and provides basic data analysis.
Screenshots: 
1. Toggle:
2. Files:
3. Individual Stats:
4. Summary Stats:
5. Mode Stats:
6. Class Stats:
Limitations: 
-There will be no record if you don’t get any points or you quit in the middle of a match. I have lots of reasons for the former, but the latter is very much fixable.
-These plugins will crash if you edit the values inside the saved files improperly. I mean that if you, for example, substitute letters where the numbers are, the plugins will complain that a number wasn’t found in that particular place. Strange results might also occur if the tabbed column format is modified. These values shouldn’t really be edited anyways, so I didn’t spend the time to error check for them.
-Multi-stage maps (cp_dirtbowl, arena, etc) will have stats recorded at every stage with each progressive stage including the stats of the previous stages. This results in duplicate stat entries. I haven’t been able to think of a universal fool-proof method to address this issue.
Future Ideas off the top of my head: 
-the ability to view the stats in gg2 (perhaps main menu)
-shot accuracy
-stab accuracy
-sentries built
-sandviches eaten
-chat bubbles used
-number of taunts
-actual time played
*Note that I have not yet looked into the feasibility of any of these ideas. Also, my foreseeable future has become really busy, so I don’t think I’ll be able to check these things out soon.
Changelog: -V1.1, updated toggle button message
-V1, initial release
Version: Should work on all versions. Based on gg2 v2.4.5.
Conflicts: Should have no conflicts.
Credits: -Orpheon and RebelINS for helping me and answering my gg2 related questions.
-Lorgan for some code on toggle switches in the friendly fire plugin.
-BTW I am Infiltrator for some code on date/time calculations in the server usage plugin. (BTW, I added AM/PM logic into it)
*Note that these stats are purely offline, so nobody should care if cheating with the stats occur. It's supposed to be for fun.

Comments, ideas, bug reports, etc are all welcome. I hope that some will find this interesting and/or useful. Cheers.
