1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Other Post Processing Effects?

Discussion in 'Development' started by The Way Home, Nov 12, 2016.

  1. bumpedy bump?
     
  2. I think it might be possible, since for the Combine faction, you get a darkened more gritty overlay. I would recommend looking at the code for that whitelist and seeing if there's anything regarding adding an overlay.
     
  3. huh, didn't think of that, will try!
     
  4. okay, this is what I found
    Schema.combineOverlay = Material("effects/combine_binocoverlay");
    p sure this is it, but firstly.
    I want it to only happen when you equip an item, i.e a gas mask
    and two, I don't want it to be just for the combine faction seen as I won't be using the combine faction.
     
  5. I think there's a line of code you can add into items when you equip them to call the function to add on that overlay.

    I don't know the exact line of code needed however.
     
  6. we really need a library of all this shit, wish the wiki was an actual thing.
     


  7. We're looking at that in the rear view mirror buddy.
     
  8. its not nearly complete tho
    anyway, anyone know how to do the thing Knight just suggested?
    I'm sure it exists as the Nebulous and Lemonpunch gasmasks used to put an overlay on the screen when u equipped them.
     
    Last edited: Dec 11, 2016
  9. Nevermind!
    One of my friends told me its a part of the armor plugin for anyone who was wondering here it is.
    Code:
    -- Called when gasmask screen space effects should be rendered.
    function PLUGIN:RenderScreenspaceEffects()
        local hasGasmask = Clockwork.Client:GetSharedVar("HasGasmask");
        if (hasGasmask and Clockwork.Client:GetFaction() != FACTION_MPF) then
            local health = LocalPlayer():Health();
           
            if (health <= 20) then
                DrawMaterialOverlay("effects/gasmask_screen_4.vmt", 0.1);
            elseif(health <= 30) then
                DrawMaterialOverlay("effects/gasmask_screen_3.vmt", 0.1);
            elseif(health <= 60) then
                DrawMaterialOverlay("effects/gasmask_screen_2.vmt", 0.1);
            elseif(health <= 90) then
                DrawMaterialOverlay("effects/gasmask_screen_1.vmt", 0.1);
            else
                DrawMaterialOverlay("effects/gasmask_screen.vmt", 0.1);
            end;
        end;
    end;
     

Previous Readers (Total: 0)