• Heatvision?
    7 replies, posted
How can I make some kind of heat vision? Basically I need it to draw players as a solid color, but only parts that aren't visible. [IMG]http://puu.sh/j72JT/0ede4240e2.jpg[/IMG] Like this. This is not for some kind of hack, this is for an addon.
Stencils or Render
Can I have an example? I don't know how to use this stuff.
Check out the zombie vision in Jetboom's [URL="https://github.com/JetBoom/zombiesurvival"]Zombie Survival[/URL], it's similar to what you're trying to achieve.
I tried the code from there but it doesn't work the way I want it to.
Nobody here will code it for you
I don't want them to code it for me, I just want help on how to use render to do this. [editline]21st July 2015[/editline] [CODE] cam.Start3D(EyePos(),EyeAngles()) local col = Color(0, 255, 0, 255) render.SuppressEngineLighting( true ) render.SetColorModulation(col.r / 255, col.g / 255, col.b / 255); render.SetBlend(col.a / 255); render.MaterialOverride(mat) v:DrawModel() render.SuppressEngineLighting( false ) render.SetColorModulation(1, 1, 1) render.MaterialOverride() v:DrawModel() cam.End3D() [/CODE] I have this, but it doesn't work. It draws players through walls but doesn't color them. I'm calling it in a HUDPaint hook.
[QUOTE=liqob;48262326]I don't want them to code it for me, I just want help on how to use render to do this. [editline]21st July 2015[/editline] [CODE] cam.Start3D(EyePos(),EyeAngles()) local col = Color(0, 255, 0, 255) render.SuppressEngineLighting( true ) render.SetColorModulation(col.r / 255, col.g / 255, col.b / 255); render.SetBlend(col.a / 255); render.MaterialOverride(mat) v:DrawModel() render.SuppressEngineLighting( false ) render.SetColorModulation(1, 1, 1) render.MaterialOverride() v:DrawModel() cam.End3D() [/CODE] I have this, but it doesn't work. It draws players through walls but doesn't color them. I'm calling it in a HUDPaint hook.[/QUOTE] Because you are calling DrawModel twice.
Sorry, you need to Log In to post a reply to this thread.