Garry's Mod

Garry's Mod

评价数不足
[TTT] Total Statistics
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 写实
文件大小
发表于
更新日期
39.114 KB
2020 年 5 月 18 日 下午 12:47
2020 年 6 月 12 日 下午 12:07
11 项改动说明 ( 查看 )

订阅以下载
[TTT] Total Statistics

在 beans? 的 1 个合集中
beans?'s TTT addons
4 件物品
描述
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 条留言
Fitizen 2024 年 8 月 2 日 下午 7:34 
Hi, does this work for TTT2? Thanks.
nPuKoll 2021 年 10 月 2 日 下午 2:09 
hi, why is the addon not downloaded in gma format? I need to translate it into Russian :)
beans?  [作者] 2020 年 12 月 31 日 上午 9:29 
@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?  [作者] 2020 年 12 月 31 日 上午 9:25 
@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?  [作者] 2020 年 12 月 31 日 上午 9:24 
@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 2020 年 11 月 26 日 上午 1:06 
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 2020 年 8 月 14 日 下午 5:03 
Would be nice to get support for Town of Terror more roles mod
Wyros 2020 年 8 月 14 日 下午 12:26 
I don't know why it doesn't works for me.
Le Croisé 2020 年 6 月 18 日 上午 9:18 
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?  [作者] 2020 年 5 月 30 日 下午 4:27 
Thank you so much FrostCop!