• DarkRP Post Process
    1 replies, posted
Hello everyone, I recently saw a server for HL2 tiory where you would choose a job, for a certain of them you are given the Post Process, I want to ask how you can turn on the Post Process for a certain profession, that it turned on automatically when you take the profession. I want to add Post Process> Overlay> Binocular to the server. Who can help in advance thanks. [IMG]http://i.imgur.com/Z5IL0ry.png[/IMG]
[code] local lastTexture = nil local mat_Overlay = nil local lp = LocalPlayer() local function DrawMaterialOverlay2( texture, refractamount ) if ( texture ~= lastTexture or mat_Overlay == nil ) then mat_Overlay = Material( texture ) lastTexture = texture end if ( mat_Overlay == nil || mat_Overlay:IsError() ) then return end render.UpdateScreenEffectTexture() mat_Overlay:SetFloat( "$envmap", 0 ) mat_Overlay:SetFloat( "$envmaptint", 0 ) mat_Overlay:SetFloat( "$refractamount", refractamount ) mat_Overlay:SetInt( "$ignorez", 1 ) render.SetMaterial( mat_Overlay ) render.DrawScreenQuad() end local function DrawInternal2() local overlay = "effects/combine_binocoverlay" --your overlay if lp:Team() != TEAM_CITIZEN then return end --your team DrawMaterialOverlay2( overlay, 0.3 ) end hook.Add( "RenderScreenspaceEffects", "RenderMaterialOverlay", DrawInternal2 ) [/code]
Sorry, you need to Log In to post a reply to this thread.