PDA

View Full Version : DoD Shell Shock (v2.0)


diamond-optic
07-10-2006, 10:56 PM
DoD Shell Shock
- Version 2.0
- 07.29.2009

Credits:

- Original Code by v3x (he_damage_effect v0.2)
- Ported to DoD by diamond-optic
- cadav0r: new volume fx methods and various other fixes
- WARDOG: new ringing sound
- Emp`: suggestions on cleaning up some bits and pieces
- Wilson [29th ID]: PStatus method of catching player spawn
- TatsuSaisei: Fix for Wilson's PStatus method
Information:

- When you take damage from the allowed weapons,
You will experiecne a random selection or a
combination of various effects.. For example, your
screen might be distorted, your sound volume might
decrease for a few seconds before it returns to
normal. There's also a chance for a ringing sound
in your ears, along with little floating dots all
around you...There is also an effect that changes
the way everything sounds to you (pitch shift/echo/etc).
You may even drop your weapon/object/ammo or fall down prone.

- CVARs to pick which weapons cause effects
- Minimum damage required controllable for each one of the effects
- Each effect has options to control specific aspects of that effect

- File consistency is enforced on the shellshock ring sound to
prevent people from replacing it with a blank sound file

- Server List: Servers: http://www.game-monitor.com/search.php?rulename=dod_shellshock_stats
Commands:

dod_shellshock_start <nick/#userid> <damage amount> //Shell Shock a client
dod_shellshock_stop <nick/#userid> //Stops Shell Shock on a client
CVARs:

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

//weapons that cause effects
dod_shellshock_wpn_grenades "1"
dod_shellshock_wpn_rockets "1"
dod_shellshock_wpn_mortars "1"
dod_shellshock_wpn_knives "0"
dod_shellshock_wpn_spades "0"
dod_shellshock_wpn_buttstocks "0"
dod_shellshock_wpn_bayonets "0"
Compiler Defines:

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_FILEBANTIME 15 //Inconsistent file ban action length

SETTING_FILEAMXBANS 0 //Inconsistent file ban action amxbans support
// 0 = off
// 1 = on
// 2 = on, alternate syntax

SETTING_FADE 1 //Turn on(1)/off(0) screen fade effect
SETTING_FADEDMG 30 //Sets the minimum damage required
SETTING_FADEALPHA 100 //Sets the defualt fade alpha level
SETTING_FADEINC 1 //Turn on(1)/off(0) increase of fade alpha level
SETTING_FADEINCDMG 2 //Amount of damage for each step of fade alpha level increase
SETTING_FADEINCAMT 5 //Fade alpha level increase amount per step

SETTING_SHAKE 1 //Turn on(1)/off(0) screen shake effect
SETTING_SHAKEDMG 20 //Sets the minimum damage required

SETTING_VECTOR 1 //Turn on(1)/off(0) vector effect
SETTING_VECTORDMG 50 //Sets the minimum damage required
SETTING_VECTORAMT 60.0 //Sets the min/max angle of change

SETTING_VOLUME 1 //Turn on(1)/off(0) short volume loss effect
SETTING_VOLUMEDMG 65 //Sets the minimum damage required
SETTING_VOLUMETIME1 10 //How long you lose volume (10ths of a second)
SETTING_VOLUMETIME2 10 //Delay between each volume increase step (10ths of a second)
SETTING_VOLUMEINC 1 //Turn on(1)/off(0) increase of volume loss time
SETTING_VOLUMEINCDMG 10 //Amount of damage for each step of vol. loss increase
SETTING_VOLUMEINCTIME 5 //Volume loss increase time per step (10ths of a second)

SETTING_RING 1 //Turn on(1)/off(0) ringing effect
SETTING_RINGDMG 80 //Sets the minimum damage required

SETTING_FOV 1 //Turn on(1)/off(0) fov effect
SETTING_FOVDMG 85 //Sets the minimum damage required

SETTING_SOUND 1 //Turn on(1)/off(0) soundfx effect
SETTING_SOUNDDMG 60 //Sets the minimum damage required
SETTING_SOUNDTIME 10.0 //Sets how long the effect lasts (-1 = keep effect till client dies)

SETTING_DROP 1 //Turn on(1)/off(0) weapon drop effect
SETTING_DROPDMG 90 //Sets the minimum damage required

SETTING_PRONE 1 //Turn on(1)/off(0) forcing prone effect
SETTING_PRONEDMG 95 //Sets the minimum damage required

SETTING_PARTICLES 1 //Turn on(1)/off(0) particle effect (floating dots)
SETTING_PARTICLESDMG 20 //Sets the minimum damage required

SETTING_MAXPLAYERS 32 //Set to the maximum # of players (slot count)
Extra:

Put the "dod_shellshock_ring.mp3" in /dod/sound/misc/

If you change the sound file, DO NOT use the same name,
change the #define RINGSOUND instead!!!
Change Log:

- 05.01.2006 Version 0.1
Initial port of v3x's "he_damage_effect v0.2"
Added cvar to set min. dmg required
Added Rockets as well as grenades

- 05.03.2006 Version 0.2
Added Garand & K43 buttstocks

- 05.05.2006 Version 0.3
Added CVAR for buttstocks
Renamed to DoD Shell Shock

- 05.06.2006 Version 0.4
Removed buttstocks till I do it a better way
Changed from MSG_ONE to MSG_ONE_UNRELIABLE

- 05.10.2006 Version 0.5
Added CVARs for fade & shake (code from cadav0r)
Added CVAR for volume

- 05.12.2006 Version 0.6
CVAR query bug fixed (thanks cadav0r)
New method for volume effect (thanks cadav0r)
Fixed volume staying at 0.0 bug

- 05.15.2006 Version 0.7
Another fix for CVAR query problem
Added ringing sound MP3 (still plays during volume effect)
Added CVAR for ringing effect
Added FOV effect (defualts to 0 as im not satisfied with it yet)

- 05.18.2006 Version 0.7b
Removed global damage cvar and added one for each effect

- 05.22.2006 Version 0.7c
Fixed run-time error
Adjusted a few random things...

- 05.24.2006 Version 0.7d
Fixed 2 small errors becuase of my stupidity (thanks cadav0r)

- 06.09.2006 Version 0.8
Added CVAR for how long you lose your volume
Added CVAR for delay between each volume increase step (thanks cadav0r)
New 'ringing' sound (thanks WARDOG)
Adjusted ScreenFade & ScreenShake message variables

- 07.06.2006 Version 0.9
Replaced ENGINE module with FAKEMETA module
Fixed volume effect for multiple nade hits (thanks cadav0r)
Added increasing of volume loss time depending on dmg (thanks cadav0r)
Added CVAR for setting the fade effect's defualt alpha level
Added increasing of fade alpha level depending on dmg (cadav0r's method)
Added 4 CVARs to control vector effect settings
Did some more work on the FOV effect, a little bit more satisfied with it

- 07.09.2006 Version 0.9b
Removed FUN module

- 07.14.2006 Version 0.9c
Fixed "Missing RIFF/WAVE chunk" console message

- 08.05.2006 Version 0.9d
Fixed possible problem with ring sound not playing (thanks KidTwisted)
Added RINGSOUND define to make it easy to use a different file
Incase the volume global doesnt get set.. it defualts to 1.0
Cleaned up code a bit...

- 08.28.2006 Version 1.0
Added mortars, knives, spades, buttstocks, and bayonets
Added CVARs to control which weapons cause the effect
Changed some returns

- 09.21.2006 Version 1.1
Added public cvar for stats tracking

- 12.16.2006 Version 1.2
Cleaned up a bunch of things (thanks Emp`)

