Garry's Mod

Garry's Mod

58 个评价
[TTT2] Weapon Statistics [FEATURE]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 写实
文件大小
发表于
更新日期
389.004 KB
2020 年 2 月 19 日 下午 12:01
8 月 22 日 下午 1:37
13 项改动说明 ( 查看 )

订阅以下载
[TTT2] Weapon Statistics [FEATURE]

在 Tim | Mineotopia 的 1 个合集中
[OFFICIAL] TTT2 Basics - Effects
10 件物品
描述
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 条留言
dhkatz 2022 年 4 月 12 日 上午 12:58 
I submitted a PR to fix the issue with ArcCW weapons :)
dhkatz 2022 年 4 月 11 日 下午 11:18 
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  [作者] 2021 年 11 月 16 日 上午 12:28 
I have an idea, could you open an issue on GitHub so I don't forget about it?
★ Nighty 2021 年 11 月 15 日 下午 8:10 
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  [作者] 2021 年 6 月 3 日 上午 1:00 
i breakts the names? any idea how? Because this addons does nothing with weapon names at all
hawky_ 2021 年 6 月 3 日 上午 12:03 
well, this breaks arccw weapon names. that's a rip-
★ Nighty 2020 年 12 月 14 日 上午 11:28 
what data does your addon need to work? i guess i could just add it
Tim | Mineotopia  [作者] 2020 年 12 月 14 日 上午 12:54 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1551226871
Tim | Mineotopia  [作者] 2020 年 12 月 14 日 上午 12:53 
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 2020 年 12 月 13 日 下午 6:53 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=533104097