jump.tf Forums
Welcome B)

Block B.A.S.E. Jumper and other weapons at server level

RNC1839

  • Proficient
  • ****
    • Posts: 499
    • Frags: +0/-0
    • View Profile
Step 0:
Install sourcemod

Step 1:
Download TF2Items plugin 1.6.0 or later
http://builds.limetech.org/?project=tf2items


Step 2:
Download TF2 Weapon restrictions
https://forums.alliedmods.net/showthread.php?p=2120214

Step 3:
Install the plugins, if you don't know how to do that then rip.

but seriously, extract the download and drag the 'addons' folder into the main 'tf' folder of the server. ezpz.

Step 4:
Make a config.

To block just the base jumper all you need is the following
Spoiler (click to show/hide)

Save the file as 'whateveryouwant'.cfg
Drag it into tf/addons/sourcemod/configs/tf2-weapon-restrictions
From my limited testing, you do need both the class and index of the base jumper for the block to work.

Step 5: RCON/Server command time
Load the plugins: sm plugins refresh
Start the blocker: tf2_weapon_restrictions_enable 1
Load the config: weaponrestrict 'whateveryouwant'

Step 6:
There is no step 6



Other Notes:
I recommend putting the new commands into your server.cfg
tf2_weapon_restrictions_enable 1
weaponrestrict 'whateveryouwant'

To block other weapons use these
https://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes

If a weapon is really new go here and ctrl+f the name of the weapon and use that index and class (if it's a unique class)
http://git.optf2.com/schema-tracking/plain/Team%20Fortress%202%20Client%20Schema?h=teamfortress2

If you're lazy here are a few jumping related ones
Spoiler (click to show/hide)

This probably isn't the best way of doing it, but it's certainly how I will.
« Last Edit: June 19, 2014, 04:41:11 PM by RNC1839 »


AI

  • Administrator
  • Proficient
  • *****
    • Posts: 414
    • Frags: +0/-0
  • Plugins Developer
    • View Profile
    • Jump Academy

SimplyJpk

  • Newbie
  • *
    • Posts: 13
    • Frags: +0/-0
  • Just Jump ~ Owner
    • View Profile
You can block things such as base jumper just by using TF2items, I used to do it on my HighTower Server. But works same way on my Jump Server. (Bit more complex then your way though, but 1 less plugin at least)

Just have to edit the "configs/tf2items.weapons.txt" that tf2items supplies.

"custom_weapons_v3"
{
   "*"
   {
      "1101" // Item Index
      {
         "1"            "640;0" // Attribute Index + Value
      }
   }
}

That'll block the Base jumper from opening at all.

some weapons, If you just use the Item index and only set Damage "1;1" It'll work just like stock weapon of that slot. (some weapons need other attributes to adjust)
« Last Edit: May 20, 2015, 11:29:44 PM by SimplyJpk »