- 03.17.2007 Version 1.3
Cleaned up some more things thru the code
Changed the default values for some of the cvars
Now the effects will stop if you die
Improved the effect tasks
Added a new feature: sfx (changes the way everything you hear sounds)

- 03.19.2007 Version 1.3b
Fixed a typo in the CVAR comment section
More simple way to stop all the effects at once
Tasks are now removed on client disconnect
Changed volume cvar query task from 10sec to 8sec
Removed some plugin active checks (avoids problems when turning it on mid-game)
Added RoundState checks

- 03.20.2007 Version 1.3c
Removed an extra cvar (dod_shellshock_sfx_stay)
Fixed the sfx effect time stuff

- 06.13.2007 Version 1.4
Changed the way the cvar query is done (first time client spawns)
Added round draws to roundstate check
Removed some code in the roundstate function
Added drop weapon effect
Added force prone effect
Added 'particle' effect
Few minor code changes/fixes
Replaced high & low vector CVARs with one single new CVAR

- 07.29.2009 Version 2.0
Added cvar query for client's room_type setting
Improved code for reseting sfx effect
Replaced spawn forward with HamSandwich
Added commands to force/stop shell shock on a player (can be called by other plugins)
Added file consistency on the shellshock sound
Renamed the sound file to start fresh for the file consistency
Adjusted some default times
Another attempt at fixing the 0 volume issue
Replaced DoDx death forward with HamSandwich
Changed alot of the CVARs to compiler defines
Improved task handling
Various code improvements
Added compiler define for setting max players
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.54

KidTwisted
07-16-2006, 08:14 PM
Everything is working except for the ring sound.
The sound downloaded fine "shellshock_ring_3.mp3" in /dod/sound/misc/.(server side/client side)
dod_shellshock_ring is set to "1".
and I even set dod_shellshock_ring_dmg to "5" just to make sure it would trigger.

Hmmm, please help.

diamond-optic
07-16-2006, 10:16 PM
hmm

check in your options and see if mp3 volume is set to 0


..and btw.. ive fixed the "missing riff/wave' console msg thingy so ill post that in a bit.. not that anything here is approved for downloading anyway lol

KidTwisted
07-16-2006, 10:30 PM
I check the mp3 vol. on the client side and it is at max.

I'm running AMXX 1.75a

I had DoD Shell Shock v0.9 07.06.2006

I compiled the sma with the compiler that came with AMXX 1.75a

Is there any other Info that might help?

diamond-optic
07-17-2006, 06:11 PM
// - 07.14.2006 Version 0.9c
// Fixed "Missing RIFF/WAVE chunk" console message

DOWNLOAD URL: http://mods.teamcdrive.com/download.php?view.79

diamond-optic
07-17-2006, 06:13 PM
KidTwisted...

are you getting any console messages either client side of server side? any errors in the amxx logs?

KidTwisted
07-17-2006, 07:20 PM
I found this:

client_cmd(victim,"mp3 play sound/misc/shellshock_ring_3")
changed to this:
client_cmd(victim,"mp3 play sound/misc/shellshock_ring_3.mp3")

I added the file extension, seems to have done the trick.

I recompiled, set the dmg trigger to "5"
and bam my ears started to ring.

diamond-optic I really like this plugin, hope this helps the cause.
Thanks for posting the download link, I'm all set up with ver. 0.9c :)

diamond-optic
07-17-2006, 07:39 PM
hmm thats wierd.. it seems to work fine for me without the extension.. but ill put it in the code for the next version to avoid this problem in the future..

thanks!

