General > Developers Corner
How to make custom weapons not spawn around the map?
(1/1)
jcoolj13:
Hello, I own a TTT server and I want to make it where specific weapons not spawn around the map. How would I be able to do this?
iViscosity:
Found this after a quick Google search.
Sent from Tapatalk. Owner of iViscosity Gaming.
Bytewave:
--- Quote from: iViscosity on February 07, 2017, 10:13:17 AM ---Found this after a quick Google search.
Sent from Tapatalk. Owner of iViscosity Gaming.
--- End quote ---
Right site, wrong section.
If it's a custom weapon, simply make sure the type is WEAPON_EQUIP* or (and more preferably for primary/secondary weapons) set SWEP.AutoSpawnable to false to disable ttt_random_weapon entities from spawning the weapon.
See the custom weapon guide.
iViscosity:
--- Quote from: Bytewave on February 07, 2017, 01:09:29 PM ---Right site, wrong section.
If it's a custom weapon, simply make sure the type is WEAPON_EQUIP* or (and more preferably for primary/secondary weapons) set SWEP.AutoSpawnable to false to disable ttt_random_weapon entities from spawning the weapon.
See the custom weapon guide.
--- End quote ---
Ohhhh, I thought he meant edit the spawn locations for weapons, not make a weapon not spawn. I get it now.
Navigation
[0] Message Index
Go to full version