PDA

View Full Version : DoD Death Fade (v1.1)


diamond-optic
07-22-2006, 02:12 AM
DoD Death Fade
- Version 1.1
- 03.11.2009
- diamond-optic

Information:

- Semi-transparent screen fade on client death


CVARs:

dod_deathfade "1" //(1)ON or (0)OFF


Settings (Global Variables):

set_FadeAlpha = 225 //Fade alpha level

set_FadeRed = 225 //Fade red level
set_FadeGreen = 0 //Fade green level
set_FadeBlue = 0 //Fade blue level


Change Log:

- 05.01.2006 Version 0.1
Initial Release

- 05.06.2006 Version 0.2
Changed from MSG_ONE to MSG_ONE_UNRELIABLE

- 05.30.2006 Version 0.3
Adjusted ScreenFade message variables

- 06.02.2006 Version 0.4
Added CVARs to control fade RGB & alpha levels

- 06.28.2008 Version 1.0
Minor code improvement
Moved get_user_msgid to plugin_init

- 03.11.2009 Version 1.1
Changed DoDx death forward to HamSandwich
Changed some CVARs to global variables (faster)


DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.38

TigerMan4
08-24-2006, 02:06 AM
I like this.... red fade thingy....but which way do you change the Alphas to make it it darker or lighter ?

diamond-optic
08-24-2006, 11:26 AM
umm its kinda early lol.. so i might be wrong heh.. but i believe the lower the alpha level the more transparency there is...

and you could also adjust the colors to say.. a darker red.. that might help too

TigerMan4
09-06-2006, 10:01 PM
will this work with the fade to black ? so that admins with imunity can see the red while everyone else goes black ?

diamond-optic
09-06-2006, 10:09 PM
not totally sure.. you'd have to try it and see..

i would assume its possible, tho im not sure exactly what it would do to normal clients when it tries to do both on them

=|[76AD]|= TatsuSaisei
09-07-2006, 12:27 AM
What I have found, and this might not hold ture for all things, but the plugin list is a "sequential" list... meaning this... every cycle the server runs, it goes through the list of plugins, runs each of them, in order, to "check" if anything is supposed to happen based on what happened during that cycle. Therefore the effects happen in the order they appear in the list... now, depending on the author of the specific plugin, and how he "returned" his specifc function, generally dictates if any more plugins will be run, based on the specific criteria used to initiate the effect from the "first" plugin. Sometimes the effect will allow a "pass through" which will then allow other functions, and other plugins, to the "add" more effect to the specific caught "action".... hope that made some sense...

but in a nutshell try this, rearrange the plugins in the list such that are in reverse order now... if "red" death fade occured first (which sounds like it does) and "black" runs second, which sounds to be "overwriting" the "red" fade, then move the "red" plugin AFTER the "black" plugin in the list... then EVERYONE will become "black" upon death, but IF a player has "admin_flag" then it will overwrite "black" and make it "red"....

diamond-optic
09-07-2006, 12:31 AM
ya that might work :-)

but it might also.. run the fade to black plugin, and fade the players screens to black, then run the death fade (red for example) and it might change the black fade to red..

if you cant get it to work the way you want let me know and ill figure something out..

=|[76AD]|= TatsuSaisei
09-07-2006, 01:05 AM
the ultimate solution to all of this is to simply combine the two plugins... what it sounds like is ftb for all non-clan members, but clan members who die CAN see, but with a red screen... so the combination would simply have extra cvars that allow a certain admin flag to still maintain visibility... any extra customizations are always welcomed, especially when any amount of similar plugins can be combined to one main plugin

Hood [10th MD]
02-01-2007, 06:58 PM
In the case of both these plugins, how do you make the fade permanent until the user respawns?
For example, I have modified ftb to make it so that anytime you join spectators, you also get faded. But, after a minute or less, it becomes clear again, whereas, I want it permanent until you respawn. Thoughts?

diamond-optic
02-03-2007, 12:21 AM
well ive got alot of stuff to do outside of amxx at the moment.. so i cant really help right now.. but that sounds like a good feature to maybe add

diamond-optic
06-28-2008, 08:12 PM
updated to version 1.0

- 06.28.2008 Version 1.0
Minor code improvement
Moved get_user_msgid to plugin_init

diamond-optic
03-11-2009, 08:14 PM
updated to v1.1

- 03.11.2009 Version 1.1
Changed DoDx death forward to HamSandwich
Changed some CVARs to global variables (faster)