=|[76AD]|= TatsuSaisei
07-29-2006, 05:13 PM
I have not tried to edit any of the code yet (using what was suggested above) but I simply cant seem to get this to work for me... It runs on the server and amxx list in rcon does not show a bad load... but upon joining the server, picking a team.... I wait and wait to spawn, then the server crashes.

There are no errors in logs, either in console, or amxx logs, nor does setting the plugin to debug show anything. I disable the plugin and everything is fine on my server.

I run ALOT of plugins on my server, and I am wondering, are there any known conflicts with any other plugins ?

I will run test later tonight, when my server goes dead (if it goes dead) and disabel ALL my plugins but shellshock and try that and see if it works for me (proving a conflict) but maybe you might know now before I try anything else...

Also, I read in the version history that you used to catch the garand/k43 butt hits and this would cause shellshock as well... is this still planned to be implemented ?? I currently hold the record on my server for the most butt kills, and am really looking forward to couple that fact with a plugin like this !!!

diamond-optic
07-29-2006, 10:09 PM
hmm not any conflicts that i know of.. i run 60+ plugins on my server with some maps being modded quite heavily... and i dont get any crashes cuased by this.. but keep me posted on what you find

and with the buttstocks.. i was thinking of adding cvars to turn on what weapons cuase the effect.. but never really got around to it..

lol the reason i added it in the 1st place was becuase i as well lead with garand buttstocks on my server.. (about 950, 2nd place only has 100) so i wanted to make it a little more entertaining lol.. but ppl complained about it constantly so i removed them..

i guess i could always go back and do what i originally planned with the cvars if you're interested

=|[76AD]|= TatsuSaisei
07-29-2006, 11:13 PM
oh i AM interested in having shellshock on my butt victims, and about complainers... lol, I tell them simply "If you do not like it, there are over 1000 other servers to play on"

I will try to run it alone tonight and let you know what goes on, I am really dying to have this plugin.

Morimoto
08-03-2006, 10:59 AM
i am unable to get this plugin working on my DoD server. i have loaded several plugins before, so i am familiar with the steps. can someone please help me work through this.

i downloaded the *.sma and compliled it using the online complier at amxmodx.org.

i put the *.amxx file in the amxmodx/plugins folder and the *.sma in my amxmodx/scripting folder.

i added the appropriate lines in my amxx.cfg and plugins.ini files.

i put the *.mp3 file in the sound/misc folder.

i restarted the server while nothing is wrong, the plugin does not seem to work. am i overlooking something?

http://www.houseofsoot.com/amxx/amxx.cfg
http://www.houseofsoot.com/amxx/modules.ini
http://www.houseofsoot.com/amxx/plugins.ini

diamond-optic
08-03-2006, 11:24 AM
hmm.. are you running amxx 1.75? your modules ini looks like the older format..

but to be honest im not sure if that would really stop it from working.. some parts might not work with less then 1.75, but others should still work im assuming..

but if you are running 1.75 that throws that out the window.. you're not getting any error logs? and doing "rcon amxx plugins" shows it as loaded?

Morimoto
08-03-2006, 01:55 PM
i think i am running 1.6

do you know for sure if this plugin is approved for 1.75 only? i did not see any documentation that stated otherwise.

how do i determine my amxx version?

my server is through clanservers so i may need to contact them if i need to upgrade.

i dont know if the plugin is loading or not. i tried the command you stated, but i dont see any information being displayed. i will try it again tonight becuse i may have been using the command incorrectly. i was frustrated at this point.

thanks for you help in the matter!

diamond-optic
08-03-2006, 10:32 PM
well it def needs at least 1.70 and probably 1.75 (lmao i should know since its my plugin) but i cant recall off the top of my head but i think i might have removed a module include when it went to 175 cuase they moved alot of stuff to the core and whatnot..

but it def needs at least 1.70.. and if you are running 1.60.. it would be better to update to 1.75 instead of 1.70 anyway..

did you have clanservers/gameservers install it for you? if you did then most likely its 1.60.. i dont know why but thats what theyve been putting on peoples servers for them.. makes no sense to me lol

to find out.. use rcon amxx version

Box Cutter
08-03-2006, 10:40 PM
You will have to specifiy with GameServers/ClanServers that you want 1.75 installed otherwise they will put 1.6. This just happened to me so yeah they will put 1.75 if you ask for it.

Morimoto
08-04-2006, 11:38 AM
ok, so i got in touch with clanservers and they installed AMXX 1.75a and Metamod 1.19

i am having an additional problem now...in my /log directory there is a file that contains the following lines:

L 08/04/2006 - 01:17:05: Client CVAR querying is not enabled - check MM version!
L 08/04/2006 - 01:17:05: [AMXX] Run time error 10 (plugin "dod_shellshock.amxx") - debug not enabled!
L 08/04/2006 - 01:17:05: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

can anyone shed some light on this?

Hell Phoenix
08-04-2006, 01:54 PM
Add debug after the plugin in plugins.ini so we can see where the error is coming from.

IE

dod_shellshock.amxx debug

Morimoto
08-04-2006, 04:34 PM
ok, so i put "debug" after the entry in the plugins.ini file.....here is what was returned in the logs:

L 08/04/2006 - 11:45:00: Client CVAR querying is not enabled - check MM version!
L 08/04/2006 - 11:45:00: [AMXX] Displaying debug trace (plugin "dod_shellshock.amxx")
L 08/04/2006 - 11:45:00: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 08/04/2006 - 11:45:00: [AMXX] [0] phplgzZn2.sma::cvar_query (line 202)

(i am making the assumption that phplgzn2.sma is the same as dod_shellshock.sma, is this correct?)

line 202 of dod_shellshock.sma says:

