Author Topic: How to make custom weapons not spawn around the map?  (Read 2003 times)

0 Members and 2 Guests are viewing this topic.

Offline jcoolj13

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
How to make custom weapons not spawn around the map?
« 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?

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: How to make custom weapons not spawn around the map?
« Reply #1 on: February 07, 2017, 10:13:17 AM »
Found this after a quick Google search.

Sent from Tapatalk. Owner of iViscosity Gaming.

I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: How to make custom weapons not spawn around the map?
« Reply #2 on: February 07, 2017, 01:09:29 PM »
Found this 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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: How to make custom weapons not spawn around the map?
« Reply #3 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.

Ohhhh, I thought he meant edit the spawn locations for weapons, not make a weapon not spawn. I get it now.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.