Author
|
|
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
|
Plugin ID:
|
4157
|
Plugin Version:
|
1.0.0
|
Plugin Category:
|
Gameplay
|
Plugin Game:
|
Team Fortress 2
|
Plugin Dependencies:
|
|
Servers with this Plugin:
|
|
| |
Plugin Description:
|
Load a set of weapon restrictions
|
Unapprover:
|
|
Reason for Unapproving:
|
no longer maintained by author
|
|
|
04-04-2014
, 17:26
[TF2] Weapon Restrictions
|
#1
|
Description
[TF2] Weapon Restrictions is a plugin to restrict weapons to only specific weapons and disallow all others.
Weapon lists are loaded from configuration files in the sourcemod/configs/tf2-weapon-restrictions directory. Weapons can be specified either by class or by item definition index.
Dependencies
SourceMod 1.5.0 or newer
TF2Items 1.6.0 or newer
Features- Weapon Restriction Lists can be changed on the fly.
- Has a forward that is called whenever weapon sets are changed:
Code:
public TF2WeaponRestrictions_RestrictionChanged(const String:restrictionName[])
- Plugins can change weapon sets using the native
Code:
TF2WeaponRestrictions_SetRestriction(const String:restrictionName[]);
- Has options to restrict buildings, wearables, action slot items, etc...
- Has option to default to blacklist (allow nothing except listed items) or whitelist (allow everything except listed items)
- Sample files included are: melee (melee only, all classes), medieval (Medieval mode), meleeplus (not finished, imitates the TF2 Melee plugin's melee_mode 0 restrictions)
CVars/Commands
CVars- tf2_weapon_restrictions_version - Displays the version number
- tf2_weapon_restrictions_enable - Set to 0 to disable plugin.
Commands- weaponrestrict [setname] - Loads a weapon restriction set. Set to "none" to unload all restrictions. Restricted to admin Kick flag by default.
Changelog
Known Issues- If an Engineer is alive when weapon loadouts are changed, his buildings will all be destroyed due to Valve's wrench change mechanic.
- Switching item sets will heal all currently alive players to full.
Future Plans
- Eventually, this plugin will support changing weapons when a player spawns. However, this has one major drawback: Doing it for Engineer melee weapons will cause their buildings to blow up when they respawn.
- Subplugins for voting will eventually come around
- A subplugin for sudden death will probably be around soon.
__________________
Not currently working on SourceMod plugin development.
Last edited by Powerlord; 10-31-2014 at 11:12.
|
|
|
|