Description
This plugin hides/shows the equipped items on clients back/belt.
Features- Allow configuring which items should be displayed on clients back/belt.
Cvars
A configuration file named "
l4d_display_equipments.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// [L4D1] Which equipped items should display on clients back/belt.
// 0 = None, 1 = Kit, 2 = Pills, 4 = Pipe Bomb, 8 = Molotov, 16 = Primary Weapons, 32 = Pistols, 512 = Tongue.
// Add numbers greater than 0 for multiple options.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1023.000000"
l4d1_display_equipments_display "0"
// [L4D2] Which equipped items should display on clients back/belt.
// 0 = None, 1 = Primary Weapons, 2 = Secondary Weapons, 4 = Throwables, 8 = Kit/Defib/Packs, 16 = Pills/Adren, 32 = Tongue, 128 = Diesel.
// Add numbers greater than 0 for multiple options.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
l4d2_display_equipments_display "0"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_display_equipments_enable "1"
Related Game Cvars- [L4D1 only] survivor_draw_addons => 0=hides all items, 1=hides healthpack, pills and throwables, 2=shows all items. (default: 2)
Admin Commands
- sm_print_cvars_l4d_display_equipments => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- This was achieved by changing the player m_iAddonBits netprop value on PostThinkPost.
- Only survivors are affected since for infecteds the netprop is always 0.
- The smoker tongue around the survivor also has a related value to display.
- [L4D1 only] has the survivor_draw_addons cvar that already does something similar.
- [L4D2 only] Diesel starts to display in the 3rd chapter of "Rain Hard" campaign.
- [L4D2 only] Flag 64 is a hidden defibrillator model that doesn't appear to be used in-game.
Thank you!
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_display_equipments.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.