Heatvision?

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.

http://puu.sh/j72JT/0ede4240e2.jpg

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 Zombie Survival, 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]



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()


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.

Because you are calling DrawModel twice.