• Post-Processing
    2 replies, posted
Hello, I almost finished my server addon but I still want add 1 more thing. I want it so when you die, the black and white post-processing file to load so that the dead player will view everything in black and white.
That should do the trick: [CODE] local function blackwhite( ) if(!LocalPlayer():Alive()) then tab= {} tab[ "$pp_colour_addr" ] = 0 tab[ "$pp_colour_addg" ] = 0 tab[ "$pp_colour_addb" ] = 0 tab[ "$pp_colour_brightness" ] = 0 tab[ "$pp_colour_contrast" ] = 1 tab[ "$pp_colour_colour" ] = 0 tab[ "$pp_colour_mulr" ] = 0.2 tab[ "$pp_colour_mulg" ] = 0.2 tab[ "$pp_colour_mulb" ] = 0.2 DrawColorModify(tab) end end hook.Add("RenderScreenspaceEffects", "deadplayereffect", blackwhite) [/CODE]
[QUOTE=syl0r;41488791]That should do the trick: [CODE] local function blackwhite( ) if(!LocalPlayer():Alive()) then tab= {} tab[ "$pp_colour_addr" ] = 0 tab[ "$pp_colour_addg" ] = 0 tab[ "$pp_colour_addb" ] = 0 tab[ "$pp_colour_brightness" ] = 0 tab[ "$pp_colour_contrast" ] = 1 tab[ "$pp_colour_colour" ] = 0 tab[ "$pp_colour_mulr" ] = 0.2 tab[ "$pp_colour_mulg" ] = 0.2 tab[ "$pp_colour_mulb" ] = 0.2 DrawColorModify(tab) end end hook.Add("RenderScreenspaceEffects", "deadplayereffect", blackwhite) [/CODE][/QUOTE] Thank You!
Sorry, you need to Log In to post a reply to this thread.