Hi !
I made a simple voicechat stuff. It works well , but when i look on a prop, or world entity, the size changes.
There is the video:
[media]http://www.youtube.com/watch?v=3tScGkH3sdQ[/media]
And also the code :
[lua]local Bubble = surface.GetTextureID("wuw/bubble")
surface.CreateFont ("coolvetica", 18, 400, true, false, "CoolFont")
function GM:PlayerStartVoice( ply )
ply.isTalking = true
end
function GM:PlayerEndVoice( ply )
ply.isTalking = nil
end
hook.Add("HUDPaint","_VoiceChatDraw",function()
local C = 0
for k,v in pairs( player.GetAll() ) do
if (v.isTalking) then
local H = 30 + 30*C
C = C+1
Name = v:Nick()
Width, Height = surface.GetTextSize(Name)
Width = Width + 50
Font = "CoolFont"
Hely = H + 6
draw.RoundedBox(4,10,H,Width,30,Color(0,0,0,150))
draw.RoundedOutline(1,10,H,Width,30,team.GetColor(v:Team()))
draw.SimpleText( Name, Font, 50, Hely, Color(255,255,255,255))
surface.SetDrawColor( 255, 255, 255, 255 )
surface.SetTexture( Bubble )
surface.DrawTexturedRect( 15, H+3, 24, 24)
end
end
end)[/lua]
Okay, give me your VMT code from whatever program you used for the image, I had this problem today too. (thanks Drew <3)
[QUOTE=jrj996;28834653]Okay, give me your VMT code from whatever program you used for the image, I had this problem today too. (thanks Drew <3)[/QUOTE]
[code]"UnlitGeneric"
{
"$basetexture" "wuw/bubble"
"$ignorez" 1
"$vertexcolor" 1
"$vertexalpha" 1
"$nolod" 1
"$translucent" 1
}
[/code]
Okay the problem is maybe the simple prop protection.
I totally forget that addon
Nah dude, I was working with no addons on my gamemode and I still had that problem.
Okay i give a try thanks
[editline]27th March 2011[/editline]
The problem was the simple prop protection addon.
And your vmt code just messed my material.
But thank you for your help
Sorry, you need to Log In to post a reply to this thread.