PDA

View Full Version : DoD Smoke Grenades 2 (v1.6)


diamond-optic
04-25-2007, 10:41 PM
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: http://www.dodplugins.net/forums/showthread.php?t=9
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..

- Server List: http://www.game-monitor.com/search.php?rulename=dod_smokegrenade2_stats
File Placement:

smoke_grenade.spr --> ../dod/sprites/
explode_smoke.wav --> ../dod/sound/misc/
cough1.wav --> ../dod/sound/player/
cough2.wav --> ../dod/sound/player/
brit_smoke.wav --> ../dod/sound/player/
ger_smoke.wav --> ../dod/sound/player/
us_smoke.wav --> ../dod/sound/player/
Commands:

throw_smoke //throws a smoke grenade
voice_smoke //yells out "Smoke Em!"
CVARs:

dod_smokegrenades "1" //Turn on(1)/off(0)

//Number of grenades each class spawns with:
dod_smoke_garand "2"
dod_smoke_carbine "2"
dod_smoke_thompson "1"
dod_smoke_grease "1"
dod_smoke_sniper "2"
dod_smoke_bar "1"
dod_smoke_30cal "2"
dod_smoke_bazooka "3"
dod_smoke_kar "2"
dod_smoke_k43 "2"
dod_smoke_mp40 "1"
dod_smoke_mp44 "1"
dod_smoke_scharfschutze "2"
dod_smoke_fg42 "1"
dod_smoke_scoped_fg42 "1"
dod_smoke_mg34 "2"
dod_smoke_mg42 "2"
dod_smoke_panzerjager "3"
dod_smoke_enfield "2"
dod_smoke_sten "1"
dod_smoke_marksman "2"
dod_smoke_bren "1"
dod_smoke_piat "3"
Compiler Defines:

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_WARN 2 //Inconsistent file warning setting
// 0 = say nothing
// 1 = tell admins
// 2 = tell public

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:
* http://www.dodplugins.net/forums/showthread.php?t=1421

- 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
* http://www.avamods.com/download.php?view.177

- 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)
* http://www.dodplugins.net/forums/showthread.php?t=1466
* http://www.avamods.com/download.php?view.176
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)
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.136

blobby
04-25-2007, 11:44 PM
WAY HAY Right m8 im away untill friday but as soon as i get back this will be on my server ill report back then Fan dabi Dosey m8 im chuffed even if it wont work LMAO

Regards

Blobby

scorpionsinz
04-26-2007, 11:30 PM
I will try this new version out on our server and see how it goes. Btw does anyone have an older version of metamod in teh 1.18a era? Since my update i have been having alot of crashes and problems loading maps. Thanks all.

diamond-optic
04-27-2007, 12:53 AM
well for this plugin (and probably most of the 'newer' plugins here) you need to have one of the more recent amxx versions.. like 1.7x at least (guessing i cant remember exact changelogs :P) which i believe require at least mm 1.19

blobby
04-27-2007, 11:39 AM
Ok m8 right what can i say appart from it is amazing and it fully works and the smoke spr is one of the best ones i have seen in time the plugin is amazing its full working no bugs no server crashes no errors my clan ias so pleased with this thanks alot m8 +KARMA for diamond-optic

Regards

Blobby

diamond-optic
04-27-2007, 08:42 PM
+KARMA for diamond-optic


hahahah :D

blobby
04-27-2007, 10:10 PM
:-) i also just added to my server the force cl_particle affects plugin that peed some peeps off LMAO another nice one m8 if only you was the guy doing the drop nades plugin

Regards

Blobby

diamond-optic
04-27-2007, 10:26 PM
i tried messing with the drop nades plugin a while back and ran into all sorts of problems...

wilson does a great job.. just he has a windows server so that would make it difficult for him to really even test any possible fixes for why linux servers are having trouble with the drop nades

blobby
04-27-2007, 11:24 PM
Well if he wants top try agine i will test it for him if he directs me into what he wants back from it as i am dying to get my hands on drop nades for linux

