• Own Hud .vmt file?
    2 replies, posted
Hey guys, i'm making my own hud, I made it in photoshop, put it to a .vtf file, but now I need my .vmt file, what does it need to be? Since it just turns out as purple/black squares now.. Heres my current VMT file: [lua]"UnlitGeneric" { "$basetexture" "materials/HudPaint" "$ignorez" 1 "$vertexcolor" 1 "$vertexalpha" 1 }[/lua] And heres my overall code: [lua] local tex = surface.GetTextureID("materials/mytextures/HudPrint") function drawHudPrint() surface.SetTexture(tex) surface.SetDrawColor(255,255,255,255) surface.DrawTexturedRect(ScrW()*0.5-32,ScrH()*0.5-32,64,64) end hook.Add("HUDPaint","DrawHudPrint",drawHudPrint) [/lua] Hope u can help remove these squares.
"UnlitGeneric" { "$basetexture" "HudPaint" "$ignorez" 1 "$vertexcolor" 1 "$vertexalpha" 1 } i suppose
remove materials/ and the basetexture and surgace.GetTexture should be the same. /materials/models/pot should be models/pot
Sorry, you need to Log In to post a reply to this thread.