Hi,
At the moment I have the default weapon files in the garrysmod/gamemodes/terrortown/entities/weapons directory. I have both the folder and the file (not in the folder, of the same name, but in the same directory). An example of this is 'weapon_ttt_knife' file is not in the 'weapon_ttt_knife' folder, but in the same directory as it. I am not sure whether this has any relevance or not, but thought it should be stated just in case.
I have tried to edit the Primary.Damage of the knife. I use Filezilla, open the file, edit it, save it, and re-upload the file back into the server. However, when I hit 'restart' on my server to get the changes to take place, it resets all these back to it being original. This also means I can not change anything, even stopping the guns from spawning.
I have previously submitted a ticket, yet they asked me to make a post here and so I have.
I would greatly appreciate any help any of you may have on this situation.
Many Thanks
Webby
Editing Original Weapon Files
-
- New to forums
- Posts: 3
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Dec 18, 2014 4:56 pm
Re: Editing Original Weapon Files
I know it is extremely uncool for me to do this, but could anyone that knows the answer please help me out.
Thank you so much in advance.
Thank you so much in advance.
Re: Editing Original Weapon Files
If you don't want any of your changes to core gamemode files to be overwritten, the easiest way would be to append "_modded" to the end of the gamemode folder name, and the gamemode-folder-named txt file inside the same folder. So for TTT, the gamemode folder name would be "terrortown_modded", and inside it you'd find "terrortown_modded.txt" - this makes GMod act like you're still running terrortown, so they sort the server into the appropriate section in the browser.
The downside to this, however, is that you will have to manually update the gamemode every time there's an update.
While it may be the easiest way to do it, the cleanest way would be to write a Lua script to do what you want, outside of the gamemode files. Though you'll need to know a bit about Lua to do so.
The downside to this, however, is that you will have to manually update the gamemode every time there's an update.
While it may be the easiest way to do it, the cleanest way would be to write a Lua script to do what you want, outside of the gamemode files. Though you'll need to know a bit about Lua to do so.