View Single Post
Author Message
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 07-14-2012 , 17:16   [CS:S] Default weapon clips (magazines) (V0.5.2, 03.10.2020)
Reply With Quote #1

I had so many problems with maps who had spawners which gives you weapons without secondary ammo.
Of course there are also maps which lets you spawn with weapons without secondary ammo.
This Plugin fills up a picked up weapon's secondary ammo with their default/defined ammo upon first use, useful for maps with bad spawners or gamequips.
You should never ever get a weapon in your hand without secondary ammo.
Weapons are only filled once per pickup and round.


Cvars
  • sm_default_weapon_clips_version
    • Plugin version (Not changeable)

Installation:
  • Put "default_weapon_clips.smx" in your "../addons/sourcemod/plugins" directory.
  • Load the plugin or change the map
  • Have fun

Requirements
  • If you want to compile the plugin yourself, you need to obtain the SMLIB library
  • Optional: Updater

Credits:
Berni, Chanz and the contributors for their SMLIB library which i use to work with weapons.


Notes
Plugin will not compile on the forums due the dependence of SMLIB
You can define the weaponvalues yourself by editing the plugin and recompile it.
If you add weapons for other games yourself it should work for them too, though i have not tested it.
Yes i know that none of the weapons in the game use a clip.


CHANGELOG
Attached Files
File Type: smx default_weapon_clips.smx (7.5 KB, 148 views)
File Type: sp Get Plugin or Get Source (default_weapon_clips.sp - 190 views - 3.7 KB)
__________________

Last edited by Impact123; 10-02-2020 at 23:52. Reason: v0.5.2
Impact123 is offline