query_client_cvar(id , "volume" , "cvar_result")

here is what the amxx documentation says about this function:

http://www.amxmodx.org/doc/index.html?page=source%2Ffunctions%2Fcore%2Fquery_ client_cvar.htm

there is a note that says it may cause a native error in out-of-date servers. it also goes on and says that this function is available in CVS only at the moment, but will be available in the next official AMX Mod X release.

=|[76AD]|= TatsuSaisei
08-04-2006, 05:16 PM
ok, so i got in touch with clanservers and they installed AMXX 1.75a and Metamod 1.19

um, is it 1.19 the "straight" version or 1.19p28 ?

These are 2 different versions...

http://metamod.org is the original

and

http://metamod-p.sourceforge.net/ is for the p version, which is what I use...

When 1.75 first come out it was said to NEED this version of metamod, but I went today and downloaded the latest packages and found that metamod is not coming with it anymore... so I had to hunt down the other version.... try replacing the one metamod file with the "p" version and see if that "fixes" any issues.... before you start tearing other things apart...

Morimoto
08-04-2006, 11:41 PM
ok, so the plugin is working. i didnt touch a thing.

there is a slight problem tho...it turns off the clients volume when they get hurt. i mean, you have to go into your options and turn the volumw back up.

i dont get a ringing sound either.

this is interesting because according to the debug, line 202 does something with the volume.

diamond-optic
08-05-2006, 12:00 AM
shouldnt matter if you run 1.19 or 1.19p28.. the only reason they said you needed to get 1.19p28 when the version came out was becuase 1.19 official wasnt released yet

but anyway yes that part of the code is sorta important for the volume effect.. it gets the clients defualt volume level so it knows what to set it back to, but if that function doesnt run.. it defualts the value to 0..

but if your not getting that error msg anymore it should be fine..

but what ill do just for the sake of doing it.. which i should have done before anyways.. ill make it so if for some reason the volume global doesnt get set.. it defualts to 1.0

=|[76AD]|= TatsuSaisei
08-05-2006, 12:55 AM
shouldnt matter if you run 1.19 or 1.19p28.. the only reason they said you needed to get 1.19p28 when the version came out was becuase 1.19 official wasnt released yet

hmm, didn't quite know this.. I just had to have the other version when I upgraded, and I work by the philoshpy, "If it aint broke, don't fix it", so I did not realize the situation was as it is... now, maybe this might just be MY problem with some of the plugins I have loaded, "running" but simply not doing anything...
funny how some answers come from the weirdest places...

diamond-optic
08-05-2006, 01:14 AM
there shouldnt be any problems with plugins between 1.19 and 1.19p28

and btw..
im to tired tonight to do anything.. sorry lol.. so my suggestion would be to turn the volume effect off for now if its still giving you problems.. ill try and get around to posting a small update tomorrow

diamond-optic
08-05-2006, 09:18 PM
Update to v0.9d


- 08.05.2006 Version 0.9d
Fixed possible problem with ring sound not playing (thanks KidTwisted)
Added RINGSOUND define to make it easy to use a different file
Incase the volume global doesnt get set.. it defualts to 1.0
Cleaned up code a bit...

KidTwisted
08-06-2006, 06:33 PM
Update to v0.9d
- 08.05.2006 Version 0.9d
Fixed possible problem with ring sound not playing (thanks KidTwisted)
Added RINGSOUND define to make it easy to use a different file
Incase the volume global doesnt get set.. it defualts to 1.0
Cleaned up code a bit...

Doing my part, thank you for this very cool plugin.

AMXMODX DOD COMMUNITY
We must strive to keep DOD alive!

johnnyskid
08-15-2006, 05:46 PM
ok, A small question.

CVAR's go into amxx.cfg right?

Just copy and paste?

Thanks guys!

diamond-optic
08-15-2006, 10:29 PM
ok, A small question.

CVAR's go into amxx.cfg right?

Just copy and paste?

Thanks guys!

yup.. just change the cvar values to whatever you wanna run it with..

=|[76AD]|= TatsuSaisei
08-20-2006, 07:51 PM
add DODW_MORTAR to the list of weapons that cause the shellshock to happen.

diamond-optic
08-20-2006, 11:08 PM
|= TatsuSaisei']add DODW_MORTAR to the list of weapons that cause the shellshock to happen.

good idea! lol

TigerMan4
08-21-2006, 11:22 PM
I just loaded a bunch of the plugins off of this site to my dod server.

I ran the compiler from amx_mod_X website and compiled the plugins.

I added the names of each plugin to my plugins INI and added the cvars to my amxx.cfg as well as the .amxx to my plugins folder.

apon map change , none of them are running.

this was one of the plugins i loaded, I even added the .smas to the folder where they go.

any ideas ?

diamond-optic
08-22-2006, 01:08 AM
hmm are you sure you compiled them for the version of amxx that you run on your server?
and also uploaded them to the /amxmodx/plugins/ folder on the game server?
added them to the plugins.ini file in the /amxmodx/configs/ folder? and they have the extension .amxx in the ini file as well? uploaded the new ini file back to the server?

TigerMan4
08-22-2006, 04:10 AM
I loaded them as I have many plugins before.

