Garry's Mod

Garry's Mod

Not enough ratings
[TTT] Floor Weapons Spawner
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun
File Size
Posted
Updated
14.827 KB
3 Sep, 2021 @ 5:52am
12 Jun, 2024 @ 12:45am
10 Change Notes ( view )

Subscribe to download
[TTT] Floor Weapons Spawner

In 1 collection by The Stig
The Stig's TTT Mod List
286 items
Description
Automatically spawns guns/ammo on the ground of maps that don't have enough, automatically arms any Gmod map to make it playable with TTT!
Also gives guns to anyone who doesn't have any when a round properly begins.

Forget about manually adding guns to maps ever again, with this mod, you can now add maps without having to worry if they're properly armed!

Settings
Put the words in italics in your listenserver.cfg if hosting a game from the main menu,
(Usually located at:
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\cfg)

or your server's server.cfg if hosting from a dedicated server.


Misc Settings
ttt_floor_weapons_giver [0 or 1]
Default: 1, whether this mod is on or off

ttt_floor_weapons_replace_default_guns [0 or 1]
Default: 1, whether any default TTT guns already on the ground of a map, such as the H.U.G.E. or Glock, are automatically replaced by random guns of the same ammo type


Weapon Giving Settings
ttt_floor_weapons_giver_active [0 or 1]
Default: 1, whether to give weapons to players at the start of a round

ttt_floor_weapons_giver_delay [number]
Default: 0.2, seconds after a round starts until floor weapons are given to players that don't have one

ttt_floor_weapons_giver_ammo [number]
Default: 2, when weapons are directly given to players, how many boxes of ammo are given alongside


Floor Weapon Spawning Settings
ttt_floor_weapons_spawner_active [0 or 1]
Default: 1, if a map has few or no guns, whether floor weapons are automatically spawned on the ground

ttt_floor_weapons_spawner_delay [number]
Default: 0.2, delay in seconds after everyone respawns for the next round, until weapons are spawned on the ground

ttt_floor_weapons_spawner_ammo [number]
Default: 2, how many boxes of ammo are spawned with a gun on the ground

ttt_floor_weapons_spawner_guns [number]
Default: 6, how many guns are spawned on the ground around the map per alive player, if the limit below is never reached

ttt_floor_weapons_spawner_limit [number]
Default: 350, how many weapons and ammo boxes can be on the map before guns and ammo stop being spawned, this includes existing guns and ammo already on the map, or ones added from a weapon script

ttt_floor_weapons_spawner_near [number]
Default: 4, number of guns to spawn near players that don't have a gun near them when everyone respawns for the next round, if the limit above is never reached
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://sp.zhabite.com/sharedfiles/filedetails/?id=2045522859

Thank you so much for the help! =)