Garry's Mod

Garry's Mod

Not enough ratings
[TTT] Weapon Spawn Ratio Mod
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Movie, Realism
File Size
Posted
2.450 KB
16 Jun, 2023 @ 4:43pm
1 Change Note ( view )

Subscribe to download
[TTT] Weapon Spawn Ratio Mod

In 3 collections by Corvatile
Corvatile's TTT Weapons
9 items
All of Corvatile's TTT Addons
20 items
Essential TTT Quality of Life Addons
26 items
Description
The Weapon Spawn Ratio Mod is a server addon for Trouble in Terrorist Town that balances the ratio of the various weapon types that appear at random weapon spawn points.

When the round begins, these spawn points normally select an item from the spawnable weapon pool at complete random and then spawn it in that location. This works fine for classic TTT but when you introduce lots of custom weapons to the pool of the spawnable items it can be problematic if the ratio of sidearms, grenades and heavy weapons is uneven. For example, if the server has lots of custom heavy weapons but no custom grenades then the map can become saturated with heavy weapons and have almost no grenades anywhere.

This addon seeks to remedy this problem by altering the way the random weapon spawn points work.

With this addon enabled, instead of choosing the item at complete random, weapon spawn points have given probabilities of spawning each item type equivalent to the 3:3:5 ratio of the vanilla item pool:
  • 28% of spawned items will be sidearms.
  • 28% of spawned items will be grenades.
  • 44% of spawned items will be heavy weapons.

Note that custom weapons that do not conform to one of these three weapon slots (e.g. custom melee weapons) will not appear at random spawns around the map if you use this mod.

Thanks to wget for help with making this.



Check out some of the other TTT addons I've made...

[TTT] Hellcrane (Custom Map)
[TTT] Extra Randomats for TTT Custom Roles
[TTT] Lift Grenade (Custom Weapon)
6 Comments
Deedestroyer 7 Mar @ 9:56pm 
Any way to adjust the ratio? Essentially I'm trying to have some custom weapons spawn on a very low percentage and thus only have roughly 1 spawn per map.
Corvatile  [author] 15 Feb @ 3:03am 
It's mystifying
Mr. Napkins 13 Feb @ 9:58pm 
So no sandbox?

(This is a joke. I just saw that and started laughing. I'm sorry. Steam points sent.)
kale rarely 13 Sep, 2024 @ 2:58pm 
@MEDIC i want to study you under a microscope
Corvatile  [author] 13 Sep, 2024 @ 1:10pm 
This addon is designed for how weapons spawn on the map in TTT. It wouldn't do anything in Sandbox and I don't really know what you think it would.
MEDIC 12 Sep, 2024 @ 4:39am 
sandbox supported?