tModLoader

tModLoader

201 个评价
Ammo Tool
3
2
   
奖励
收藏
已收藏
取消收藏
模组端: 客户端
tModLoader版本: 1.4.3, 1.4.4
语言: 英语
文件大小
发表于
更新日期
112.330 KB
2022 年 10 月 18 日 下午 9:39
4 月 25 日 上午 8:30
11 项改动说明 ( 查看 )

订阅以下载
Ammo Tool

描述
Ammo Tool is a utility mod that allows players to attach ammo types to specific weapons while in the inventory; simply right click on a weapon while holding a valid ammo item on your cursor.

Any ammo items that match a weapon's attached types will be prioritized on use, and can be cycled using a bindable hotkey (Left-Shift by default).

General compatibility with modded ammo and weapon items is included.
引用自 tModLoader AmmoTool
Developed By QuestionMark
热门讨论 查看全部(1)
2
2024 年 5 月 3 日 上午 11:50
Weapon Enchantments/Vacuum Bags Incompatability
andro951
60 条留言
QuestionMark  [作者] 5 月 16 日 上午 5:27 
Right click the item without holding ammo
Silvia 5 月 15 日 下午 3:20 
Can you unassign ammo?
QuestionMark  [作者] 4 月 26 日 下午 3:00 
Glad to hear!
Rhoenicx 4 月 26 日 下午 1:54 
With the latest version (v1.0.5) it works as intended, perfect!
QuestionMark  [作者] 4 月 25 日 上午 7:19 
I probably wasn't aware of the hook at the time of writing. Thanks for pointing that out!
Rhoenicx 4 月 24 日 下午 7:43 
Addition to my comment below: Looked through the code and I see you increase stack size by 1 inside the global RightClick hook. Is there a reason ConsumeItem hook was not used?
Rhoenicx 4 月 24 日 下午 7:37 
Fellow mod creator here. When I right click my weapons with ammo the stack size of the item is increased by 1 (which shouldn't happen because maxStack is 1). I have ConsumeItem hook return false. I expect this mod does some kind of countermeasure to not have the item consumed? For example +1 on the stack?
QuestionMark  [作者] 4 月 1 日 下午 1:56 
The mod might fail if you have any other mods affecting inventory right-click behaviour or ammo consumption mechanics. If that's the case, there's not much I can do
Mr_N 4 月 1 日 上午 4:37 
Not to be rude but the mod is not fucking working. I tried shit with vanilla guns and ammo but no it doesn't work. I looked everywhere to make this work but I guess my ranger calamity loadout idea is fucked.
Love you, Ace 2024 年 12 月 14 日 下午 7:42 
bro said fuck no in the nicest way possible : ( )