View Single Post
Author Message
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 12-25-2011 , 13:36   [L4D2] Upgrade packs BUG FIX
Reply With Quote #1

Fix bug with weapon upgrade pack on servers more than 8 players.

Upgrades from upgrade pack can get by all survivor players, upgrade pack on ground item removed after all survivor players get upgrades.

Convars:
l4d2_upgradepackfix_incendammomulti - Multiplier for Incendiary Ammo Pickup Amount, default 2.0
l4d2_upgradepackfix_explosiveammomulti - Multiplier for Explosive Ammo Pickup Amount, default 1.0

Install
Place l4d2_upgradepackfix.smx to the sourcemod/plugins
Place upgradepackfix.txt to the sourcemod/gamedata.

Notice:
If this plugin will use more cpu then recompile plugin with (it's not garantee it will work properly)

PHP Code:
#define HARDCHECKS 0

Changelog:
1.6 (for game patch 2.1.2.5 or later)
- Fixed gamedata signatures and offsets for 2.1.2.5 patch.
1.6
- Fixed error messages
- Fixed crash on linux servers
- Multiplu now in float and can be from 0.01 to 100.00
1.5
- Fix server crash after "The Sacrifice" update.
1.4.update (no version change)
- Updated offsets for Linux servers.
1.4
- Fixed bug when upgrade packs not reseting at every round.
1.3
- Again corrected bug when one player could take upgraded ammo repeatedly. Full fixed.
1.2
- Added cvar to control plugin version
- Changed MAXPLAYERS to MaxClients
1.1
- Added CTerrorPlayer::FindUseEntity function sign to upgradepackfix.txt
- corrected bug when one player could take upgraded ammo repeatedly
1.0
- Initial version

---------------------------------------------------------------------
See also other my extensions and plugins fixes 8+ bugs:
- [L4D2] Infected Fix Spawn
- [L4D2] Defibrillator Bug Fix
- [L4D2] Upgrade packs BUG FIX
- [L4D2] 8+ players Bug Fixes
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_upgradepackfix.sp - 13321 views - 8.5 KB)
File Type: txt upgradepackfix.txt (772 Bytes, 8002 views)

Last edited by psychonic; 07-16-2013 at 12:22. Reason: trying to fix cvar data in plugin header
V10 is offline