• Screen Effects | Help
    12 replies, posted
How do people add screen effects like the drugs mod where your screen is rainbow and like on the weather mod, when it rains water droplets hit your screen?
Probably [url]http://wiki.garrysmod.com/page/GM/HUDPaint[/url] [editline]12th June 2016[/editline] or if you want it behind the normal hud you can use [url]http://wiki.garrysmod.com/page/GM/HUDPaintBackground[/url]
Yes I know that but how do I make it animated?
[QUOTE=GoldenLeopard;50502095]Yes I know that but how do I make it animated?[/QUOTE] Materials
Materials? Mind going a little more detailed?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/SetMaterial]surface.SetMaterial[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/SetDrawColor]surface.SetDrawColor[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/DrawRect]surface.DrawRect[/url]
Ohhhh well how do I put them in specificly?
Some materials are animated, thats what i mean. Or they change the paint colour.
Ok so I make a varible saying false and when I get to the right point I set it to true then I make a if statement ssaying if its true then surface setmaterial, if so how do I remove it?
[QUOTE=GoldenLeopard;50502117]Ok so I make a varible saying false and when I get to the right point I set it to true then I make a if statement ssaying if its true then surface setmaterial, if so how do I remove it?[/QUOTE] How do you remove what?
The material off my screen? Cause I want it to stay for a certain amount of seconds then go away.
[QUOTE=GoldenLeopard;50502124]The material off my screen? Cause I want it to stay for a certain amount of seconds then go away.[/QUOTE] Do not draw it. Make a HUDPaint hook in wich you check if you want those screen effects, set the material, colour and draw it with X=0, Y=0, Width=ScrW(), Height=ScrH() and make a timer that makes that value false in a couple of seconds
Ok thx
Sorry, you need to Log In to post a reply to this thread.