n- Version 2.0
n- 07.29.2009
n
nCredits:
n
- Original Code by v3x (he_damage_effect v0.2)n- Ported to DoD by diamond-opticn- cadav0r: new volume fx methods and various other fixesn- WARDOG: new ringing soundn- Emp`: suggestions on cleaning up some bits and piecesn- Wilson [29th ID]: PStatus method of catching player spawnn- TatsuSaisei: Fix for Wilson's PStatus methodInformation:
n
- When you take damage from the allowed weapons,n You will experiecne a random selection or an combination of various effects.. For example, yourn screen might be distorted, your sound volume mightn decrease for a few seconds before it returns ton normal. There's also a chance for a ringing soundn in your ears, along with little floating dots alln around you...There is also an effect that changesn the way everything sounds to you (pitch shift/echo/etc).n You may even drop your weapon/object/ammo or fall down prone.nn- CVARs to pick which weapons cause effectsn- Minimum damage required controllable for each one of the effectsn- Each effect has options to control specific aspects of that effectnn- File consistency is enforced on the shellshock ring sound ton prevent people from replacing it with a blank sound filenn- Server List: Servers: [URL]http://www.game-monitor.com/search.php?rulename=dod_shellshock_stats[/URL]Commands:
n
dod_shellshock_startCVARs://Shell Shock a clientndod_shellshock_stop //Stops Shell Shock on a client
n
dod_shellshock "1" //Turn on(1)/off(0)nn//weapons that cause effectsndod_shellshock_wpn_grenades "1"ndod_shellshock_wpn_rockets "1"ndod_shellshock_wpn_mortars "1"ndod_shellshock_wpn_knives "0"ndod_shellshock_wpn_spades "0"ndod_shellshock_wpn_buttstocks "0"ndod_shellshock_wpn_bayonets "0"Compiler Defines:
n
SETTING_WARN 2 //Inconsistent file warning settingn // 0 = say nothingn // 1 = tell adminsn // 2 = tell publicnnSETTING_WARNACTION 2 //Inconsistent file action settingn // 0 = do nothingn // 1 = kickn // 2 = bannnSETTING_FILEBANTIME 15 //Inconsistent file ban action lengthnnSETTING_FILEAMXBANS 0 //Inconsistent file ban action amxbans supportn // 0 = offn // 1 = onn // 2 = on, alternate syntaxnnSETTING_FADE 1 //Turn on(1)/off(0) screen fade effectnSETTING_FADEDMG 30 //Sets the minimum damage requirednSETTING_FADEALPHA 100 //Sets the defualt fade alpha levelnSETTING_FADEINC 1 //Turn on(1)/off(0) increase of fade alpha levelnSETTING_FADEINCDMG 2 //Amount of damage for each step of fade alpha level increasenSETTING_FADEINCAMT 5 //Fade alpha level increase amount per step nnSETTING_SHAKE 1 //Turn on(1)/off(0) screen shake effectnSETTING_SHAKEDMG 20 //Sets the minimum damage requirednnSETTING_VECTOR 1 //Turn on(1)/off(0) vector effectnSETTING_VECTORDMG 50 //Sets the minimum damage requirednSETTING_VECTORAMT 60.0 //Sets the min/max angle of changennSETTING_VOLUME 1 //Turn on(1)/off(0) short volume loss effectnSETTING_VOLUMEDMG 65 //Sets the minimum damage requirednSETTING_VOLUMETIME1 10 //How long you lose volume (10ths of a second)nSETTING_VOLUMETIME2 10 //Delay between each volume increase step (10ths of a second)nSETTING_VOLUMEINC 1 //Turn on(1)/off(0) increase of volume loss timenSETTING_VOLUMEINCDMG 10 //Amount of damage for each step of vol. loss increasenSETTING_VOLUMEINCTIME 5 //Volume loss increase time per step (10ths of a second) nnSETTING_RING 1 //Turn on(1)/off(0) ringing effectnSETTING_RINGDMG 80 //Sets the minimum damage requirednnSETTING_FOV 1 //Turn on(1)/off(0) fov effectnSETTING_FOVDMG 85 //Sets the minimum damage requirednnSETTING_SOUND 1 //Turn on(1)/off(0) soundfx effectnSETTING_SOUNDDMG 60 //Sets the minimum damage requirednSETTING_SOUNDTIME 10.0 //Sets how long the effect lasts (-1 = keep effect till client dies)nnSETTING_DROP 1 //Turn on(1)/off(0) weapon drop effectnSETTING_DROPDMG 90 //Sets the minimum damage requirednnSETTING_PRONE 1 //Turn on(1)/off(0) forcing prone effectnSETTING_PRONEDMG 95 //Sets the minimum damage requirednnSETTING_PARTICLES 1 //Turn on(1)/off(0) particle effect (floating dots)nSETTING_PARTICLESDMG 20 //Sets the minimum damage requirednnSETTING_MAXPLAYERS 32 //Set to the maximum # of players (slot count)Extra:
n
Put the "dod_shellshock_ring.mp3" in /dod/sound/misc/nnIf you change the sound file, DO NOT use the same name,nchange the #define RINGSOUND instead!!!Change Log:
n
- 05.01.2006 Version 0.1n Initial port of v3x's "he_damage_effect v0.2"n Added cvar to set min. dmg requiredn Added Rockets as well as grenadesnn- 05.03.2006 Version 0.2n Added Garand & K43 buttstocksnn- 05.05.2006 Version 0.3n Added CVAR for buttstocksn Renamed to DoD Shell Shocknn- 05.06.2006 Version 0.4n Removed buttstocks till I do it a better wayn Changed from MSG_ONE to MSG_ONE_UNRELIABLEnn- 05.10.2006 Version 0.5n Added CVARs for fade & shake (code from cadav0r)n Added CVAR for volumenn- 05.12.2006 Version 0.6n CVAR query bug fixed (thanks cadav0r)n New method for volume effect (thanks cadav0r)n Fixed volume staying at 0.0 bugnn- 05.15.2006 Version 0.7n Another fix for CVAR query problemn Added ringing sound MP3 (still plays during volume effect)n Added CVAR for ringing effectn Added FOV effect (defualts to 0 as im not satisfied with it yet)nn- 05.18.2006 Version 0.7bn Removed global damage cvar and added one for each effectnn- 05.22.2006 Version 0.7cn Fixed run-time errorn Adjusted a few random things...nn- 05.24.2006 Version 0.7dn Fixed 2 small errors becuase of my stupidity (thanks cadav0r)nn- 06.09.2006 Version 0.8n Added CVAR for how long you lose your volumen Added CVAR for delay between each volume increase step (thanks cadav0r)n New 'ringing' sound (thanks WARDOG)n Adjusted ScreenFade & ScreenShake message variablesnn- 07.06.2006 Version 0.9n Replaced ENGINE module with FAKEMETA modulen Fixed volume effect for multiple nade hits (thanks cadav0r)n Added increasing of volume loss time depending on dmg (thanks cadav0r)n Added CVAR for setting the fade effect's defualt alpha leveln Added increasing of fade alpha level depending on dmg (cadav0r's method)n Added 4 CVARs to control vector effect settingsn Did some more work on the FOV effect, a little bit more satisfied with itnn- 07.09.2006 Version 0.9bn Removed FUN modulenn- 07.14.2006 Version 0.9cn Fixed "Missing RIFF/WAVE chunk" console messagenn- 08.05.2006 Version 0.9dn Fixed possible problem with ring sound not playing (thanks KidTwisted)n Added RINGSOUND define to make it easy to use a different filen Incase the volume global doesnt get set.. it defualts to 1.0n Cleaned up code a bit...nn- 08.28.2006 Version 1.0n Added mortars, knives, spades, buttstocks, and bayonetsn Added CVARs to control which weapons cause the effectn Changed some returnsnn- 09.21.2006 Version 1.1n Added public cvar for stats trackingnn- 12.16.2006 Version 1.2n Cleaned up a bunch of things (thanks Emp`)nn- 03.17.2007 Version 1.3n Cleaned up some more things thru the coden Changed the default values for some of the cvarsn Now the effects will stop if you dien Improved the effect tasksn Added a new feature: sfx (changes the way everything you hear sounds)nn- 03.19.2007 Version 1.3bn Fixed a typo in the CVAR comment sectionn More simple way to stop all the effects at oncen Tasks are now removed on client disconnectn Changed volume cvar query task from 10sec to 8secn Removed some plugin active checks (avoids problems when turning it on mid-game)n Added RoundState checksnn- 03.20.2007 Version 1.3cn Removed an extra cvar (dod_shellshock_sfx_stay)n Fixed the sfx effect time stuffnn- 06.13.2007 Version 1.4n Changed the way the cvar query is done (first time client spawns)n Added round draws to roundstate checkn Removed some code in the roundstate functionn Added drop weapon effectn Added force prone effectn Added 'particle' effectn Few minor code changes/fixesn Replaced high & low vector CVARs with one single new CVARnn- 07.29.2009 Version 2.0n Added cvar query for client's room_type settingn Improved code for reseting sfx effectn Replaced spawn forward with HamSandwichn Added commands to force/stop shell shock on a player (can be called by other plugins)n Added file consistency on the shellshock soundn Renamed the sound file to start fresh for the file consistencyn Adjusted some default timesn Another attempt at fixing the 0 volume issuen Replaced DoDx death forward with HamSandwichn Changed alot of the CVARs to compiler definesn Improved task handlingn Various code improvementsn Added compiler define for setting max playersDOWNLOAD MIRROR: http://www.avamods.com/download.php?view.54

