• How can I draw vectors from cerverside hook "PhysgunDrop"
    0 replies, posted
So as it says forum... I perform some traces and I want to draw some line indicating their lengths or hit events. I am using: [url]https://github.com/dvdvideo1234/TrackAssemblyTool/blob/master/lua/autorun/trackassembly_init.lua#L109-L177[/url] When I calc my origin of the trace using: [code] oPos:Rotate(trAng); oPos:Add(trPos) -- Origin position oAng:Set(trEnt:LocalToWorldAngles(oAng)) oEnd:Set(oAng:Forward()); oEnd:Mul(activrad); oEnd:Add(oPos) -- End position [/code] I want to draw the origin and end position of the thing clients side and if the trace hits to change colors and draw additional trace hit circle or something. I am thinking about using: [url]https://wiki.garrysmod.com/page/GM/PostDrawHUD[/url] What do you think ?
Sorry, you need to Log In to post a reply to this thread.