Provides automatic ammo refill and restock to Counter Strike: Source
Refill, when enabled, will fill the magazine clip when you get a kill.
Refill can be limited to headshots only.
Restock, when enabled, will give a box of ammo when you run out.
The weapon lookup for refill uses integer instead of string comparison to reduce CPU usage,
and only when the weapon is first picked up.
The ammo lookup for restock uses the weapon's ammo type as an array index to get the box size.
Servers using this mod: GameTracker sm_replenlite_version
Place compiled plugin (sm_replen.smx) into your plugins folder.
The configuration file (replen.cfg) is generated automatically.
Changes to replen.cfg are read at map/plugin load time.
Changes to cvars made in console take effect immediately.
Deathmatch Lite Respawn
Added sm_replenlite_headshot as of v1.3; add this to replen.cfg if you wish to use it.
Problems, Bug Reports, Feature Requests, and Compliments:
Please send me a private message at http://forums.alliedmods.net/private...=newpm&u=46596
Include a detailed description of how to reproduce the problem. Information about your server,
such as dedicate/listen, platform (win32/linux), game, and ip address may be useful.
I prefer to keep the plugin thread cleared so people don't have to wade through pages of fodder.
The community will be given a chance to address any bug reports that are posted in the plugin thread.
If you want a direct response from me, send a private message.
Compliments are always welcomed in the thread.
I developed this plugin as part of my SM Gun Menu Lite project.
Configuration Variables (Change in replen.cfg):
- sm_replenlite_refill - Enable/Disable Clip Refill. (Default: "1")
- sm_replenlite_headshot - Enable/Disable Clip Refill only on headshot. (Default: "0")
- sm_replenlite_restock - Enable/Disable Ammo Restock. (Default: "1")
Development Files (not for server):
1.5 <-> 2012 - 11/25 LumiStance
Added guns for CS:GO
Bulk of CacheClipSize() now from code generator
1.4 <-> 2011 - 06/29 LumiStance (946 downloads)
Remove code to log unknown ammo_type
1.3 <-> 2011 - 06/28 LumiStance (2 downloads)
Add code to allow refills only on headshot
Improved refill to prevent unneeded reload
1.2 <-> 2011 - 06/28 LumiStance (2 downloads)
Refactored code to SetFailState if FindSendPropOffs fails
Improved client_index validation in Event_HandleReserveAmmo() and Event_HandleAutoReload
Add code to log unknown ammo_type for player name and weapon
Add code to validate ammo_type
1.1 <-> 2011 - 06/05 LumiStance (83 downloads)
Add code to automatically create configuration file
1.0 <-> 2011 - 06/04 LumiStance (8 downloads)
_gunids.pl - Generates code for CacheClipSize()