How would I make an entity display as one color like in an ESP? I tried all rendermode enums. (in case you're wondering I'm using it for a hi-tech visor thing, not a hack)
EDIT: also it needs to not show up behind walls
I don't know what esp is, but do you want it to just be a solid flat color? you can use any unlit materials like models/debug/debugwhite and just color it
I think he's talking about something like wallhack/chams in fps game hacks (or making the effect of it, anyway)
[thumb]http://www.mhannon.net/Pictures/Picture_D3D_Chams.jpg[/thumb]
ESP to me usually means the information floating around players like name/hp/distance, idk if that's strictly what esp is vs wallhacks though
You could probably [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][URL="http://wiki.garrysmod.com/page/halo/Add"]halo.Add[/URL] it?
[QUOTE=Exploderguy;47805744]You could probably [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][URL="http://wiki.garrysmod.com/page/halo/Add"]halo.Add[/URL] it?[/QUOTE]
solid color, not halo. see image above your post, that's what i'm going for.
I remember there being a materials/debug/something texture that allows you to do something like this.
You could either use that or create an UnlitGeneric material with $model 1 and draw to it. It won't show up behind walls unless you set $ignorez to 1
[QUOTE=xaviergmail;47806065]I remember there being a materials/debug/something texture that allows you to do something like this.
You could either use that or create an UnlitGeneric material with $model 1 and draw to it. It won't show up behind walls unless you set $ignorez to 1[/QUOTE]
[code]
local mat = CreateMaterial( "My Badterial", "UnlitGeneric", {
["$model"] = 1,
["$ignorez"] = 1
} )
hook.Add( "PrePlayerDraw", "", function()
render.MaterialOverride( mat )
render.SetColorModulation( 1, 0, 0 )
end )
hook.Add( "PostPlayerDraw", "", function()
render.MaterialOverride()
end )
[/code]
Self explanatory code: bonus points for abusing ply:DrawModel() vs wep:DrawModel() to make weapons and pointshop hats different colors.
Sorry, you need to Log In to post a reply to this thread.