I`m not 100% sure how , but all but one now work , It seemed that it took 3 map changes for them to kick in.

the dod_dropgrenade plugin doesnt work...though it says its running. "DoD DropGrenades 0.6 AMXX DoD Team dod_dropgrenade running"

but they dont drop.

I added all the commands to the cvars and server.cfg and amx.cfg just to make sure.

anywho...all but that work now

diamond-optic
08-22-2006, 04:21 AM
ok good to hear most of them are working..

and theres been some ongoing problems with the drop nades plugin.. just no one has really had a chance to look at it.. we're all pretty busy working on our own stuff..

=|[76AD]|= TatsuSaisei
08-26-2006, 05:38 PM
As per our discussion about adding some "effects" to the sheelshock, I added the following to the client_damage function (after all checks are made)


client_cmd(victim , "slot3");
client_cmd(victim , "drop");
client_cmd(victim , "dropammo");


and it is awesome !! Funny to see a player drop their weapon and ammobox when damaged... now all thats left to do is force them down on one knee for a few seconds..

diamond-optic
08-26-2006, 07:22 PM
heh good thought.. i would have forgot all about the stuff we talked about lol

diamond-optic
08-28-2006, 09:49 PM
|= TatsuSaisei']

client_cmd(victim , "slot3");
client_cmd(victim , "drop");
client_cmd(victim , "dropammo");



only problem with that... is if the the client doesnt have hud_fastswitch on, you need to exec like +attack after the slot3 so that it comes out before you can drop it.. but then if the client does has fastswitch on, you'd end up making them shoot.. tho you could probably use the cvar query to find out if you need to exec the +attack

that is unless theres something i didnt think of

WARDOG
09-02-2006, 04:31 PM
Getting a compile error using the dod plugins web compiler under 1.70.

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

temp.sma(196) : error 017: undefined symbol "precache_generic"

1 Error.
Could not locate output file ../amxx/dod_shellshock.amx (compile failed).

diamond-optic
09-02-2006, 10:13 PM
you need 1.75


the precache_generic native was moved to the core

tegu
09-14-2006, 12:48 PM
I am using this on my server. It freakin ROCKS!@!!

GJ!

diamond-optic
09-14-2006, 08:02 PM
lol thanks... ive got an update that ive had sitting here for quite a while .. when i stop being lazy ill post it hah

diamond-optic
09-17-2006, 10:43 PM
update to v1.0
- 08.28.2006 Version 1.0
Added mortars, knives, spades, buttstocks, and bayonets
Added CVARs to control which weapons cause the effect
Changed some returns

tegu
09-17-2006, 11:56 PM
update to v1.0
Added CVARs to control which weapons cause the effect

What are those cvars? Not seeing them listed. NM I found them in sma.... might want to include these for people who are too lazy to look =)

// //weapons that cause effects
dod_shellshock_wpn_grenades "1"
dod_shellshock_wpn_rockets "1"
dod_shellshock_wpn_mortars "1"
dod_shellshock_wpn_knives "0"
dod_shellshock_wpn_spades "0"
dod_shellshock_wpn_buttstocks "0"
dod_shellshock_wpn_bayonets "0"

diamond-optic
09-18-2006, 12:10 AM
ahh crap lol forgot to update that info.. thanks!

diamond-optic
09-21-2006, 11:41 PM
UPDATE TO v1.1

- 09.21.2006 Version 1.1
Added public cvar for stats tracking


no changes to the plugin itself in this update..
all i did was add a public cvar for stats tracking.. so I would appreciate it if you updated to this version so I can see how many servers are running the plugin

:-) thanks!

tegu
09-22-2006, 12:41 AM
Done deal!

[WoH]Killemall4u
09-28-2006, 12:01 PM
Really wanna thank you for this plugin makes a nice addition to any realism server thanks for all you do for the dod community

[WoH]MAJ.Killemall4u

KidTwisted
10-01-2006, 05:47 PM
Nice Work Diamond-Optic!!

This is still one of my favorite plugins.

Will be upgrading to v1.1 soon.

WARDOG
10-15-2006, 05:01 PM
Does this latest version work with 1.70? Yeah I know I'm behind a bit,lol.

The online compiler doesn't seem to be taking the .sma at the moment?

diamond-optic
10-16-2006, 01:00 AM
Does this latest version work with 1.70? Yeah I know I'm behind a bit,lol.

The online compiler doesn't seem to be taking the .sma at the moment?

as it says for the 1st thing under 'Information'

- Requires at least AMXX 1.75

WARDOG
10-16-2006, 05:09 PM
as it says for the 1st thing under 'Information'

Lol, sorry I'm blind.

diamond-optic
12-01-2006, 01:14 AM
if any of you wanna be swell guys... help me out a little :-P

i finally posted a plugin on the amxx forums.. so of course its this one..

only thing is it isnt really getting much attention and hasnt been 'approved'
...so be a pal and head over to the THREAD (http://forums.alliedmods.net/showthread.php?t=47536) and idk.. maybe make a little post saying it works great yada yada.. whatever lol.. maybe it'll help it get approved...

but if you dont want to.. thats fine and dandy too

:-)

thanks..

=|[76AD]|= TatsuSaisei
12-01-2006, 05:03 AM
but if you dont want to.. thats fine and dandy too

IMHO, this is a small thing to ask for all the many things you have done to provide and help the DOD community. Any who can not be bothered to do such a simple thing should be drawn and quartered.... Ill guide the horse at the left leg... lol

but seriously d-o, I will give you karma each time I go to that forum for whatever reason, its the least I can do for all the help and advice you have given me in the short time I have known you...

Box Cutter
12-01-2006, 01:22 PM
No problem d-o. Thank you for this, and all your great plugins.

diamond-optic
12-01-2006, 07:52 PM
|= TatsuSaisei;2485']I will give you karma each time I go to that forum

lol it doesnt let you keep giving karma to the same person unless you give it to a bunch of other people in between :-( lol

tegu
12-01-2006, 10:57 PM
Pimped it for you. Like it was said earlier, it is the least we can do for you considering what all you have done for us!

Thanks D.O.!!

diamond-optic
12-01-2006, 11:04 PM
thanks guys..

wonder if it will help get it approved lol

diamond-optic
12-16-2006, 08:49 PM
i suggest anyone running this plugin update.. as this version fixes some pretty stupid (and sloppy) coding in a few places & removes a good chunk of unneccesary junk..

update to version 1.2
- 12.16.2006 Version 1.2
Cleaned up a bunch of things (thanks Emp`)



