Garry's Mod

Garry's Mod

54 ratings
[TTT2] Weapon Statistics [FEATURE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
388.422 KB
19 Feb, 2020 @ 12:01pm
23 Feb @ 3:53am
11 Change Notes ( view )

Subscribe to download
[TTT2] Weapon Statistics [FEATURE]

In 1 collection by Tim | Mineotopia
[OFFICIAL] TTT2 Basics - Effects
9 items
Description
A simple addon that adds weapon information to the TTT2 targetID element.

https://discord.gg/Npcbb4W
https://github.com/TTT-2/ttt2-weaponstats (report issues here)

This simple addon adds information about the weapon you are looking at to the center of your screen. It does so by making use of the TTT2 targetID system.

You have to use TTT2 for this addon to work.

--
Credits:
Mineotopia: creator of this addon
25 Comments
dhkatz 12 Apr, 2022 @ 12:58am 
I submitted a PR to fix the issue with ArcCW weapons :)
dhkatz 11 Apr, 2022 @ 11:18pm 
There is indeed a bug with ArcCW weapons:

[[TTT2] Weapon Statistics [FEATURE]] lua/terrortown/autorun/client/cl_weaponstats_tid.lua:11: attempt to compare nil with number
1. GetAccuracyLangString - lua/terrortown/autorun/client/cl_weaponstats_tid.lua:11
2. fn - lua/terrortown/autorun/client/cl_weaponstats_tid.lua:83
3. Run - lua/ulib/shared/hook.lua:109
4. Run - gamemodes/terrortown/gamemode/client/cl_targetid.lua:285
5. unknown - gamemodes/terrortown/gamemode/client/cl_hud_manager.lua:39 (x87)
Tim | Mineotopia  [author] 16 Nov, 2021 @ 12:28am 
I have an idea, could you open an issue on GitHub so I don't forget about it?
Nighty 15 Nov, 2021 @ 8:10pm 
not sure if its a known issue, but it doesn't show stats if the weapons are spawned later in a round for example on ttt_lttp_kakariko_a5 only after picking up the weapon and dropping it
Tim | Mineotopia  [author] 3 Jun, 2021 @ 1:00am 
i breakts the names? any idea how? Because this addons does nothing with weapon names at all
hawky_ 3 Jun, 2021 @ 12:03am 
well, this breaks arccw weapon names. that's a rip-
Nighty 14 Dec, 2020 @ 11:28am 
what data does your addon need to work? i guess i could just add it
Tim | Mineotopia  [author] 14 Dec, 2020 @ 12:54am 
Your addon is not for TTT, this is probably the problem. You might want to use a TTT version of TFA, like this one maybe: https://steamproxy.net/sharedfiles/filedetails/?id=1551226871
Tim | Mineotopia  [author] 14 Dec, 2020 @ 12:53am 
If it doesn't work with TFA then they don't use the default weapon data system. I might take a look at it, but no promises
Nighty 13 Dec, 2020 @ 6:53pm 
this does not work with tfa weapons. i got this error:
[ulib-master] lua/autorun/client/cl_weaponstats_tid.lua:11: attempt to compare nil with number
1. GetAccuracyLangString - lua/autorun/client/cl_weaponstats_tid.lua:11
2. fn - lua/autorun/client/cl_weaponstats_tid.lua:72
3. Run - addons/ulib-master/lua/ulib/shared/hook.lua:109
4. Call - gamemodes/terrortown/gamemode/client/cl_targetid.lua:331
5. unknown - gamemodes/terrortown/gamemode/client/cl_hud_manager.lua:93
the ui will hide when looking at a weapon (only happens after dropping a tfa weapon somehow)

i was using those weapons https://steamproxy.net/sharedfiles/filedetails/?id=533104097