Post-Processing

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:



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)


Thank You!