diamond-optic
04-27-2007, 11:47 PM
ya id like it too lol.. but i dont really like 'play testing' plugins on my dedicated lol.. especially since im usually only around when theres a lot of ppl playing.. but im sure he'll get it.. and i believe team06 was helping and thats a positive thing too

blobby
04-28-2007, 12:50 PM
Ive run into a small problem with this plugin now dimond m8 when i bind the throw_smoke command on its own it works but if i do the following to get also voice as i throw my smoke
alias smoke"voice_smoke;throw_smoke"
and then bind key smoke

it works untill i close dod then if i open dod agine the bind has gone and it also happens to my other members can you help me solve this as it is amazing to have the voice as you throw the nades

Regards

Blobby

=|[76AD]|= TatsuSaisei
04-28-2007, 02:58 PM
Ive run into a small problem with this plugin now dimond m8 when i bind the throw_smoke command on its own it works but if i do the following to get also voice as i throw my smoke
alias smoke"voice_smoke;throw_smoke"
and then bind key smoke

it works untill i close dod then if i open dod agine the bind has gone and it also happens to my other members can you help me solve this as it is amazing to have the voice as you throw the nades

Regards

Blobby


you dont need an "alias" to do this...

open config.cfg and manually write the bind in there ...

bind "f" "voice_smoke;throw_smoke"

MBosta
04-28-2007, 03:00 PM
wouldn't it be easier to just go ingame and type

bind "f" "voice_smoke;throw_smoke"

in console?

=|[76AD]|= TatsuSaisei
04-28-2007, 03:11 PM
wouldn't it be easier to just go ingame and type

bind "f" "voice_smoke;throw_smoke"

in console?

it would if you were not too smart and didn't have your config.cfg file read only...


TRUST ME .. you want config.cfg read-only .... and better yet.. you DO want to use a secondary cfg file instead of config.cfg ...

diamond-optic
04-28-2007, 09:55 PM
just like to add..

im pretty sure aliases that you add midgame.. wont be saved...
but ya.. no need to use an alias to use both commands at the same time/key


...heh i no longer run my config readonly.. i have a backup copy of it just incase, but ive been making a lot of changes to it while im playing and im tired of forgetting that its readonly and having to put the changes in my console each time lol.. and im too lazy to go in developer mode as i believe you can save readonly configs that way

scorpionsinz
04-29-2007, 02:48 AM
I get this for an error when trying to compile.

Welcome to the AMX Mod X 1.70-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

temp.sma(408) : error 017: undefined symbol "velocity_by_aim"
temp.sma(420) : error 017: undefined symbol "angle_vector"
temp.sma(420) : warning 215: expression has no effect
temp.sma(420) : error 001: expected token: ";", but found ")"
temp.sma(420) : error 029: invalid expression, assumed zero
temp.sma(420) : fatal error 107: too many error messages on one line

Compilation aborted.
5 Errors.
Could not locate output file ../amxx/dod_smokegrenade2.1.71.amx (compile failed).

diamond-optic
04-29-2007, 12:02 PM
well im gonna assume this:
Could not locate output file ../amxx/dod_smokegrenade2.1.71.amx (compile failed).
means your trying to compile it on amxx 1.71

the natives velocity_by_aim & angle_vector were moved from the engine module to the core in amxx 1.75 i believe..

you could try adding:
#include <engine>
after the other '#include' lines in the source and it might work...

but cant say for sure, its very possible that other parts of the plugin use some other scripting changes from more recent versions of amxx.. so running it on an old version could break it, even if it doesnt give any errors..

rplatt
04-29-2007, 01:55 PM
what files do i put where and do i add the cvars u provided into my cvars.ini fiel

diamond-optic
04-29-2007, 07:27 PM
what files do i put where
when getting a new plugin, you should at least read the 1st post.. sometimes theres important information there...
File Placement:
smoke_grenade.spr --> ../dod/sprites/
explode_smoke.wav --> ../dod/sound/misc/
cough1.wav --> ../dod/sound/player/
cough2.wav --> ../dod/sound/player/
brit_smoke.wav --> ../dod/sound/player/
ger_smoke.wav --> ../dod/sound/player/
us_smoke.wav --> ../dod/sound/player/



