Ulysses

General => Developers Corner => Topic started by: jcoolj13 on February 07, 2017, 10:01:28 AM

Title: How to make custom weapons not spawn around the map?
Post by: jcoolj13 on February 07, 2017, 10:01:28 AM
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?
Title: Re: How to make custom weapons not spawn around the map?
Post by: iViscosity on February 07, 2017, 10:13:17 AM
Found this (http://ttt.badking.net/rearm-guide) after a quick Google search.

Sent from Tapatalk. Owner of iViscosity Gaming.

Title: Re: How to make custom weapons not spawn around the map?
Post by: Bytewave on February 07, 2017, 01:09:29 PM
Found this (http://ttt.badking.net/rearm-guide) after a quick Google search.

Sent from Tapatalk. Owner of iViscosity Gaming.


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 (http://ttt.badking.net/custom-weapon-guide).
Title: Re: How to make custom weapons not spawn around the map?
Post by: iViscosity on February 09, 2017, 08:32:24 AM
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 (http://ttt.badking.net/custom-weapon-guide).

Ohhhh, I thought he meant edit the spawn locations for weapons, not make a weapon not spawn. I get it now.