Stops people from using weapons specfied in a cvar.
Cvars:
sm_wpnblock - Enable/disable plugin
Commands:
sm_wpnblock_add - Add a blocked weapon.
sm_wpnblock_clear - Clear list of blocked weapons.
sm_wpnblock_list - List blocked weapons.
Example:
Code:
sm_wpnblock "1"
sm_wpnblock_clear
sm_wpnblock_add "tf_weapon_flaregun"
sm_wpnblock_add "tf_weapon_pipebomblauncher" // Blocks flareguns and sticky launchers
TF2 Weapons:
Scout: tf_weapon_scattergun (both scatterguns), tf_weapon_pistol_scout, tf_weapon_lunchbox_drink, tf_weapon_bat, tf_weapon_bat_wood
Soldier: tf_weapon_rocketlauncher, tf_weapon_shotgun_soldier, tf_weapon_shovel
Pyro: tf_weapon_flamethrower (both flamethowers), tf_weapon_shotgun_pyro, tf_weapon_flaregun, tf_weapon_fireaxe (both axes)
Demoman: tf_weapon_grenadelauncher, tf_weapon_pipebomblauncher, tf_weapon_bottle
Heavy: tf_weapon_minigun (both miniguns), tf_weapon_shotgun_hwg, tf_weapon_lunchbox, tf_weapon_fists (both fists)
Engineer: tf_weapon_shotgun_primary, tf_weapon_pistol, tf_weapon_wrench, tf_weapon_pda_engineer_destroy, tf_weapon_pda_engineer_build (people can still use console commands to build)
Medic: tf_weapon_syringegun_medic (both syringe guns), tf_weapon_medigun (both mediguns), tf_weapon_bonesaw (both saws)
Sniper: tf_weapon_sniperrifle, tf_weapon_smg, tf_weapon_club
Spy: tf_weapon_revolver, SAPPER?, tf_weapon_knife, tf_weapon_pda_spy (can still disguise with console commands)