Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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