Restrict to just selected weapons


(Fang) #1

I know this question has probably been asked before but I can’t find it… I’ve spent hours looking for an answer to this question.

I would like to setup a mod / set variables for a gibbing practice for our clan and would like to restrict weapons to the following selection

  1. Knife
  2. Single Pistol
  3. Grenades
  4. Med Paks
  5. Syringe (med not adrenaline)
  6. Ammo Paks

No other weapons or specialties. Is this possible or what would be required to make this mod


(djmels) #2

I expect there isn’t a CVAR to do this, never come across it anyway… So you’re up to either changing some weapon scripts (the .weap files in pak0.pk3) to either completely disable their selection if possible, or when you’re desperate you could just set the starting ammo for all the disabled weapons to 0, disabling them in the beginning. if a player picks up an ammo pack, he will have ammo for it though, so be sure to set the damage levels to 0 or something…


(SCDS_reyalP) #3

.weap files don’t control that.
You’d have to do it in gamecode. Look for the g_knifeonly stuff as an example.

If you don’t want to code, disabling XP, soldier weapons, and riflenades with etpro would get you fairly close.


(No1_sonuk) #4

Alternatively, you could do the training under the same conditions as playing. i.e. leave things as they are.


(djmels) #5

Due to lack of time, I’m a bit into assuming stuff lately, sorry :wink:


(Fang) #6

ok so my next stoopid question is where can I find the source so that I can look through it and try to code this.