do i add the cvars u provided into my cvars.ini fiel
you could add them to the cvars.ini if you want them to show up on the cvar menu.. but for the most part.. i would say the amxx.cfg file is the only place you should really add them..

the cvars.ini will allow you to easily/quickly change them (to whatever values you specify in the ini file) midgame without having to go in rcon.. (or using the amx_cvar command)

Country
05-01-2007, 01:22 AM
i tried messing with the drop nades plugin a while back and ran into all sorts of problems...

wilson does a great job.. just he has a windows server so that would make it difficult for him to really even test any possible fixes for why linux servers are having trouble with the drop nades


So this plugin will work for Linux servers right?

diamond-optic
05-01-2007, 12:18 PM
yup.. been running for like a year on my linux dedicated :D

Country
05-01-2007, 02:17 PM
yup.. been running for like a year on my linux dedicated :D

Ahh..where have I been:eek:
Very nice plugin works great diamond:D
One suggestion if I may...is there a way to add a model to this so that you can see it in your hand and then throw it rather than bind a key to throw it?

diamond-optic
05-01-2007, 08:20 PM
i dont really see myself adding that at any point... especially any time soon..

...i dont even know a good way of doing it.. as i dont really like the way zor does it in his plugin.. and that could very well be whats causing problems on linux servers...

