安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题










The convars reset after manually changing them and switching maps because this mod in theory could create a ton of convars and blow up your server.vdf way too much.
What you have to do is first find the classname of the weapon you want to change (with the command in the guide I put on GitHub),
Then change the stat you want like _damage, or disable the weapon with _enabled 0,
Then put that line into your server’s server.cfg, or if you’re not using a dedicated server and just are hosting from the main menu of Gmod then put it into your Gmod install’s listenserver.cfg
Then on changing maps the stats and disabled guns will change, you don’t need to restart the server, but you do need to at least change to a different map for changes to take effect.
I'am using TTT2 addon which I could see maybe causing some conflict. Otherwise I'm kinda lost on what to do. You mention this working for any weapon most likely, but in the github say to put the convar lists into the server.cfg. So would I need to create a something based on your convar examples for other untested addons for it to work?
I'm not sure if I've missed some step, but if your able to point me in the right direction of research. That'd be appreciated.
[ulib] lua/autorun/stig_generic_weapon_changes.lua:76: attempt to index field 'Primary' (a nil value)
1. fn - lua/autorun/stig_generic_weapon_changes.lua:76
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109