L4D2 ONLY
Description
This bug has been reported by
HarryPotter.
Some items like
scavenge gascans and
cola bottles have a noticeable glow in some game events (
scavenge / Whitaker's cola).
By default, when a survivor picks up an item, the game deactivates the glow of the equipped entity and when you drop it, the glow is restored.
But, if a survivor instantly dies while holding these items, then it's glow doesn't return, this may also happen if you use the "take a break" option.
It explains why sometimes I feel that some gascans seem "missing" from the maps.
This plugin returns the glow every time a holding item is dropped.
Features- Returns the glow to an item when it is dropped.
Steps to Reproduce
- Go to some map that has scavenge events (c1m4_atrium/c6m3_port/c14m2_lighthouse) or play a map in scavenge gamemode.
- Hold a scavenge gascan.
--------------------------------------------------
OR
- Use the "take a break".
- Wait until the bot drops the gascan.
- Join back.
--------------------------------------------------
- Check the gascan glow, it disappeared.
Cvars
A configuration file named "
l4d2_weapon_drop_glow_fix.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_weapon_drop_glow_fix_enable "1"
Admin Commands
- sm_print_cvars_l4d2_weapon_drop_glow_fix => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- I don't know if there is some side effect on reactivating the glow on pickup, but from my tests, seems safe.
- This bug is more noticeable on scavenge gascans and cola bottle events, but the fix is applied for all equipable items.
- This fix also applies to some weapon drop plugins (e.g [L4D2] Weapon Drop) that doesn't return the glow back.
Thank you!
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d2_weapon_drop_glow_fix.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.