Fixes the score and gascan pour count from increasing when plugins use the 'point_prop_use_target' entity. Also respawns gascans when used for something other than a Scavenge event.
irogue - Reporting the problem and lots of help testing.
Don't Fear The Reaper - Lots of help testing.
Lux - Helping with version 2.0 method.
CVars:
Saved to l4d2_scavenge_score.cfg in your servers \cfg\sourcemod\ folder.
PHP Code:
// 0.0=Off. Any other value is number of seconds until respawning a gascan when used for something other than a Scavenge pour event.
l4d2_scavenge_score_respawn "20.0"
Changes:
Code:
2.5 (11-Dec-2022)
- Changes to fix compile warnings on SourceMod 1.11.
2.4a (19-Oct-2021)
- Wildcarded the .txt GameData signature for compatibility with "Left4DHooks" plugin version 1.64+.
2.4 (07-Oct-2021)
- Fixed not detecting Scavenge gascans the game respawns. Thanks to "a2121858" for reporting.
2.3 (06-Oct-2021)
- Added cvar "l4d2_scavenge_score_respawn" to set the timer until a Scavenge gascan is respawned.
- Now creates a cvar config saved as "l4d2_scavenge_score".
- Now respawns Scavenge event gascans when poured for something other than the Scavenge event.
- GameData file updated.
2.2 (03-Oct-2021)
- Added a delay to detect "point_prop_use_target" entities. Thanks to "a2121858" for reporting.
2.1 (25-Feb-2021)
- Fixed a mistake that would have broken the plugin if multiple 'point_prop_use_target' entities existed on the map.
2.0 (25-Feb-2021)
- Completely changed the blocking method. Now requires DHooks to properly block the call and prevent score bugs.
- Thanks to "Lux" for help with this method.
1.3 (10-May-2020)
- Various changes to tidy up code.
1.2 (05-May-2018)
- Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
1.1 (10-Aug-2013)
- Fixed a rare bug which could crash the server.
1.0 (16-Jun-2012)
- Initial release.