Garry's Mod

Garry's Mod

[TTT] Floor Weapons Spawner
38 Comments
amit 30 Mar @ 5:07am 
only ttt?:steamfacepalm:
[LCB] BassGaming 26 Sep, 2024 @ 7:48am 
Oooh very cool, thanks for the link The Stig!

Some say that he codes his mods while participating in races...
He also once made a git commit during the Rally Montecarlo.
All we know is that he's called The Stig!!!
glitchhunter09 25 Sep, 2024 @ 2:52pm 
I am guessing this doesn't work in single player... I want something like this that does...
The Stig  [author] 12 Sep, 2024 @ 4:17am 
[LCB] BassGaming 11 Sep, 2024 @ 6:37pm 
This mod is a pretty huge gamechanger. Our lobby size doesn't matter anymore and every map is playable. One thing which would be neat would be a convar to adjust grenade spawns per player. We have a lot of random gimmicks in the grenade slots lying on the ground.

Anyways, thanks a lot for your mod and work!
Prof.Profanity 24 Aug, 2024 @ 3:31am 
ITS THE STIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

+rep to the stig
MEDIC 5 Aug, 2024 @ 8:06am 
only ttt gamemode?
CaptainCow 31 Jul, 2024 @ 4:18pm 
It was 100% an issue on my end and resetting the convars like you suggested seemed to fix it. Thank you so much for taking the time to try so many things and being so thorough its above and beyond and I really appreciate it. Hope you have a great rest of your week
The Stig  [author] 29 Jul, 2024 @ 6:01am 
@CaptainCow I can't find what the problem is myself, I used your collection on a newly installed server and guns were spawning. I tested on gm_construct and ttt_dolls. I also tested on a local server as well.

My only suggestion is to try replicating this with this as the only mod installed, if it works, then try slowly enabling mods until it breaks again. (And let me know what mod is breaking things)

Otherwise you may have messed too much with some of the convars, if you delete all the convars from this mod from your server config that might be it.

There's also of course the option of a server reinstall, but that might be a bit drastic. These are all generic suggestions, there's not much I can do to help you if I can't replicate the problem myself.
CaptainCow 28 Jul, 2024 @ 12:51pm 
About a year ago I was using this addon with my friends and it was great but recently for the life of me I can't get it to work? I don't get any kind of error codes in the console but the guns simply don't spawn and my workshop collection hasn't changed much since then do you have any idea what the issue might be?

Here's the collection I'm using if you're curious: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2045522859

Thank you so much for the help! =)
The Stig  [author] 5 Feb, 2024 @ 7:48am 
You don't need to type anything into the console, the mod works automatically.
All of the commands listed above are used for changing the settings of this mod.
AstoraNoble 1 Feb, 2024 @ 12:46am 
theres no ttt_floor command prompt when i type it into the console, don't know if im using this correctly?
The Stig  [author] 30 Jan, 2024 @ 1:48am 
@ELA Any map
AstoraNoble 29 Jan, 2024 @ 8:24pm 
does this work on any map or specifically chosen ttt maps?
牛栏山辉夜 18 Nov, 2023 @ 7:19am 
Very good mod, thank you for your hard work:steamthumbsup:
The Stig  [author] 18 Nov, 2023 @ 1:11am 
Depends if the map already has enough guns or not.

I’ve tried my best to balance the settings of the mod to only add guns to maps when necessary. Maps that already have plenty of guns won’t be affected by this mod.
牛栏山辉夜 17 Nov, 2023 @ 11:21pm 
That is to say, will it make maps that are already ttt produce more guns?
The Stig  [author] 13 Nov, 2023 @ 3:22pm 
Yes, only on maps that need more guns
牛栏山辉夜 13 Nov, 2023 @ 4:31am 
Will it affect weapon spawning on ttt maps?
dhkatz 8 Apr, 2023 @ 2:37am 
I left a comment on the other addon what I found too
dhkatz 8 Apr, 2023 @ 2:23am 
It was on a map that normally does not have weapons.

I was using it in combination with the rearming base addon (which is also giving errors): https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2601478453

I managed to fix the rearming base errors by just adding some isfunction checks to skip certain things because TTT2 removed some functions.

