Garry's Mod

Garry's Mod

Not enough ratings
Total Statistics for New Custom Roles
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun
File Size
Posted
Updated
32.113 KB
7 Jul, 2021 @ 5:31pm
23 Mar, 2022 @ 4:21pm
5 Change Notes ( view )

Subscribe to download
Total Statistics for New Custom Roles

In 1 collection by Squid Matty
Collection 1
171 items
Description
Note: This addon only works with trouble in terrorist town (TTT). However, this addon works with both native TTT and new 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)

DISCLAIMER
This does not work with the old version of Custom Roles at this time.

All credit for the original mod goes to Beans?

Based on: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2101272062

Source: https://github.com/squidserv/TTT_Total_Statistics_CR


Special thanks to Malivil for help making the files smaller