Garry's Mod

Garry's Mod

Not enough ratings
[TTT] Total Statistics
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
39.114 KB
18 May, 2020 @ 12:47pm
12 Jun, 2020 @ 12:07pm
11 Change Notes ( view )

Subscribe to download
[TTT] Total Statistics

In 1 collection by beans?
beans?'s TTT addons
4 items
Description
Note: This addon only works with trouble in terrorist town (TTT). However, this addon works with both native TTT and original Custom Roles for TTT .

Description
This addon aims to collect data about rounds of TTT and its players. The statistics can be viewed by pressing the button which is available when a player is dead, in spectator mode or at the end of the round.

Statistics include:
  • Each player's % win rate as each role
  • Number of times each player has played each role
  • Each players most successful traitor pairings
  • Server-wide average role win rates
  • Number of rounds each player has played
  • How often each player is the first person killed
  • How many innocents each player has killed as the detective
  • How many innocents each player has killed as an innocent
  • How much cumulative fall damage each player has taken

Stats are collected and stored in a .txt file serverside. The client can view these stats but can't change them.

Server console commands
ttt_totalstatistics_reset (clears all currently stored data)
ttt_totalstatistics_printplayerstats (prints the a debug view of everyone's current stats to the console)

Acknowledgements
Code was written by myself and tested by friends (thx big bois <3).

Check out my other addons.

If you have any comments, improvements or bugs that need fixed let me know!
(also please rate up if you like it <3)

11 Comments
Fitizen 2 Aug, 2024 @ 7:34pm 
Hi, does this work for TTT2? Thanks.
nPuKoll 2 Oct, 2021 @ 2:09pm 
hi, why is the addon not downloaded in gma format? I need to translate it into Russian :)
beans?  [author] 31 Dec, 2020 @ 9:29am 
@Mr J saw that I'd made a typo in the description above, you should type "ttt_totalstatistics_reset" into the console. Failing that, go into your gmod folder in your computer files and go into "GarrysMod\garrysmod\data\ttt\ttt_total_statistics" and just delete the text file in there, the code will just recreate a fresh one once you start a new server
beans?  [author] 31 Dec, 2020 @ 9:25am 
@Blackcatmaxy Yeah I really thought about doing that but I'd have to rewrite the massive parts of the code because the teams are different and the roles are slightly changed, I might get round to it one day
beans?  [author] 31 Dec, 2020 @ 9:24am 
@Nikolai sorry for never getting back to you on this, glad you've enjoyed it. I'm quite busy these days but if I find some time I'll make sure to add your suggestion as it should be very straightforward!
Joelzz 26 Nov, 2020 @ 1:06am 
this is a great mod!! do you have any idea how to reset the statistics though? as the command is not working for me... or i may be using it wrong
Blackcatmaxy 14 Aug, 2020 @ 5:03pm 
Would be nice to get support for Town of Terror more roles mod
Wyros 14 Aug, 2020 @ 12:26pm 
I don't know why it doesn't works for me.
Le Croisé 18 Jun, 2020 @ 9:18am 
Very nice addon that adds interesting statistics to the games played. Already installed on my server and the players enjoyed :happymeat:

Is it possible to add a statistic for the first blood that could also be called "How many times did each player make the first kill"? I found another addon that only displays the first blood count for each player and the same for the first to get killed, but it will duplicate your addon that I found much better.
beans?  [author] 30 May, 2020 @ 4:27pm 
Thank you so much FrostCop!