Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

When practicing jumps in Team Fortress 2, I'd really like to be able to measure both the height and length of my jumps, as well as the distance between two points on the map. Is there a way in the Source engine to measure distance? Units are largely irrelevant, so long as it's consistent.

share|improve this question
    
Is this on a server you control (ie. can set sv_cheats on)? –  Stuart P. Bentley May 28 '11 at 4:28
    
@Stuart P. Bentley It is. –  Jeffrey May 30 '11 at 14:52

3 Answers 3

up vote 4 down vote accepted

Enter cl_showpos 1 in the console. This will display your current position, angle, and velocity in the upper-right corner of the screen.

To get the distance, open http://www.calculatorsoup.com/calculators/geometry-solids/distance-two-points.php in the in-game browser, plug your starting coordinates into the first box, your ending coordinates into the second box, and hit "Calculate".

share|improve this answer

To my knowledge there is no way to do so exactly, unless someone made a Sourcemod to do so. What you could do is find/create a map with the default grid textures Source provides. That should provide the info you need.

share|improve this answer
    
I saw this awhile back, but I could never get a good estimate on distances between points at different heights - which is kind of critical since I'm figuring out jumps. Also, being able to trace the path of a jump would be awesome. Still - good tip, so +1. –  Jeffrey Jul 22 '10 at 14:05

You can measure distances when using the Hammer editor (they are returned in something called Hammer Units; every actor / object in Source games gets a speed of Hammer Units / Second), but I don't believe there's a way to view distances in standard source games, at least not without a mod of some sort.

share|improve this answer
    
Hmm... If there's no horizontal speed lost when jumping, then if I could just figure out the pull of gravity in Hammer Units /Second squared, then I should be able to calculate max height and distance of jumps if I just time them with a stopwatch. I might have to play with that a little bit. –  Jeffrey Jul 22 '10 at 14:13
    
I guess this does assume that gravity is applied through a traditional acceleration model with no terminal velocity or air resistance. That might be an assumption I can't make. –  Jeffrey Jul 22 '10 at 14:15
    
Portal, also a source game, would seem to imply that (at least) there is a terminal velocity, and no air resistance, though whether those attributes are specific to Portal itself, or are adjustable, I don't know. –  Raven Dreamer Jul 22 '10 at 14:21
    
Excellent thought! Though it is kind of funny to me that you could have a terminal velocity without air resistance. Funny, funny, virtual reality. –  Jeffrey Jul 22 '10 at 14:24
    
This is really getting me thinking - and way off topic. I've posted a new question for this: gaming.stackexchange.com/questions/3249/… –  Jeffrey Jul 22 '10 at 14:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.