heheh this update also got it approved on amxmodx.org :-P

KidTwisted
12-17-2006, 12:26 AM
Pretty cool,

My Favorite Plugin just got better!

Sweet!

Box Cutter
12-17-2006, 03:54 AM
Pretty cool,

My Favorite Plugin just got better!

Sweet!

I 2nd that. Thanks again for the plugin d-o.

tegu
12-17-2006, 12:34 PM
+1

This plugin is one that really is amazing. You have made so many that are nothing short of awesome. You have done a lot for DoD and I for one will do whatever I can, whenever I can to help.

Thanks D-O.

icedude
02-22-2007, 01:47 AM
do i download both files

=|[76AD]|= TatsuSaisei
02-22-2007, 12:28 PM
do i download both files

unless you specifically know you already have the shellshock mp3 then yes it is suggested that you download "both" available options... one download is the plugin source itself (needs to be compiled into an .amxx file) and the other download is the one .mp3 file that is needed (the shellshock ringing sound)

diamond-optic
03-17-2007, 10:42 PM
updated to version 1.3

Change Log: - 03.17.2007 Version 1.3
Cleaned up some more things thru the code
Changed the default values for some of the cvars
Now the effects will stop if you die
Improved the effect tasks
Added a new feature: sfx (changes the way everything you hear sounds)New CVARs:
dod_shellshock_sfx "1" //Turn on(1)/off(0) soundfx effect
dod_shellshock_sfx_dmg "40" //Sets the minimum damage required
dod_shellshock_sfx_time "20" //Sets how long the effect lasts (-1 = keep effect till client dies)
dod_shellshock_sfx_stay "0" //If set to 1, the effect will stay till the player diesthe new feature basically makes your sound a lower pitch (low pass filter) and adds some delay/feedback/reflection/modulation to give a pretty nice effect.. fits in pretty well..

only drawback is i couldnt really find a good way to make it fade back into normal.. so i just used a light screen fade and a small screen shake.. idk.. pretend you shake your head and it clears up lol

anyway ive only had this running for 3 or 4 days on my server so im hoping everything works lol.. made some changes to the tasks that should help with some problems ive noticed in previous versions..

well i guess thats about it lol.. enjoy :D

diamond-optic
03-18-2007, 12:56 AM
ok i hate when this kind of crap happens..

but ive found a few minor problems.. so expect a small update again within a couple days..

=|[76AD]|= TatsuSaisei
03-18-2007, 12:56 PM
ok i hate when this kind of crap happens..

but ive found a few minor problems.. so expect a small update again within a couple days..

lol, or you could be like me and KNOW what you need to fix, think you did it, then released it... only to realize a day or two later that what you posted didn't have the "fixes" ... done that :eek:

you just keep doing a good job and noone will hold anything against you :D

diamond-optic
03-18-2007, 05:59 PM
v1.3 is still fine to use..

as these 'problems' were pretty much all present in every version so far anyway

diamond-optic
03-20-2007, 12:30 AM
updated to version 1.3b


Change Log:
- 03.19.2007 Version 1.3b
Fixed a typo in the CVAR comment section
More simple way to stop all the effects at once
Tasks are now removed on client disconnect
Changed volume cvar query task from 10sec to 8sec
Removed some plugin active checks (avoids problems when turning it on mid-game)
Added RoundState checks


Click to go back to 1st page (http://www.dodplugins.net/forums/showthread.php?t=56)

diamond-optic
03-20-2007, 04:43 PM
wow what a dumb fool i am.. i just noticed i pretty much made 2 cvars to do the same thing lol..

another tiny update soon lol

diamond-optic
03-20-2007, 05:00 PM
update to version 1.3c

ok sorry bout that again lol.. hopefully this is the last one for now heheh

- 03.20.2007 Version 1.3c
Removed an extra cvar (dod_shellshock_sfx_stay)
Fixed the sfx effect time stuff

diamond-optic
04-29-2007, 12:10 PM
no longer very very important


i do believe you NEED to run metamod 1.19p28 (not the official 1.19) for this plugin to properly work!!!

ill explain more as to why when i get home from work..


and also anyone running this on the standard 1.19, you could help me confirm this.. (to make sure that its not just my server..)

but anyway im late for work so i cant explain it now :D

diamond-optic
04-29-2007, 07:41 PM
ok the problem i found with this is the following:

the volume effect... it uses the 'query_client_cvar' native to get the players default volume setting when they connect.. ok ya so what you might say.. well that native does not appear to do anything (at least in dod) when running metamod 1.19

however it does seem to work totally fine when running metamod 1.19p28 (or maybe higher..)


if you run 1.19 standard and you want to test it out.. do this:

1)load up dod, dont connect to your server yet tho..
2)go in console and type 'volume #.#" replacing '#' with numbers.. anything BUT 1.0, so for example.. type: volume 1.5
3)then after that.. connect to your server...
4)join a team and wait to spawn...
5)once you spawn, go in the console and type just: volume

what it SHOULD say is 1.500000 etc..
..if it says 1.0000000 then that means it didnt get your default volume setting..

it will set it to 1.00000 because when it trys to query your default setting.. if it doesnt get it, it will automatically make it 1.0

