Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Death Fade (v1.1)

by diamond-optic · 2006-07-22 · 11 replies · 11292 views · 60 downloads

Read the thread (12 posts)

From the first post

DoD Death Fade
n- Version 1.1
n- 03.11.2009
n- diamond-optic
n
nInformation:
n
- Semi-transparent screen fade on client death

n
nCVARs:
n
dod_deathfade "1"  //(1)ON or (0)OFF

n
nSettings (Global Variables):
n
set_FadeAlpha =     225    //Fade alpha levelnnset_FadeRed =       225    //Fade red levelnset_FadeGreen =     0      //Fade green levelnset_FadeBlue =      0      //Fade blue level

n
nChange Log:
n
- 05.01.2006 Version 0.1n    Initial Releasenn- 05.06.2006 Version 0.2n    Changed from MSG_ONE to MSG_ONE_UNRELIABLEnn- 05.30.2006 Version 0.3n    Adjusted ScreenFade message variablesnn- 06.02.2006 Version 0.4n    Added CVARs to control fade RGB & alpha levelsnn- 06.28.2008 Version 1.0n    Minor code improvementn    Moved get_user_msgid to plugin_initnn- 03.11.2009 Version 1.1n    Changed DoDx death forward to HamSandwichn    Changed some CVARs to global variables (faster)

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

Files

dod_death_fade.sma Plugin Source 3 KB 60 dl Download Compile

Archived builds from the server loose

These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.

dod_death_fade_157.sma v0.4 2 KB Download Compile
dod_death_fade_277.sma v0.2 1 KB Download Compile

The thread

All 12 posts from 4 people on DoD Death Fade (v1.1), kept as they were written.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-22-2006, 01:12 AM #1

DoD Death Faden- Version 1.1n- 03.11.2009n- diamond-opticnnInformation:n

n- Semi-transparent screen fade on client deathn
nnCVARs:n
ndod_deathfade "1"  //(1)ON or (0)OFFn
nnSettings (Global Variables):n
nset_FadeAlpha =     225    //Fade alpha levelnnset_FadeRed =       225    //Fade red levelnset_FadeGreen =     0      //Fade green levelnset_FadeBlue =      0      //Fade blue leveln
nnChange Log:n
n- 05.01.2006 Version 0.1n    Initial Releasenn- 05.06.2006 Version 0.2n    Changed from MSG_ONE to MSG_ONE_UNRELIABLEnn- 05.30.2006 Version 0.3n    Adjusted ScreenFade message variablesnn- 06.02.2006 Version 0.4n    Added CVARs to control fade RGB & alpha levelsnn- 06.28.2008 Version 1.0n    Minor code improvementn    Moved get_user_msgid to plugin_initnn- 03.11.2009 Version 1.1n    Changed DoDx death forward to HamSandwichn    Changed some CVARs to global variables (faster)n
nnDOWNLOAD MIRROR: http://www.avamods.com/download.php?view.38

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
08-24-2006, 01:06 AM #2

I like this.... red fade thingy....but which way do you change the Alphas to make it it darker or lighter ?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
08-24-2006, 10:26 AM #3

umm its kinda early lol.. so i might be wrong heh.. but i believe the lower the alpha level the more transparency there is...nnand you could also adjust the colors to say.. a darker red.. that might help too

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
09-06-2006, 09:01 PM #4

will this work with the fade to black ? so that admins with imunity can see the red while everyone else goes black ?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-06-2006, 09:09 PM #5

not totally sure.. you'd have to try it and see.. nni 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
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-06-2006, 11:27 PM #6

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...n nbut 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
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-06-2006, 11:31 PM #7

ya that might work :-)nnbut 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.. nnif you cant get it to work the way you want let me know and ill figure something out..

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-07-2006, 12:05 AM #8

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

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
02-01-2007, 06:58 PM #9

In the case of both these plugins, how do you make the fade permanent until the user respawns?rnFor 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
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
02-03-2007, 12:21 AM #10

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
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-28-2008, 07:12 PM #11

updated to version 1.0nn

     - 06.28.2008 Version 1.0n        Minor code improvementn        Moved get_user_msgid to plugin_init
diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
03-11-2009, 07:14 PM #12

updated to v1.1nn

- 03.11.2009 Version 1.1n    Changed DoDx death forward to HamSandwichn    Changed some CVARs to global variables (faster)n
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC