• 2D view
    4 replies, posted
Ok I am trying to make a 2D view for a client hud, but I really don't know how to use CalcView here. Can anyone give me a 2d perspective like this: [img]http://jeuxmemorables.files.wordpress.com/2008/01/worms_world_party.png[/img]
[lua] hook.Add("CalcView", "2D:CalcView", function(ply, origin, angles, fov) local view = {} view.origin = origin + Vector(500,0,0) view.angles = (ply:GetShootPos()-view.origin):Angle() return view end) [/lua] Something like that.
Like this? If so, I can get you the code when I get home at 12. [url]http://img218.imageshack.us/img218/4918/instructionsforantssmal.jpg[/url]
Do you mean getting rid of perspective (ie using orthographic view) or just drawing something on the HUD?
I mean like shoffing
Sorry, you need to Log In to post a reply to this thread.