also note.. it should have a bunch of zeros on it.. if it still says only "1.5" then it must not have caught the spawn.. but that shouldnt really be a factor..

if other ppl can confirm for me that it DOES NOT work on 1.19 non-p then i'll be sure to put in a check in the plugin for it.. tho i would also appreciate you letting me know if it does work for you.. BUT BE SURE about what version of metamod your running


.....

also.. i just noticed a minute ago that there is now metamod 1.19p31.. i am yet to check it with that.. tho i would assume that if it works on p28 (running on my server now) that it will probably work on p31

=|[76AD]|= TatsuSaisei
04-30-2007, 09:54 AM
1.19 doesn't work for me.. (could've sworn it did though... I remember doing alot of testing on it...)

1.19p31 doesn't work for me...

send me a copy of your p28 please....

diamond-optic
04-30-2007, 02:02 PM
1.19p31 works fine for me...


it says this on the amxx function docs:
The function uses a pretty new engine function (added around Aug 11, 2005). Therefore it may cause a native error on out-of-date servers.
It also uses newdll functions; metamod (at least 1.18) doesn't provide newdll function table hooking for plugins if the mod gamedll doesn't export newdll functions.
This is fixed in metamod-1.18p26 by ghost_of_evilspy (hullu). [ http://sourceforge.net/projects/metamod-p ]

maybe when the official 1.19 was released they didnt 'fix' it in that.. but it stayed 'fixed' in the metamod-p versions


i attached p28.. but i only have the linux binary for it

*edit*

ok nm i found my win32 copy of p28..

diamond-optic
04-30-2007, 11:20 PM
ok i just spent the past like hour joining other servers that are running the shell shock...

and actually i think just about all of them were running 1.19 standard on both linux and win32 servers..

and each and every one of them.. the cvar query seemed to work totally fine..


so im really confused now.. i guess i should just add like a disclaimer or something that warns that if it doesnt work properly with 1.19 standard you should try 1.19p##

mantk
05-01-2007, 01:15 PM
When I activate this plugin on my win server the FG42 don’t shoot correct, if you click mouse button only shot one bullet and the clip/shipper goes empty witout more firings. We use the AMXX v1.76d and MM v1.19p28

Sorry for my english, this is the spanish version if any can make a better translation:
Cuando activo este plugin en mi servidor win la FG42 no dispara, si haces clic con el mouse solo dispara una vez y el cargador del arma se vac&#237;a sin hacer m&#225;s disparos.

=|[76AD]|= TatsuSaisei
05-01-2007, 05:38 PM
|= TatsuSaisei;5484']1.19 doesn't work for me.. (could've sworn it did though... I remember doing alot of testing on it...)

1.19p31 doesn't work for me...

send me a copy of your p28 please....

after further testing, I discovered that my original tests were all done on a player as they entered the server, and this failed to grab the necessary information properly... but if I set it up to be manually executed it DOES grab the information.. on 1.19 standard and 1.19p31 ... so.. it works, just have to "wait" a little while after a player connects to start looking at thier info ... or write up a function that checks the first time a player spawns then never again for the rest of the map...

diamond-optic
05-01-2007, 08:00 PM
When I activate this plugin on my win server the FG42 don’t shoot correct, if you click mouse button only shot one bullet and the clip/shipper goes empty witout more firings. We use the AMXX v1.76d and MM v1.19p28

i dont see how this plugin could be affecting anything in that way.. this plugin, for the most part, just hooks client damage.. has nothing to do with the actual firing of weapons..

tho your problem seems like something i notice sometimes with the bar (and ive noticed this for years) where sometimes when you fire it, the 1st round gives you the empty weapon click and then you dont get the shooting sound for the rest.. but i think its always 'corrected' after the 1st clip..

really dont see anyway this plugin would even be touching that stuff..


|= TatsuSaisei;5534']it DOES grab the information.. on 1.19 standard and 1.19p31

wellllllllllll great... guess its just my server thats gay and wont work with 1.19 standard

diamond-optic
06-13-2007, 07:14 PM
Update to v1.4

- 06.13.2007 Version 1.4
Changed the way the cvar query is done (first time client spawns)
Added round draws to roundstate check
Removed some code in the roundstate function
Added drop weapon effect
Added force prone effect
Added 'particle' effect
Few minor code changes/fixes
Replaced high & low vector CVARs with one single new CVAR

johnnyskid
06-22-2007, 11:13 AM
This plugin is great! On the controls for this, witch one controls the part concerning when your volume gets all out of wack. I am wanting to decrease the length of time before it turns back to normal.

Thanks!

diamond-optic
06-23-2007, 12:41 AM
try these ones:


dod_shellshock_sfx "1" //Turn on(1)/off(0) soundfx effect
dod_shellshock_sfx_dmg "40" //Sets the minimum damage required
dod_shellshock_sfx_time "20" //Sets how long the effect lasts (-1 = keep effect till client dies)

johnnyskid
06-25-2007, 09:48 PM
Thank you kindly!! that did help very much....

I went to your server the other day and you had a real kick ass "vote map" that came up in a hud msg.

Where did you get that.. or did you make it?

diamond-optic
06-25-2007, 10:45 PM
its the default mapchooser that ive modified a bit.. also has a few parts of deagle's map management mixed in...

knife108
08-17-2007, 08:03 AM
when I use this plugin the client will quit by itself except stay as the spectator .


error report:
Host_Error: UserMsg: Not Present on Client 58



If turn off the plugin the client will join the game now !

my amxmod 1.76 and meatmod 1.19/p28


Can u fix it ? Thx

diamond-optic
08-18-2007, 10:00 PM
no idea why that would happen lol.. never seen that problem with this plugin before

knife108
08-19-2007, 03:30 AM
no idea why that would happen lol.. never seen that problem with this plugin before


So I tried to use the DoD Damage Infliction Mod on my server and it worked fine. I thought it maybe has the same effects.

diamond-optic
08-19-2007, 12:27 PM
So I tried to use the DoD Damage Infliction Mod on my server and it worked fine. I thought it maybe has the same effects.

well i dont have time right now as im late for work.. but TatsuSaisei could give a better answer...

but i think the damage infliction mod 'includes' like a version of the shellshock, so i think running both plugins at the same time might cause a problem.. idk..

knife108
08-20-2007, 12:52 AM
well i dont have time right now as im late for work.. but TatsuSaisei could give a better answer...

but i think the damage infliction mod 'includes' like a version of the shellshock, so i think running both plugins at the same time might cause a problem.. idk..


Yam it includes shellshock mod, i like the effects .so i use the damage infliction only.


i really hope someone can develope the weather change mod i mean add or shut off the snow or rain .

Akula
09-23-2008, 10:51 AM
Decent plugin , just think that the either the default time you suffer shellshock is too long , or the server admin are turning it up too high.

Played on a few servers (and left a few) with it and its just annoying now , being stunned for what felt like 15 seconds.

y543685085
09-23-2008, 06:05 PM
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for

diamond-optic
09-23-2008, 08:59 PM
hey whats up akula?
..i did make a few little adjustments (as in decreasing) the default times, but well.. you know.. im lazy, especially when it comes to releasing plugin updates lol


They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for

umm ok thats your 1st post.. and you are who?

pepedfh
04-10-2009, 04:51 PM
Hi there,

I installed your plugin awhile back (over a year ago) on a Windows server we use to run and it worked great!!! But now we are leasing/renting a Linux server and the shellshock plugin does not seem to work. Is there something in the script we are suppose to modify in order for it to work on Linux? I contacted the Game Servers support and they say the do not work on third party plugins. If you have any suggestions, it will greatly be appreciated.

thanks in advance,
pepedfh :)

meathead
04-11-2009, 12:37 PM
I am also running on gs with a linux box. Plugin works fine for me. Shouldn't have to do anything special. Enable it in your plugins.cfg, and I use a cfg file in my root directory for the cvars, then call that cg in amxx.cfg, ex: exec shellshock.cfg.

pepedfh
04-15-2009, 03:12 PM
Thanks, I will do what you have suggested...

thanks again,
Pepe

Arac
05-12-2009, 06:31 AM
Amxx 1.81 and Linux server , and plugin running .. Thx, nice work !!!

snake26
07-29-2009, 01:36 AM
when I use this plugin the client will quit by itself except stay as the spectator .


error report:
Host_Error: UserMsg: Not Present on Client 58



If turn off the plugin the client will join the game now !

my amxmod 1.76 and meatmod 1.19/p28


Can u fix it ? Thx


The same thing happens

to play with valve

steam with everything

diamond-optic
07-29-2009, 06:48 PM
hmm theres a lot of different reasons why you could get that error, and at the same time theres no reason as well.. darn halflife engine... Not sure if you are also using amxx 1.76 and metamod 1.19p28, but they are both outdated versions (especially amxx 1.76)..

but in either case ill be posting a new version of this plugin shortly, tho i dont really think the update will have anything connection to that error

diamond-optic
07-29-2009, 07:18 PM
Update to Version 2.0

- 07.29.2009 Version 2.0
Added cvar query for client's room_type setting
Improved code for reseting sfx effect
Replaced spawn forward with HamSandwich
Added commands to force/stop shell shock on a player (can be called by other plugins)
Added file consistency on the shellshock sound
Renamed the sound file to start fresh for the file consistency
Adjusted some default times
Another attempt at fixing the 0 volume issue
Replaced DoDx death forward with HamSandwich
Changed alot of the CVARs to compiler defines
Improved task handling
Various code improvements
Added compiler define for setting max players



** IMPORTANT NOTE **

due to adding a file consistency check to the ringing sound file, I have renamed the file to start fresh (so there isnt any issues if some servers possibly replaced the old file with a different one of the same name).. So you will need to download the new file and put it on your server..

Also, if you plan on changing to a different sound file, DO NOT REPLACE THE DEFAULT ONE, use one with a different name and change the RINGSOUND define inside the source code!

TigerMan4
08-24-2009, 10:18 AM
When I click the "compile" and chose my mod version , I get a file that says "error"

Dr.G
08-24-2009, 11:06 AM
then get the newest AMXX version, or live without it.

TigerMan4
08-24-2009, 03:02 PM
then get the newest AMXX version, or live without it.


That's a rather rude answer.

when I click the "compile" button on this thread , and select my version of amxmodx , it says , error.

I can download the source and compile it fine from the amxmodx website.

I would imagine I was pointing out a problem with the forums/thread/compiler.

you don't have to be a dick about it.

Dr.G
08-24-2009, 03:17 PM
compileing it for version 1.81 here, would be the same as compiling it at allied modders. the reason it wont work for any 1.76 versions is that the hamsandwich module wasnt in those, and this plugin wont work without it

TigerMan4
08-24-2009, 07:54 PM
thank you for a polite reply.

I will update my amxmodx , I didn't realize until now , that gameservers had reinstalled the old version of amxmodx on my box when the hard drive failed.

I guess that would explain a lot of things about plugins I had problems with , like the map chooser not working properly.

thanks

netmad
08-15-2010, 12:16 PM
why I install this plugins to Server, it can run and no wrong . but player enter server, join team and select class, then exit Server immeditly.