Step 0:Install sourcemod
Step 1:Download TF2Items plugin 1.6.0 or later
http://builds.limetech.org/?project=tf2itemsStep 2:Download TF2 Weapon restrictions
https://forums.alliedmods.net/showthread.php?p=2120214Step 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
"weapon_restrictions"
{
"name" "jump"
"default" "allow"
"allow_buildings" "1"
"allow_action_items" "1"
"indexes"
{
"1101" //base jumper
{
"deny" "1"
}
}
"classes"
{
"tf_weapon_parachute" //base jumper
{
"deny" "1"
}
}
}
Save the file as 'whateveryouwant'.cfg
Drag it into
tf/addons/sourcemod/configs/tf2-weapon-restrictionsFrom 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 timeLoad the plugins:
sm plugins refreshStart the blocker:
tf2_weapon_restrictions_enable 1Load 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 1weaponrestrict 'whateveryouwant'To block other weapons use these
https://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_IndexesIf 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=teamfortress2If you're lazy here are a few jumping related ones
Put these in the indexes section
"127" //direct hit
{
"deny" "1"
}
"130" //The Scottish Resistance
{
"deny" "1"
}
"265" //sticky jumper
{
"deny" "1"
}
"307" //caber
{
"deny" "1"
}
"414" //liberty launcher
{
"deny" "1"
}
"996" //loose cannon
{
"deny" "1"
}
"1101" //base jumper
{
"deny" "1"
}
"1104" //air strike
{
"deny" "1"
}
Put these in the classes section
"tf_weapon_parachute" //base jumper
{
"deny" "1"
}
"tf_weapon_rocketlauncher_airstrike" //air strike
{
"deny" "1"
}
This probably isn't the best way of doing it, but it's certainly how I will.