diamond-optic
05-01-2007, 11:25 PM
...also i forgot to mention there is a bit of a cvar error :-(

doesnt really mess anything up.. and you probably wouldnt really notice it if i didnt say anything.. but you can grab it off the SVN if you'd like:

CLICK HERE (https://dodplugins.bountysource.com/svn/%21source/37/diamond-optic/dod%20specific/dod_smokegrenade2/dod_smokegrenade2.sma#80)


or THIS LINK (https://svn.bountysource.com/dodplugins/diamond-optic/dod%20specific/dod_smokegrenade2/dod_smokegrenade2.sma) might be easier for you to save it


the reason im not just posting it here is because thats such a little thing i'd prefer to wait till i make some more changes before actually releasing a new version..

blobby
05-02-2007, 01:04 PM
A small question for you dimond-optic m8 you know when you throw the nades it says you have
3smoke nades left
2smoke nades left
1smoke nades left
0smoke nades left

where can i find this message in the sma code as i have scanned over it 6 or 7 times and i cant find it the reason i want to find this is because i want to change the message as ive had to limit all the classes to 1 smoke nade each due to gready people throwing 3 all at once and lagging people witch is a bit of a helper to get frags if you could find this and tell me what like or show me on here i will be very great full

Regards

Blobby

=|[76AD]|= TatsuSaisei
05-02-2007, 06:59 PM
A small question for you dimond-optic m8 you know when you throw the nades it says you have
3smoke nades left
2smoke nades left
1smoke nades left
0smoke nades left

where can i find this message in the sma code as i have scanned over it 6 or 7 times and i cant find it the reason i want to find this is because i want to change the message as ive had to limit all the classes to 1 smoke nade each due to gready people throwing 3 all at once and lagging people witch is a bit of a helper to get frags if you could find this and tell me what like or show me on here i will be very great full

Regards

Blobby

you don't need to change the message code... it will not say you have 2 or 3 or more grenades if you only set that class (or everyone) to only one each...

diamond-optic
05-02-2007, 08:47 PM
ya im a bit confused

maybe its just the way you typed it but it shouldnt say "1 nades" or whatver in plural


and ya like TatsuSaisei, if thats what you mean to change with it.. it will only say how many they actually have.. so if you have one to start with.. after throwing it.. it should say you have 0 left..


maybe im just not following what your looking to do..


but its line 465 in the throwsmoke function.. looks like this:
if(get_pcvar_num(p_msg_throw))
client_print(id, print_chat, "You have %d Smoke %s Left...", playerGrensCount[id], (playerGrensCount[id] != 1) ? "Grenades" : "Grenade")

blobby
05-02-2007, 09:21 PM
LMAO you are all getting mixed up with me aint you and im sorry i have had to limit my great smoke nades to one per weapon and i wanted to change the message to use you smoke nade wisely next time instead of you have 0 nades left if you get me

Sorry about my typing never whent to school

Regards

Blobby

diamond-optic
05-02-2007, 09:47 PM
if you want.. i could probably put in a cvar that controls a 'delay' between throws.. so then you could set it to say 60 seconds or whatever so they cant throw them all at once

..it probably would be more realistic with at least some delay anyway.. cause you wouldnt be able to get off a bunch smoke nades in half a second lol in real life..

blobby
05-02-2007, 11:05 PM
Im likeing m8 if you could do that for me i would be so pleased i have another question how come the smoke nades arnt actually held in hand is this extreamly hard or just impossible

Regards

Blobby

diamond-optic
05-03-2007, 01:05 AM
here you go blobby.. grab it off the SVN if you want...

the cvar is: dod_smoke_throwdelay "1.0" //How many seconds to delay between each throw

defaults at 1 second, so dont forget to change it :)



CLICK HERE (https://dodplugins.bountysource.com/svn/&#37;21source/38/diamond-optic/dod%20specific/dod_smokegrenade2/dod_smokegrenade2.sma#80)


or THIS LINK (https://dodplugins.bountysource.com/svn/%21source/38/diamond-optic/dod%20specific/dod_smokegrenade2/dod_smokegrenade2.sma) might be easier for you to save it

blobby
05-05-2007, 10:43 AM
What am i actually ment to do to download this i can only select it all with copy but it wont compile if i paste it m8

diamond-optic
05-05-2007, 08:20 PM
ahh damnit my mistake...

messed up one of the links..

HERE THIS SHOULD WORK (https://svn.bountysource.com/dodplugins/diamond-optic/dod%20specific/dod_smokegrenade2/dod_smokegrenade2.sma)

scorpionsinz
05-06-2007, 10:54 PM
So what you are saying is that this plugin is now working correctly with Amx version 1.76c? That's what i'm using and metamod 1.19 and it's supposed to work?

I will try it out this week and post my findings.

scorpionsinz
05-06-2007, 11:27 PM
Ok so i just put the plugin and cvars in. And low and behold the server crashes when the map restarts.

Either the plugin doesn't work right or i'm doing something wrong. I have compiled the plugin, renamed it to dod_smokegrenades2.amxx put in all the cvars just like in the sma file and restarted the server, it crashes the server and will not allow it to reboot. SO i have to disable the plugin and restart the server and it comes back up.

Any thoughts?

=|[76AD]|= TatsuSaisei
05-06-2007, 11:34 PM
Ok so i just put the plugin and cvars in. And low and behold the server crashes when the map restarts.

Either the plugin doesn't work right or i'm doing something wrong. I have compiled the plugin, renamed it to dod_smokegrenades2.amxx put in all the cvars just like in the sma file and restarted the server, it crashes the server and will not allow it to reboot. SO i have to disable the plugin and restart the server and it comes back up.

Any thoughts?

You NEED models/sprites... if your server does NOT have the models/sprites the plugin uses then you WILL crash !!

http://www.dodplugins.net/forums/attachment.php?attachmentid=472&d=1177548098

hmm, just downloaded the zip ... no models, but the models he uses are from HL so that is not the issue, it is most likely the sprite (sounds generally will not crash the server)

scorpionsinz
05-07-2007, 07:28 AM
Thank you so much Tatsu! What you said worked like a charm and the plugin is running better than the first one.

Thanks all for the help in getting this working. My team appreciates it to the fullest extent!

Fyrmn472
06-24-2007, 03:39 PM
I have a rental client using the plugin with Amxmodx 1.76d and Metamod 1.19p28. The plugin appears fine, BUT occasionally a message pops up for players that says "WARNING!!! Playername Has a bad file! Removing cheater the server!!!". The rental client seems to think it may be a glitch with either this plugin or another. Is that possible?

FeuerSturm
06-24-2007, 03:45 PM
I have a rental client using the plugin with Amxmodx 1.76d and Metamod 1.19p28. The plugin appears fine, BUT occasionally a message pops up for players that says "WARNING!!! Playername Has a bad file! Removing cheater the server!!!". The rental client seems to think it may be a glitch with either this plugin or another. Is that possible?

Is it possible that your client is running an old version of HLGuard on his server or an
Amx Mod X plugin that is checking for file consistency?
Those files aren't even standard DoD files, so a consistency check
would never apear anywhere unless you set it up.

Otherwise there wouldn't really be anything that could remove people
from his server!

Fyrmn472
06-24-2007, 04:17 PM
No HL Guard and here's a list of plugins running currently:

11:15:15 Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.75 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.75 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.75 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.75 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.75 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.75 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.75 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.75 AMXX Dev Team plmenu.amxx running
[ 9] Teleport Menu 1.75 AMXX Dev Team telemenu.amxx running
[ 10] Maps Menu 1.75 AMXX Dev Team mapsmenu.amxx running
[ 11] Admin Chat 1.75 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.75 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.75 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.75 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.75 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.75 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.75 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.75 AMXX Dev Team timeleft.amxx running
[ 19] Stats Configuration 1.75 AMXX Dev Team statscfg.amxx running
[ 20] DoD Stats 1.75 AMXX Dev Team stats.amxx running
[ 21] DoD Sounds Precache 1.75 AMXX Dev Team statssounds.amx running
[ 22] Stats Logging 1.75 AMXX Dev Team stats_logging.a running
[ 23] DoD EvilAdmin 0.5beta AMXX DoD Team dod_eviladmin.a running
[ 24] AMXX Parachute 1.0 KRoT@L (Ported b amx_parachute.a running
[ 25] DoD Limits 0.3a AMXX DoD Communi dod_limits.amxx running
[ 26] GHW Ultimate Punishmen 1.0 GHW_Chronic GHW_Uslays.amxx running
[ 27] DoD Ninja 1.4 AMXX DoD Communi dod_ninja.amxx debug
[ 28] Dod Invisibility 1.0 Wilson - Dodplug dod_invisibilit running
[ 29] Ejaculate 0.2 KRoTaL & diamond amx_ejaculate.a running
[ 30] Admin Blink 1.0 scoutPractice blink.amxx running
[ 31] DoD FadeToBlack 0.8beta AMXX DoD Team dod_fadetoblack running
[ 32] loading with music 2.0 eFrigid loadingsongadva running
[ 33] MP3 + Wav Player W/ mu 1.3 GHW_Chronic + bi mp3-wav_player. running
[ 34] FlameThrower [DoD] 1.0.1 SidLuke dod_flamethrowe debug
[ 35] DoD Smoke Grenades 2 1.0 AMXX DoD Team dod_smokegrenad running
[ 36] DoD DropGrenades 0.6beta AMXX DoD Team dod_dropgrenade running
[ 37] Glow Menu v1.2 FireWalker877 glow_menu.amxx running
[ 38] DoD ClanMatch 0.7pref AMXX DoD Team dod_clanmatch.a running
[ 39] DoD TeamManager 1.0 AMXX DoD Team dod_teammanager running
[ 40] Admin Spectator ESP 1.2 KoST sea_spec_esp.am debug
40 plugins, 40 running

I'm not sure which plugins might be checking for file consistency...

diamond-optic
06-24-2007, 06:29 PM
what that msg means is..

a client replaced the smoke_grenade.spr or whatever sprite file.. which could allow the client to get rid of the smoke (by using a empty or null sprite) so this plugin checks to make sure the client is using the same sprite file thats on the server.. if not they get kicked and thats when that msg should appear...

the dod_smoke_warncrc cvar should control who, if anyone, the message shows to..


but heh this reminded me i never posted an update that has various fixes and some improvement on the file consistency check.. i'll try posting that tonight so once i get that posted.. i would highly suggest updating.. :)

diamond-optic
06-24-2007, 06:41 PM
ok lol so i got around to doing it rather quickly :D


Update to Version 1.1

Changes:
- 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

Price [508th PIR]
07-06-2007, 06:03 PM
I am really confused on how to upload this plugin. Do you just upload the whole zip file or what?

diamond-optic
07-07-2007, 12:02 AM
;6683']I am really confused on how to upload this plugin. Do you just upload the whole zip file or what?

you compile the .sma and upload the .amxx it creates to your amxmodx/plugins/ directory.. then add: dod_smokegrenade2.amxx to a new line in your plugins.ini file (amxmodx/configs/)


then the files in the zip file you want to put in these locations:

smoke_grenade.spr --> ../dod/sprites/
explode_smoke.wav --> ../dod/sound/misc/
cough1.wav --> ../dod/sound/player/
cough2.wav --> ../dod/sound/player/
brit_smoke.wav --> ../dod/sound/player/
ger_smoke.wav --> ../dod/sound/player/us_smoke.wav --> ../dod/sound/player/

Price [508th PIR]
07-11-2007, 05:23 PM
thank you very much. I think ill be a le to get it now....

Price [508th PIR]
07-16-2007, 05:38 AM
I dont have dod/sound/misc ... would it be dod/sound/items?

blobby
07-16-2007, 09:37 AM
just create the folder called misc and put the sounds in it thats what i did and it worked :p

diamond-optic
07-16-2007, 10:46 AM
ya just create the folder..

it probably would have been a good idea to change up the folders used.. but i believe i just left them the way zor had them so ppl who already had the files didnt have to download them again.... but it does make it a bit more confusing.. :-\

Price [508th PIR]
07-16-2007, 04:59 PM
I uploaded it to items... so ill go see if it works right now.

=|[76AD]|= TatsuSaisei
07-16-2007, 05:02 PM
;6824']I uploaded it to items... so ill go see if it works right now.

will not work in a folder called 'items'... you HAVE to create a folder named misc.... its easy.. right click in the white space in the sounds fodler and create a new folder/directory and name it 'misc'

Price [508th PIR]
07-16-2007, 05:08 PM
Ok, Thanks alot tatsu. Your plugins are awesome.

Price [508th PIR]
07-16-2007, 09:26 PM
its says unknow cvar everytime... I uploaded the sma and the amxx to the right spot, and then updated the plugins.ini what else do i have 2 do?

diamond-optic
07-16-2007, 10:30 PM
if your getting the same error with other plugins (like your posts HERE (http://www.dodplugins.net/forums/showthread.php?t=613&page=5) & HERE (http://www.dodplugins.net/forums/showthread.php?t=14))

you must be doing something wrong.. does it show as running on the plugin list?

...and obviously its not something specific to the plugins themselves.. so you didnt really need to post the same thing in 3 different places...

Price [508th PIR]
07-17-2007, 04:53 AM
I am sorry... Its only been these few plugins... Every other plugin works fine, and i uploaded these like i did on my other ones.... I put the sound files where you told me too....

Haddock
08-24-2007, 02:38 PM
Hello there,

When compiling with 1.75-300 compiler, here is the error I have:

dod_smokegrenade2.sma(766) : error 017: undefined symbol "user_silentkill"
dod_smokegrenade2.sma(896) : error 017: undefined symbol "user_silentkill"
//
// 2 Errors.
// Could not locate output file compiled\dod_smokegrenade2.amx (compile failed).

Is it only for 1.76 and above ?

Thanks for any help.
H@ddock

diamond-optic
08-25-2007, 01:32 AM
that stock was probably added in a later version...

but if you add this stock at the bottom of the plugin, it should then work, unless theres more problems.. i dont really know lol..

/* Kills a user without a message. */
stock user_silentkill(index)
{
static msgid = 0;
new msgblock;
if (!msgid)
{
msgid = get_user_msgid("DeathMsg");
}
msgblock = get_msg_block(msgid);
set_msg_block(msgid, BLOCK_ONCE);
user_kill(index, 1);
set_msg_block(msgid, msgblock);

return 1;
}

Haddock
09-02-2007, 09:51 AM
Thanks Diamond, that solved it !!!

diamond-optic
09-12-2007, 09:20 PM
Update to Version 1.2

- 07.30.07 - Version 1.2
Fixed rare runtime error in damage/choke functions
Adjusted default choke/damage radii
Slight changes to consistency messages

watson
09-13-2007, 09:23 PM
hey, optic sweet plugins ^^ 1 thing tho where do i get a compiler to make it into a amxx file? to add in the plugins.ini?

diamond-optic
09-14-2007, 02:13 AM
well you can do it locally: http://www.dodplugins.net/forums/showthread.php?t=50

or you can use an online compiler.. theres on on the amxmodx.org main site, as well as the main site at dodplugins.net

MTCoors
11-02-2007, 07:23 PM
New bug i am getting. I just updated to 1.8.0 amx and the axis side works just fine but on the allies side it shows the smoke canister but when you throw it out to an area it turns into a german nade...Why is this?:confused:
Both versions of the smokegrenades do the same exact thing.

diamond-optic
11-02-2007, 07:29 PM
i havent had a chance to upgrade to 1.8.0 just yet, but will do so over the next few nights.. then ill take a look and see whats going on as that sounds quite odd lol

diamond-optic
11-03-2007, 10:14 PM
just checked this on a win32 LAN running 1.8.0

no problems for me at all so far.. smoke grenade models for all 3 teams dont change for me.. they all work fine :-\

MTCoors
11-07-2007, 12:46 AM
Ok...The second version is working now with 1.8.0. Recompiled it and works perfect. Thanks for all your cool plugins!:D

diamond-optic
11-30-2007, 10:10 PM
Updated to Version 1.3

- 11.05.07 - Version 1.3
Fix for annoying sound loop on stuck grenade

fbi.fr
08-05-2008, 07:26 AM
I do not arrive has to compile it with the version 1.76d

PS : sorry for my English, I am French…

Tank
08-05-2008, 10:16 AM
As I don't quite know what you meant with your message. If you were saying you couldn't compile it with 1.80, for me it works just perfectly. Try using the online compiler from this website and try again.

The online compiler can be found here: http://www.dodplugins.net/forums/cmps_index.php?page=help

If you need any help, let us know as most of us got it working perfectly.

fbi.fr
08-06-2008, 04:35 PM
it works to, thanks !!!

dodkiller
09-27-2008, 07:00 AM
hi

where i can download the amxx file from this plugin
sorry for my english i am german

meathead
09-27-2008, 08:55 AM
Go to the help tabs and use the online compiler to create the amxx file.

rustyt00lman
09-28-2008, 08:30 PM
well done even i can add this lol
works well love it

Akula
10-16-2008, 09:38 AM
Had this plugin on my server (AMX 176d) for about 3 weeks running fine , now its crashing my server when someone tries to join.
Went through all plugins one by one turning them off and this one seemed to be the culprit.

Tried recompiling and adding it again , but same story.

Cant understand how it worked fine all that time then stopped.

Tank
10-16-2008, 09:46 AM
You compiling the plugin for the right amxmodx version? Last time I checked it compiled for 1.81, if you have version 1.76 I can see why it would give some issues.

You should also check addons/amxmodx/configs/logs

See if it forwars any error message for this plugin (you might want to debug the plugin in plugins.ini).

Akula
10-16-2008, 10:08 AM
I cant understand how it worked for a few weeks then stopped.

Yes i may be compiling for the wrong version.
Is there a compiler specifically for 1.76 ?? Or are they trying to get everyone on 1.8x ???

Tank
10-17-2008, 10:48 AM
I cant understand how it worked for a few weeks then stopped.

Welcome to my life :D You might want to check new added plugins who might crash with this plugin.

As for compiling. If I remember correctly if you download 'Compiled' version (at the end of each provided plugin there are a few options which you can download, you can choose between source and compiled.) If you download compiled it's either compiled for version 1.80 or 1.81.

What you can do is take the source and use the compiler (on the left side of your screen you see the site menu. At the bottom it says compiler). Select your amxmodx version (I wanted to do it for you, wasn't sure if you were using 1.76 or 1.76a).

My advice, like Zor and D-O always say...stick with the program. Amxmodx 1.81 has launched a while ago. I recommend updating to that, same thing im going to do next week.

diamond-optic
12-26-2008, 02:45 AM
...FINALLY AN UPDATE!!!


Version 1.4 Change Log:
- 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
Extra:
- If using AMXBans for the file consistency, I recommend that you check
out the following link for a fix for the banning:
* http://www.dodplugins.net/forums/showthread.php?t=1421

- 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
* http://www.avamods.com/download.php?view.177

- 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)
* http://www.dodplugins.net/forums/showthread.php?t=1466
* http://www.avamods.com/download.php?view.176

Dr.G
04-08-2009, 08:06 AM
when is the inconsistent_file used/triggered in this?

Arac
05-12-2009, 05:21 AM
Hello.

Amxx 1.81 and Linux server , and plugin running:) .. Thx, nice work !!!

diamond-optic
07-08-2009, 07:22 PM
UPDATE TO VERSION 1.5


- 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

diamond-optic
07-29-2009, 07:13 PM
Update to Version 1.6

- 07.29.09 - Version 1.6
Fixed choke/damage chance method
Fixed choking function (had an integer where it should have been a float)

whatmee
10-04-2009, 01:10 AM
hi there,

smoke nade not working on amx181.

get error of ...

Load fails: Module/Library Class "xstats" required for plugin. Check modules.ini.
20 plugins, 19 running

i have search world wide waste, and come with about a dll file csx.

where would i find a download ?

thankyou

noddy
10-04-2009, 09:11 AM
have you checked your modules.ini for the modules included in this plugin ?

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <dodx>
#include <dodfun>
#include <fun>
#include <hamsandwich>

diamond-optic
10-04-2009, 03:01 PM
hmm wierd, amxx 1.8.1 should auto-enable any needed modules

the dodx.inc file has this:

#if AMXX_VERSION_NUM >= 175
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib xstats dodx
#endif
#else
#pragma library dodx
#endif

but ive never once had any errors with xstats loading.. and im not sure if im reading that right, but it looks like it only loads the xstats library if the amxx version is below 1.75

noddy
10-04-2009, 10:34 PM
>= Surely this is greater or equal to.

So higher than or equal to 175

diamond-optic
10-04-2009, 11:38 PM
ya my mistake idk why i said below lmao

whatmee
10-05-2009, 05:51 AM
sorry guys,

you didn't read my edit did you ;)

yes we fixed it.

but, can we compile it (smokenades) to run on 176c ?

thankyou.

diamond-optic
10-05-2009, 03:24 PM
hmmm it wont compile on the stock 1.76c cause of hamsandwich.

but if youre compiling it locally, you might be able to download 1.8.1 and stick the hamsandwich files into the 1.76c directory structure ...possible it might work, but im not sure if anything else in the plugin needed an amxx version newer then 1.76c

whatmee
10-05-2009, 03:54 PM
so what files are needed for hamsandwich?

whatmee
10-05-2009, 04:05 PM
NVM,

found them (windows search)
thanks for the DO, once again.

it did compile in 176c, just need to test on server tonight.

thanks again.

noddy
10-06-2009, 10:48 AM
my curiosity why run 176c ? and not 181 ?

whatmee
10-06-2009, 03:30 PM
not my choice.
i am working the others to update.

netmad
11-20-2010, 10:18 PM
how to change code become napalm gernade??

webmaze
11-21-2010, 03:32 PM
i've modified an old version to act as a an-m14 incendiary hand grenade, not a napalm or molotov, maybe you could change the models and the sound of glass breaking. let me know if you need it. kind regards.

Zeta