Garry's Mod

Garry's Mod

367 个评价
TTT Better Equipment menu / Shop
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
文件大小
发表于
更新日期
13.705 KB
2017 年 8 月 11 日 上午 10:43
2019 年 2 月 4 日 上午 8:25
30 项改动说明 ( 查看 )

订阅以下载
TTT Better Equipment menu / Shop

在 Fresh Garry 的 1 个合集中
Fresh Garrys TTT Server Addons
386 件物品
描述
This is a Better Equipment menu / Shop Addon for TTT.

Features:
- Settings in the Settings Tab (F1)
- Searchfunction
- Sort items by name, slot and default
- Autobuy to buy a set of items by pressing a key
- Automatic autobuy at the beginning of every round
- Filter (Favorit and Autobuy)
- New favoritemarker and autobuymarker in the itemlist
- Tooltips nearly everywhere
- Configurable iconsize
- Configurable rows and colums in iconlist
- Closing the menu by pressing the key to open it (Def: C) again (Configurable)
- Configurable Colors with transperency
- Configurable markers in the iconlist
- fixed description function (ALPHA may not work 100% correct)
- Shows visual slot of items when they block a slot (BETA may not work 100% correct)
- Compatibility with TTT Vote + Totem ( http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=828347015 ) (ALPHA Works only if you install first this addon and then TTT Vote + Totem. To be shure that it works just reinstall both addons in the correct order.)
- Compatibility with TTT2 by Alf ( https://psteamcommunity.yuanyoumao.com/workshop/filedetails/?id=1357745995 )(ALPHA may not work 100% correct)


Usage:
The usage of the menu should be self explanatory exapt the usage of the autobuy. To use the autobuy script type "bind [your key] autobuy" in the console to bind the key you want to use for buying automatic and add or remove items to the autobuy list in the equipment menu.

ConVars:
ttt_bettermenu_fixeddesc | Enables or disables the fixed description button and function. Def: 1
ttt_bettermenu_defaultorder | The default order of the menu. (1 = Default, 2 = Name, 3 = Slot) Def: 1
ttt_bettermenu_closebypressc | Closes the menu when your pressing C and its open. Def: 1
ttt_bettermenu_iconsize | The items icon size in the menu. (16-1024) Def: 64
ttt_bettermenu_rows | The rows filled with items in the menu. (1-100) Def: 5
ttt_bettermenu_colums | The colums filled with items in the menu. (1-100) Def: 3
ttt_bettermenu_custommarker | Enables or disables the custommarker in the menu. Def: 1
ttt_bettermenu_favoritemarker | Enables or disables the Favoritemarker in the menu. Def: 1
ttt_bettermenu_slotmarker | Enables or disables the slotmarker in the menu. Def: 1
ttt_bettermenu_autobuymarker | Enables or disables the autobuymarker in the menu. Def: 1
ttt_bettermenu_autobuy_roundbegin | Enables or disables if autobuy should be runed on the beginning of every round. Def: 0
ttt_bettermenu_autobuymessage | Enables or disables the autobuy messages in the chat. Def:1
ttt_fgaddons_textmessage | Enables or disables the message in the chat. Def:1
ttt_bettermenu_TTT2_desc_item_info | Enables or disables the advanced TTT2 Item Info. Def: 0

Color ConVars (I recommend using the settings in F1 menu):
ttt_bettermenu_colors_window | The color of the EQMenu window (r g b a or nil). Def:nil
ttt_bettermenu_colors_tab | The color of the tabs in EQMenu (r g b a or nil). Def:nil
ttt_bettermenu_colors_box | The color of the boxes in EQMenu (r g b). Def:r90 g90 b95
ttt_bettermenu_colors_text_title | The text color of the type in EQMenu (r g b). Def:r255 g255 b255
ttt_bettermenu_colors_text_type | The text color of the type in EQMenu (r g b a). Def:r255 g255 b255 a255
ttt_bettermenu_colors_text_description | The text color of the type in EQMenu (r g b). Def:r255 g255 b255
ttt_bettermenu_colors_text_filter | The text color in a box which shows the filter in EQMenu (r g b a). Def:r255 g255 b255 a255
ttt_bettermenu_colors_text_good | The good text color in EQMenu (r g b a). Def:r0 g200 b0 a255
ttt_bettermenu_colors_text_bad | The bad text color in EQMenu (r g b a). Def:r220 g60 b60 a255
ttt_bettermenu_colors_text_slotcap | The text color on the slotcap in EQMenu (r g b a). Def:r255 g255 b255 a255
ttt_bettermenu_colors_item_outline | The outline color of the selected item in EQMenu (r g b a). Def:r255 g200 b0 a255
ttt_bettermenu_colors_item_darkened | The color which is subtracted from the icon if you cant by it in EQMenu (r g b a). Def:r255 g255 b255 a80

Credits:
The original code belongs to the Trouble in Terrorist Town Gamemode i just have edited it.
Some little parts of this addon belong to Gamefreak ( http://psteamcommunity.yuanyoumao.com/id/realgamefreak ). I used them to make this addon compatible with TTT Vote + Totem.
Credits by Alf (helping me with the compatibility)
I will remove this addon if I will be asked to.

Known Bugs:
- the compatibility with TTT Vote + Totem may not work (for tipps look at the discussion)

Feel free to report bugs!
热门讨论 查看全部(1)
9
2018 年 1 月 14 日 上午 3:35
置顶: ttt_Totem inkompatibel
TheSoulrester
165 条留言
Fresh Garry  [作者] 8 月 4 日 下午 12:44 
Hi,
unfortunately that is not possible and i dont have the time to implement it. But you can can suggest an implementation here: https://github.com/FreshGarry/TTT-BEM
Donald 8 月 1 日 上午 7:09 
Hey, is there a function to randomize the shop? Much like ttt random shop, sadly its not compatible with this menu :)
Fresh Garry  [作者] 7 月 21 日 下午 12:52 
I am sorry to hear that. I have no time to look into that atm. Is that also happening for others? Maybe somebody can suggest a fix here: https://github.com/FreshGarry/TTT-BEM
ElectroBlueGuy ⑨ 7 月 21 日 上午 8:06 
Gives this error when trying to open the shop with c

[[TTT] Better Equipment Menu] gamemodes/terrortown/gamemode/cl_equip.lua:982: attempt to call method 'IsActiveShopper' (a nil value)
1. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:982
2. unknown - lua/includes/modules/concommand.lua:54

And this one when opening the f1 menu

[[TTT] Better Equipment Menu] lua/vgui/dcombobox.lua:268: bad argument #1 to 'SetText' (string expected, got nil)
1. SetText - [C]:-1
2. SetValue - lua/vgui/dcombobox.lua:268
3. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:1771
4. Call - lua/dlib/modules/hook.lua:904
5. Show - gamemodes/terrortown/gamemode/cl_help.lua:188
6. unknown - gamemodes/terrortown/gamemode/cl_help.lua:195
7. unknown - lua/includes/modules/concommand.lua:54

Both with other addons and with no other addons installed on the server
Fresh Garry  [作者] 2024 年 11 月 17 日 下午 12:44 
Have you tried it when having every other addon disabled?
Jamero 2024 年 11 月 13 日 下午 2:59 
it seems that the addon does not work now unfortunately
Fresh Garry  [作者] 2023 年 9 月 22 日 上午 10:25 
Do you have any errors regarding bettermenu or is it possible that you are using incompatible addons? You could test it by deactivating the other addons and retry then.
nightcat 2023 年 9 月 22 日 上午 5:20 
says "unknown command: autobuy"
Fresh Garry  [作者] 2022 年 6 月 29 日 上午 3:46 
Hi,
unfortunetly that is not possible because the creaters of the weapons define the description in their addon.
JungYM2 2022 年 6 月 28 日 下午 5:28 
the explanation of each weapon