• Cam
    5 replies, posted
[lua]if CLIENT then local function DrawIt() for k, ply in pairs(ents.GetAll()) do local offset = Vector( 0, 0, 85 ) local ang = LocalPlayer():EyeAngles() local pos = ply:GetPos() + offset + ang:Up() ang:RotateAroundAxis( ang:Forward(), 90 ) ang:RotateAroundAxis( ang:Right(), 90 ) surface.CreateFont ( "coolvetica", 40, 400, true, false, "CV20", true ) cam.Start3D2D( pos, Angle( 0, ang.y, 90 ), 0.25 ) draw.DrawText( "prop", "CV20", 2, 2, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER ) cam.End3D2D() end end hook.Add( "HUDPaint", "DrawIt", DrawIt ) end[/lua] It doesn't show "Prop".
Have you looked at it from all angles?
Yes. I can't find it anywhere.
You don't draw 3D stuff in HUDPaint. Hence the "hud" part. You use a hook like PostDrawOpaqueRenderables.
[QUOTE=Overv;24718160]You don't draw 3D stuff in HUDPaint. Hence the "hud" part. You use a hook like PostDrawOpaqueRenderables.[/QUOTE] It's still possible to do though
[QUOTE=ralle105;24726987]It's still possible to do though[/QUOTE] [cpp]loop: if ( condition ) // do stuff else goto endloop; goto loop; endloop:[/cpp] Also very possible, but that does not mean it's good.
Sorry, you need to Log In to post a reply to this thread.