• Making a swep need help - Basic
    3 replies, posted
so im making a swep which will set the targets screen to the Post Processing Overlay thing in the gmod spawnmenu but how do i put an overlay please help any reply is appreicated (the target is defined by ent and works)
really no one knows....
you'll need a timer for the Post Process Effect so it last x amount of seconds You'll need to use PlayerHurt hook And you'll need DrawMaterialOverlay or DrawTexturize If you need help add me on steam. I'm pretty good with GLua.
Can't you just use [url=http://wiki.garrysmod.com/page/Global/DrawMaterialOverlay]DrawMaterialOverlay[/url] (or [url=http://wiki.garrysmod.com/page/Global/DrawTexturize]DrawTexturize[/url]) in your [url=http://wiki.garrysmod.com/page/WEAPON/DrawHUD]WEAPON/DrawHUD[/url] hook? Seems to work for me, e.g. [CODE] function SWEP:DrawHUD() DrawMaterialOverlay( "effects/tvscreen_noise002a", -0.06 ) // The -0.06 is the refract amount end [/CODE] That draws the static TV effect when the weapon is equipped, but tell me what overlay you want to use if you want me to find a path for it. [editline]17th November 2015[/editline] I probably read that wrong, do you mean the 'target' to be the player with the weapon or the person who is getting shot/hurt?
Sorry, you need to Log In to post a reply to this thread.