L4D2 ONLY
Description
This plugin replicates the behavior of not allowing to pickup the same melee weapon twice.
In vanilla game, all weapons and carryables works like that,
except for melees.
Features- Block picking up a melee if the same is already equipped.
- Allow ignoring the block for melees that are the same but have different skins.
Cvars
A configuration file named "
l4d2_same_melee_equip_block.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Check if both melees are the same but have different skins to allow being equipped.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_block_equip_same_melee_check_skin "1"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_block_equip_same_melee_enable "1"
Admin Commands
- sm_print_cvars_l4d2_same_melee_equip_block => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- L4D2 only cause there are no melees in L4D1.
Thank you!
- HarryPotter - for requesting a way to pickup the melee when the skin is different.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d2_same_melee_equip_block.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.