• Distance Measure - Now with LINES!
    3 replies, posted
I wanted a script that helps me measure distance between two points and doesn't get in the way. I hacked together some code from my [url=http://www.facepunch.com/threads/1037506-Player-Markers-Just-Find-People.]Player Markers[/url] script, and before long this was made. Bugtested to my best ability; it should be good. [B]FEATURES:[/B] [list] [*] Measures distance between two points, just look and press! [*] One-button interface [*] Returns info about point position and distance (in glu and metres) [*] Prints info to console for ease of copy pasta [/list] [B]MEDIA/HOWTO:[/B] To use the script, bind a key to the console command [B]distance_press[/B]. For those who don't know, if you want to bind x to this script you would open the console and type: [code]bind x distance_press[/code] Then open and hit ok in the keyboard settings panel (ESC -> Options) to save the bind. The pictures below show the usage of the script. Before each picture, I have pressed x once: [img_thumb]http://dl.dropbox.com/u/902553/Pictures/Screens/SESP/gm_construct0000.jpg[/img_thumb][img_thumb]http://dl.dropbox.com/u/902553/Pictures/Screens/SESP/gm_construct0001.jpg[/img_thumb][img_thumb]http://dl.dropbox.com/u/902553/Pictures/Screens/SESP/gm_construct0002.jpg[/img_thumb] Console output: [img_thumb]http://dl.dropbox.com/u/902553/Pictures/Screens/SESP/gm_construct0003.jpg[/img_thumb] [B]BUGS?[/B] If you find any bugs, please send me a PM. I will fix them ASAP. [B]DOWNLOAD:[/B] [url=http://dl.dropbox.com/u/902553/Misc%20Files/SESP/DistanceMeasure.lua]You can always find the latest version here (Dropbox, 4.61kb (v1))[/url] [url=http://www.garrysmod.org/downloads/?a=view&id=115232]Alternatively, you can download the script from garrysmod.org. It may not be the latest though (.zip, 1.68kb (v1))[/url]
I liked reading this thread, the OP provided an useful addon for measuring distances. I rated the OP an useful tool.
It's pretty cool but I don't know what I'd use it for.
I use it all the time for precise hydraulics and timed winches, and you could use it to measure the width of props, heights etc. It's pretty useful for E2 too. Let me give you a few ideas :v: My interweb's going to be out as of tomorrow so I won't be updating for a while, back soon!
Sorry, you need to Log In to post a reply to this thread.