Garry's Mod

Garry's Mod

70 个评价
消耗品轮盘菜单
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 卡通, 角色扮演,
文件大小
发表于
更新日期
47.293 KB
9 月 26 日 下午 9:34
10 月 18 日 上午 3:32
7 项改动说明 ( 查看 )

订阅以下载
消耗品轮盘菜单

描述
这是啥?

绘制了一个轮盘菜单来自动使用被选中的消耗品,需要受支持的mod订阅至少一个mod才会有消耗品可用。

如果你喜欢在原版半条命2战斗里引入“使用消耗品”这个环节的话,那这个菜单就为你提供了一个便捷、美观的快速管理入口,并且可以对菜单部分样式进行调整。

没get到这mod做了啥?本质上相当于是给受支持的mod做了个简化专属Q键生成菜单。消耗品专属菜单?为什么给消耗品做?详见FAQ。

特性(真有必要么)

  • 图标主体菜单

  • 可配置

  • 迷你文件大小

  • 低绘制开销

  • 物品自动使用与移除

  • 无强绑定,自由取舍mod

  • 本地化(自带了简中翻译)

怎么打开菜单?

默认按住H键。注意,第一次订阅或者你清空了client.vdf里存的convar参数的话,菜单里会默认什么都没有,去Q键菜单里自己添加想要的物品。

在哪自定义?

Q键菜单 -> 选项 -> Quick Radial Menu

Items控制哪些物品添加到菜单里。
Menu控制菜单相关选项。



已知问题

  1. 打开菜单时,某些三方绘制准星无法被隐藏。准星是否能被隐藏取决于每个武器作者绘制的实现方式。这个情况并不严格属于我的问题。附注:由于引起该问题的原因会理所应当的千奇百怪,所以我不会去解决专门这个问题。

  2. 在之前的版本中,当手中武器为“某些武器”时去呼出菜单使用物品,会导致使用逻辑无法预期进行。这个问题可能与64位测试版有关(我没用标准分支,所以标准32位版有没有问题不清楚)。目前的更新(25年10月18日)加了个额外判定,不过由于这个问题的尿性,会导致手中拿着“问题武器”去使用物品后不能切回去,只能切到别的武器*。

    *有些物品本身实现就有问题,就算拿的不是“问题武器”你也会切到别的武器上去。目前除了EFT和潜行者2的俩消耗品mod是正常的,剩下几个都有这个毛病。(如果你没读懂,意思就是除了前面俩mod,其余mod你无论拿不拿“问题武器”,使用后都会随机切到你携带的别的武器,而不是切回你在使用前手上拿的武器)

    已知有问题的武器:物理枪,部分半条命2武器(9mm, SMG, 霰弹枪, RPG, 撬棍等)。注意,尽管有些武器使用了这些v模但却没有这个问题(如飞锯枪、钢矛枪);且只在原版纯净时有这个问题,也就是你没用各种乱七八糟的原版武器v模替换的前提下。

  3. 捡取提示会在使用物品中以及之后的几秒内暂时消失,这是因为我想沉浸式一点,所以给加了个计时器和布尔值去动态开关。



FAQ

  • 为什么不是通用的菜单?

    因为菜,做不来。

    • 图标适配,不是所有武器图标都是透明背景。 所以像实时携带武器菜单这种,一是实现会简化不少(让这个菜单mod失去意义),二是会图标不统一很难看(有违初衷)。

    • 自动使用与移除特性。是的,这个特性的实现非常之坑爹。不可能做到一招鲜。

    • “消耗品”本身的实现方式导致的耦合,使得没法用某种统一的状态或变量去获取“消耗品”的关键信息,就更别谈后续了。此外,我也没找到更多类似带动画的消耗品mod。

    • 由于更新说明的原因,把最早的小趣事给删了,这里重新说下吧。我做这玩意一开始是想给潜行者2的消耗品做个快捷键绑定使用的,最后为了醋包了盆饺子。

  • Bug?

    菜单本身会涉及到的边缘条件我基本都考虑了,应该没啥问题。至于多人能不能用,由于涉及网络传输延迟,某些和时间挂钩的分支逻辑可能会出问题,但我不会去修,因为我不玩多人。多人模式有问题别来找我。
