Are workshop addons not allowed to edit the "gamemodes/terrortown" folder?
I have a TTT weapons addon on the workshop with the SWEP files placed in the addon's "gamemodes/terrortown/entities/weapons" folder. There's a bit of a problem with this. When a server/user is subscribed to the addon, none of the weapons will spawn (Yes, the map script is set to spawn them). It's as if Gmod doesn't recognize that the files are there, but when the SWEP files are extracted with gmad and placed in "garrysmod/gamemodes/terrortown/entities/weapons" folder, everything works fine.
As a workaround for now, I have the SWEP files in the addon's "lua/weapons" folder, and it works fine in TTT, but it causes problems when I use the TTT Weapon Placer to create map scripts because sandbox tries to load the weapons as well.
Is there a way for an addon to use the "gamemodes/terrortown" folder? Or is there another way to have the addon work and only load the SWEPs in TTT?
Any help is appreciated, thanks.
Addons that use a gamemodes folder won't work iirc. Just put it in lua/weapons.
Alright, is there something I could put in the SWEP files so they would only load in TTT?
You can either check for a random TTT global, or, GAMEMODE_NAME == "terrortown"
Will do, thank you.
Sorry, you need to Log In to post a reply to this thread.