DoD Weapon Jam - Version 3.0 - 07.22.2009 - diamond-optic
Credits:
- Wilson [29th ID] (pdata offsets as well as a ton of other help)
Information:
- Weapons will randomly jam and the client will have to press their use key to clear the chamber (or reload depending on setting)
- Sometimes clearing the chamber fails, requiring multiple attempts - Chance of weapon jamming permanently - Specific weapon stays jammed even after dropping it - Enable/Disable losing 1 round in the clip when clearing the chamber - Weapons will not jam on a full clip (so you dont spawn with a jammed weapon)
SETTING_CHANCE 1200 //Chance of weapon jamming for each shot (1 in ### chance)
SETTING_RELOAD 1 //Reloading clears jammed weapons (on(1)/off(0)) SETTING_AMMO 1 //Clearing chamber subtracts 1 round of ammo (on(1)/off(0))
SETTING_PERM 50 //Chance of weapon jam to be permanent (0 = no perm jam) SETTING_FAIL 4 //Chance of clearing chamber failing (0 = always clears 1st time, 1 in ### chance)
SETTING_MAXPLAYERS 32 //Set to the number of slots your server has
Change Log:
- 07.23.07 - Version 1.0
Initial Release
- 09.12.07 - Version 1.1
Adjusted default jam chances just slightly
Stopped 'jammed' sounds from playing after round end
Added CVAR to control message style
Fixed jam sound from overlapping itself
- 01.29.08 - Version 2.0
Huge Rewrite, too many changes to list
- 07.22.09 - Version 3.0
Added command to force someones weapon to jam
Changed prethink forward over to HamSandwich
Removed CVAR to enable/disable jamming, just dont load the plugin instead
Changed CVARs to compiler defines
Bots will now get jams
Changed some default values
Decreased weapon ent search radius to stop affecting of guns on the ground
Improved some if statements
Removed 'Full Precache' ability as it doesnt seem to be an issue
Various other code improvements