热门讨论 查看全部(4)
0
10 月 18 日 上午 6:55
置顶: Known Issues
Oversights2006_
0
10 月 18 日 上午 4:12
置顶: Localization (Multi-Language) Wanted!
Oversights2006_
0
10 月 3 日 上午 9:57
置顶: Supported Mods
Oversights2006_
16 条留言
Oversights2006_  [作者] 2 小时以前 
@oliverhappleton Well, short answer is, no. While it's possible to make it happen, but consider the cooldown was completely a temporary decision. Further to say, implement separate timer introduced more complexity, and the gameplay balance somehow is not actually what I've concerned (the whole menu was pretty anti-fun, isn't it? As how it works, a dedicated spawnmenu).

Currently I got no plan put any update on this menu mod, perhaps adding other tiny details shall be fine, but since we're talking about balance change, at this moment, no. A better code design and related idea would be essential if doing so.
oliverhappleton 10 月 27 日 上午 4:51 
Random question. Is there any way to have separate cool-downs on different items? so more powerful items, like medkits, take a longer time to recharge than others weaker items, like food.
Oversights2006_  [作者] 10 月 19 日 下午 8:22 
@Taro Sairasu Truly weird, the issue probably is same as @Zmetankin reported. Mod failed to initialize due to missing "include .lua". Try use this mod with any required mod only, clear your console (~ key) log, and see if console printed any info mentioned about "failed" or "WARNING" when you loaded into a map. And, did it throw any .lua error? Report any of suspicious things, that's helpful to locate where went wrong.

Then, you can try re-subscribe this mod to see if it helps. I'll do a check later.
Taro Sairasu 10 月 19 日 下午 5:52 
Its telling me I don't have the required mods but I have all of them.. and the options menu isnt appearing so i can equip them? It was working a week ago. no idea what happened.
Oversights2006_  [作者] 10 月 18 日 下午 12:57 
@Zmetankin Of course it won't work, cause I have no idea how you managed to get file missing from an archive, paranormal activity I guess?

To be simple, unsubscribe my mod and make sure it's nuked, then re-subscribe again and also make sure it's downloaded correctly.

I suppose you didn't unpack it to your legacy addon folder so there's no overriding files existing.

If you still have same issue after retry, I will share a cloud link tomorrow then you could use a solid copy instead, since either your end got cursed, or your network being haunted.

I don't provide Exorcism service anyway.
Zmetankin 10 月 18 日 上午 11:36 
I created a local server with just your mod and SCP SL consumables. I ended up with two lua errors and no settings in the Q-menu. At first I played a single player game with this mod and a few others, but I'm completely sure it wasn't them, as only your mod and the previously mentioned one ran further.

[Consumables Oriented Quick Radial Menu] Couldn't include file 'radialmenuconfigs\supportedmods.lua' - File not found or is empty (@lua/radialmenu/supportedmodloader.lua (line 1))
1. unknown - lua/radialmenu/supportedmodloader.lua:1
2. include - [C]:-1
3. unknown - lua/autorun/client/cl_radial_menu.lua:82

[Consumables Oriented Quick Radial Menu] lua/radialmenu/supportedmodloader.lua:23: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. getActivatedRadialMenuModConfigItems - lua/radialmenu/supportedmodloader.lua:23
3. unknown - lua/autorun/client/cl_radial_menu.lua:84
Oversights2006_  [作者] 10 月 18 日 上午 9:19 
I tested both on local server and p2p network just now, only one problem is "drinks swep" cannot auto-fire as intend if holding a "bug weapon" which I stated at today's update, means under most cases there got no problems at all.

Plus, customization in Q-menu is 100%-client-side and worked fine during test absolutely. So now you please tell me what exactly gone wrong on your end since I cannot reproduce any "MP" issue by my side.
Oversights2006_  [作者] 10 月 18 日 上午 8:52 
@Zmetankin What kind of "doesn't work"? Your description is completely pointless. Did it threw any .lua error? Or at what step it stopped working? The menu drawing? The item giving? The item using?
Zmetankin 10 月 18 日 上午 8:13 
The mod doesn't work in multiplayer. Do you know what the problem might be?
Fir Mavour III 10 月 13 日 上午 7:00 
I think you probably need to make ur description a bit more clear and simpler, or maybe not that aggressive imo, no offensive.