-
Notifications
You must be signed in to change notification settings - Fork 92
How to convert maps to use other weapon packs
Navigate to your garrysmod folder. From there go into: garrysmod/data/nz/ and open the one you want to convert.
Press CTRL + A to select the whole text file, and while its highlighted copy it.
Go to this website (or any other JSON editor)
Then delete everything in the left hand column, and paste what you copied from the text file.
On the right hand side you will see some dropdown icons. Feel free to edit any other information, but we'll edit just the wall guns.
Click on the wallbuys dropdown, and you will see incrementing numbers. Open number 1, and you will see 4 fields.
Example:
angle : {0.0938 538.8438 0}
pos : [2203.9688 -532.6563 -205.9688]
price : 1200
wep : weapon_sim_trenchgun
Change the price to whatever you like, and change the wep to the weapon you want to replace it with. E.g fas2_ak47
Once you finished modifying it click save file to disk.
When you've saved/downloaded the new config, you will notice its now a .json file. Open this json file in a text editor and copy everything (CTRL+A then CTRL+C) and then paste it into the old config, replacing the old config.
Reload the config by reloading the map.
Congratulations, you successfully converted / modified your config.