Once I fixed the rearming base this addon stopped throwing the error.
The Stig  [author] 8 Apr, 2023 @ 2:13am 
@Doctor I would rather not add a nil check to that error and let it error so people can tell me when they are getting it, it's been something I've been trying to track down for a long time now. The error implies there are no autoSpawnable weapons found in weapons.GetList(), which is very weird and at this point I can only assume TTT2 is doing something I don't know about.

Can you tell me some more info on how you got that error? Were weapons actually spawning or not? How often did the error occur? First round only? Every round? Some rounds? Do you have a collection of the mods you were using?
dhkatz 8 Apr, 2023 @ 1:59am 
Been receiving this error in console. Not sure if something else is causing it. I am on TTT2.

Lua Error: [[TTT] Floor Weapons Spawner] lua/autorun/server/ttt_floor_weapons_giver.lua:264: attempt to index local 'randWepPistol' (a nil value) 1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:264

Seems like you need some nil checks
The Stig  [author] 27 Feb, 2023 @ 8:45pm 
@TheMysticR Try it now. I've included the base TTT function this mod uses as part of the mod itself so whatever was stopping it from being loaded for you shouldn't be a problem anymore.
The Stig  [author] 27 Feb, 2023 @ 8:29pm 
@TheMysticR I see you have a TTT collection that has TTT2, which is known to cause problems with this mod. That error message might help me pin down the problem though.
MutantBison, PhD 26 Feb, 2023 @ 11:13am 
Ahhh, that makes sense. Thanks very much for the info and the link! And thanks for making that mod for some other maps too.

I’m looking forward to trying them out with my friends in TTT.
TheMysticR 26 Feb, 2023 @ 7:01am 
Hey! I used this mod without a problem. But now it doesn't work anymore and the Consol shows this:

[[TTT] Floor Weapons Spawner] lua/autorun/server/ttt_floor_weapons_giver.lua:105: attempt to call field 'GetSpawnableSWEPs' (a nil value)
1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:105

[[TTT] Floor Weapons Spawner] lua/autorun/server/ttt_floor_weapons_giver.lua:260: attempt to index local 'randWepPistol' (a nil value)
1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:260
The Stig  [author] 26 Feb, 2023 @ 4:26am 
@LarryBoy101 That would be this other mod of mine: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2615356912

It only works with a limited number of maps though. It was what I made and used for TTT before I updated this mod.
MutantBison, PhD 25 Feb, 2023 @ 10:28pm 
Do you know if the Yogscast used this mod for the GTA map in their latest TTT video?

I can't seem to find a version of that map for TTT on the workshop, but the weapon spawns in the video look to be quite a lot different than the pile of guns this mod provides at the map spawn. Just wondering how they got weapons and spawns working to play TTT on that map.
Serylt 2 Feb, 2023 @ 9:54am 
Will take a look in the next few weeks, thanks! <3
:lunar2019piginablanket:
The Stig  [author] 2 Feb, 2023 @ 2:04am 
This mod just received a major update to spawn weapons on maps that don't have any or not enough. See the settings above to adjust things as you like, enjoy!
Serylt 3 Oct, 2022 @ 1:25pm 
No worries. I am also surprised at the fact that it sometimes *works*, sometimes *doesn't work - but doesn't throw an error* and also *rarely never works and always throws an error in this case*.

That's typical GMOD weirdness. It's also a completely server-side error with no errors on client side being shown.

I'm quite busy myself but maybe I'll unpack your addon at some date and give you a note once I find something (but probably not before December, or so).
The Stig  [author] 2 Oct, 2022 @ 11:10pm 
Wow does TTT2 really override the weapon kind system? That's totally not gonna break anything...
Unfortunately TTT2 is a mystery to me and making my 100 or so mods all compatible with TTT2, Sandbox, etc. is not a priority atm.
Serylt 2 Oct, 2022 @ 9:14am 
I found the error. No clue what causes it.

[[TTT] Floor Weapons Giver] lua/autorun/server/ttt_floor_weapons_giver.lua:66: attempt to index local 'randWepPistol' (a nil value)
1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:66
Serylt 8 Sep, 2022 @ 1:32pm 
I'll have another look, and if I find something I'll let ya know.
The Stig  [author] 6 Sep, 2022 @ 7:15pm 
I imagine it would given how simple it is, but I haven’t tested it myself
Serylt 6 Sep, 2022 @ 12:48pm 
Hey there, great mod!

But does this work with TTT2?
Fyxen 4 Sep, 2021 @ 2:38am 
uwu