Garry's Mod

Garry's Mod

[TTT2] Weapon Statistics [FEATURE]
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://steamhost.cn/steamcommunity_com/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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=533104097
Rainer Wahnsinn 30 Jun, 2020 @ 8:35am 
@Tim, Thank you, Ill Try
Tim | Mineotopia  [author] 29 Jun, 2020 @ 11:18pm 
@Rainer: Then you have an addon that overwrites targetID. Advaced disguiser or identity swapper are two that I know of
Rainer Wahnsinn 29 Jun, 2020 @ 5:44pm 
Doesnt Work at all on my Server. I cant even see the Weapon Names
Tim | Mineotopia  [author] 2 Mar, 2020 @ 3:12pm 
it was basically one added line :)
mexikoedi 2 Mar, 2020 @ 2:58pm 
Already seen it ;), you are really fast. Thanks for your work.
Tim | Mineotopia  [author] 2 Mar, 2020 @ 2:50pm 
done.
mexikoedi 27 Feb, 2020 @ 10:07am 
Okay, that would be nice, but yeah no big deal, only something i noticed.
Tim | Mineotopia  [author] 27 Feb, 2020 @ 10:00am 
garrysmod has no scaling for high resolution displays. Therefore we added such a feature for TTT2 itself. We might use this for menues etc as well
mexikoedi 27 Feb, 2020 @ 9:46am 
Oh okay, yeah it's not a serious issue. Sometimes it's hard to read. I'm playing on 2k.
Tim | Mineotopia  [author] 27 Feb, 2020 @ 9:44am 
Since it just uses the TTT2 system, no, sadly not. Maybe we'll add a scale factor in TTT2 for the targetID stuff.
Are you playing on 2k or 4k?
mexikoedi 27 Feb, 2020 @ 9:41am 
I have another thing to ask. Is it possible to make it look bigger?
Tim | Mineotopia  [author] 25 Feb, 2020 @ 11:32pm 
No. It uses a feature of TTT2, called targetID. It does nothing without it
Yoda 25 Feb, 2020 @ 11:32am 
does it work in sandbox?
Tim | Mineotopia  [author] 21 Feb, 2020 @ 3:48pm 
Good idea. I can add this tomorrow.
mexikoedi 21 Feb, 2020 @ 12:40pm 
Nice addon, looks good in ttt2 but is there a Damage Indicator like in this addon: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=300375321 ?