DoD Smoke Grenades 2 - Version 1.6 - 07.29.2009 - original: Zor - modified: diamond-optic
Credits:
- Zor: original DoD Smoke Grenades plugin (v0.7a) - Original Thread: -link-
Information:
- Allows you to throw smoke grenades... obviously...
- Seperate loadouts for each class - Voice command to yell out "Smoke Em!" with flood protection - Take damage when another player hits you with their smoke grenade - Choking sound & damage within a certain radius of a grenade
- Psychostats compatible log messages (registers as a new weapon)
- File consistency on the smoke sprite, no more cheaters replacing it..
SETTING_FLOODTIME 2.0 //How many seconds between using 'voice_smokeup' command
SETTING_SPREAD 80 //Spread (from the grenade itself) SETTING_SIZEMIN 15 //Minimum smoke sprite size SETTING_SIZEMAX 70 //Maximum smoke sprite size SETTING_SPRITES 4 //Number of smoke sprites created each second SETTING_DURATION 15.0 //How many seconds grenades will give off smoke SETTING_THINKTIME 1.0 //How many seconds between creating new smoke puffs
SETTING_DELAYSTART 2.0 //How many seconds after throw till grenade gives off smoke SETTING_DELAYTHROW 1.0 //How many seconds to delay between each throw
SETTING_CHOKE 1 //Turn on(1)/off(0) choking SETTING_CHOKERADIUS 75.0 //Radius from smoke grenade for choking SETTING_CHOKECHANCE 2 //1 in # chance of playing choking sound
SETTING_DAMAGE 1 //Turn on(1)/off(0) choke damage SETTING_DAMAGEAMT 5 //Amount of damage given when choking SETTING_DAMAGECHANCE 3 //1 in # chance of giving damage while choking
SETTING_DAMAGEHIT 1 //Turn on(1)/off(0) hit damage (when grenade hits a player) SETTING_DAMAGEHITAMT 20 //Amount of damage given per hit
SETTING_MSGJOIN 0 //Shows commands 30 seconds after player has joined the server SETTING_MSGSPAWN 0 //Shows how many smoke grenades you have when you spawn SETTING_MSGTHROW 1 //Shows how many smoke grenades you have left after throwing one
SETTING_WARNACTION 2 //Inconsistent file action setting // 0 = do nothing // 1 = kick // 2 = ban
SETTING_BANTIME 15 //Inconsistent file ban action length
SETTING_AMXBANS 0 //Inconsistent file ban action amxbans support // 0 = off // 1 = on // 2 = on, alternate syntax
SETTING_MAXPLAYERS 32 //Max Player count for your server (keeping at 32 should be fine tho)
SETTING_MAXSMOKE 25 //Sets the max number of smoke grenades allowed at once // * Be careful messing with this one (default setting: 25) // * Setting this too high could make your server vulnerable to crashing
FULL_PRECACHE 0 //Controls whether all files are precached or not // * If you find that some sounds dont work, enable this // * If you get 'file not precached' errors, enable this
Extra:
- If using AMXBans for the file consistency, I recommend that you check out the following link for a fix for the banning: * -link-
- If you run the ps_heatmaps plugin, for creating spatial stats for creating heatmaps in PsychoStats 3.1+, I recommend that you check out the following link for a fix for that plugin recreating suicide log msgs * -link-
- I also recommend that you check out one of the following links for fixing a possible problem that may occur with the DoD Stats & Stats Logging plugins that come with AMXX (as well as an improved display name) * -link- * -link-
Change Log:
- 04.25.07 - Version 1.0
Finally Released
- 06.24.07 - Version 1.1
Fixed a cvar mistake (this also fixes incorrect hit damage)
Changed returns to FMRES on fakemeta forwards
Added CVAR to control delay between throws
Added MAX_SMOKE define to limit max smoke nades at once
Hopefully fixed the consistency function from hooking all bad files
Removed default DoD sounds from precache (dod already precaches them)
Added FULL_PRECACHE define to enable precaching all files
Improved weaponstats log msgs and added victim's death
Fixed bug with setting user kills
Various changes & improvements throughout the code
- 07.30.07 - Version 1.2
Fixed rare runtime error in damage/choke functions
Adjusted default choke/damage radii
Slight changes to consistency messages
- 11.05.07 - Version 1.3
Fix for annoying sound loop on stuck grenade
- 12.25.08 - Version 1.4
Various code improvements
Added custom weapon support
Adjusted nade spin and velocity
Bots now will get smoke nades (for future plans)
Increased default choke radius to 75
Changed some variables to static's
Replaced ResetHud & RoundState forwards with PStatus method
Added PCVAR usage to mp_friendlyfire queries
Added PCVARs to class grenade limit CVARs
Renamed 'dod_smoke_warncrc' CVAR to 'dod_smoke_bad_warn'
Added 'dod_smoke_bad_action' CVAR to control consistency response
Added 'dod_smoke_bad_bantime' CVAR to set length of ban action
Added 'dod_smoke_bad_amxbans' CVAR to enable amxbans support
Improved file consistency stuff
Fixed throwing sound covering up weapon fire
Now you cant throw nades while shooting
Added simulated throwing animation
Checks for godmode before giving damage
Changed touch & think forwards over to HamSandwich
- 07.08.09 - Version 1.5
Made the inconsistent file kick/ban reason a little shorter
Replaced PStatus spawn hook to HamSandwich
Changed most of the CVARs into compiler defines
Changed the order of some if statement checks
Various other code improvements
- 07.29.09 - Version 1.6
Fixed choke/damage chance method
Fixed choking function (had an integer where it should have been a float)