Quake II and Action Quake 2 mapping

Where your map sits decides how high people jump

The same jump is higher below z 0 than above it, and longer toward 0 0 0 than away from it. This page shows why, what it is worth in units, and where to put your map.

66 (15 ms per command)
Floor above z 0 on paper 45.6 42.4 units high A plain jump from a standstill. Floor below z 0 on paper 45.6 45.0 units high +2.6 units below zero
Move the slider: above zero the jump stays between 41 and 42.4 units whatever your settings. Below zero it climbs with the command rate, up to 46.5 at 125. The dashed line is the textbook jump: 270 units a second upward against gravity 800.
The ruleOne quadrant, below zeroPut the corner of your play area at 0 0, build toward +x and +y, and keep everything a player can reach under z 0.
What it buys+2.6 high, +4.5 longAt cl_maxfps 66 a plain jump gains 2.6 units, a running jump 4.5, a double jump off a crate about 10.
What it costsNothing to buildIt is only a position. The catch: below zero, jump height follows each player's cl_maxfps.

Why it happens

The game rounds you toward zero, every single move

Quake II stores a player's position and speed in eighths of a unit. After every movement command your client sends, the game works out where you are, then throws away whatever does not fit the eighths. It always cuts toward zero, never to the nearest value.

So each of the three axes has a small pull toward its own zero. Above z 0, toward zero means down: every command shaves a sliver off your jump. Below z 0, toward zero means up: every command hands you a sliver.

z 0 +1/8+2/8+3/8+4/8 -1/8-2/8-3/8-4/8 Above zero: you really are at +0.30 The game keeps +2/8. You lost 0.05, downward. Below zero: you really are at -0.30 The game keeps -2/8. You gained 0.05, upward. height, in units
One movement command, drawn large. The cut is at most an eighth of a unit, but it happens on every command: 66 times a second at cl_maxfps 66, 125 times at 125. That is why a faster client gets more of the effect.

The same cut applies to x and y. Running toward 0 0 you gain up to an eighth per command, running away you lose it. And it applies to speed as well as position, which is why the numbers below are not a tidy straight line.

Height

Above zero the jump is flat. Below zero it grows with your settings.

A plain jump from a standstill, at thirteen command rates, on a floor well above zero and on one well below it.

Jump height in units against cl_maxfps. At 40 the two floors jump the same. From 50 up, the floor below zero pulls ahead and keeps climbing.
All thirteen values as a table
cl_maxfpsms per commandabove z 0below z 0gain

What the extra units do

Two or three units decide which ledges exist

The gain looks small until it meets your brushwork. A player steps up 18 units in mid-air, so the highest box you can get onto is close to your jump plus that step. Measured at cl_maxfps 58 and 66:

One running jump 60 above z 0 62 below z 0 Highest box you can still get onto Double jump off a 48 crate How far over the crate's top your feet get 96 above z 0 106 below z 0
Left: a 62-unit wall is a route below zero and a dead end above it. Right: the double jump is where the gain adds up, because two jumps collect the upward cut for twice as long.

Length

Jumps get longer too, and direction starts to matter

A higher jump stays in the air longer, so it also travels further. A running jump at 300 units a second, cl_maxfps 66: 198.0 units above zero, 202.5 below.

Then there is the sideways pull. When your speed per command is not a whole number of eighths, running toward 0 0 is longer than running away from it:

cl_maxfpsabove z 0, away from 0above z 0, toward 0below z 0, away from 0below z 0, toward 0
125190.0200.0201.9212.5
100195.0195.0204.0204.0
76193.8200.0201.5208.0
66198.0198.0202.5202.5
58195.0199.9200.0205.0
50198.0198.0204.0204.0

At 100, 66 and 50 the two directions match, but only because a dead-straight run at exactly 300 lands on whole eighths at those rates. Real movement is never that round. Strafe jumps, turns and acceleration all leave a remainder, so in play the pull is always there. At most it is one eighth per command: about 8 units a second at 66, about 16 at 125.

The worst and the best case in that table are the same jump on the same engine: 190 units above zero running away from the origin, 212.5 below zero running toward it.

One quadrant

Keep the origin out of your play area

Most maps are built around 0 0, so the origin sits somewhere in the middle of the action. The sideways pull then points a different way in every quarter of the map: the same jump is long on one side of an invisible line and short on the other.

Put the whole play area in one quadrant and the pull points the same way everywhere. A jump heading south-west is the good one on every roof of the map, and players can learn that once.

Origin in the middle 0 0 Four quarters, four different directions. Play area in one quadrant 0 0 +x +y One direction on the whole map.
Top views. The arrows show which way the pull adds length to a jump. Only the play area needs to sit in the quadrant; terrain, water and sky around it can run past the axes.

How deep

The whole jump has to stay under zero

The upward cut only works while you are below z 0. A floor just under zero sends the top of the jump across the line, and the gain is gone. Plain jump at cl_maxfps 66:

Floor heightjumpwhat happens
any floor above zero42.4no gain
16 below zero42.4the player's centre is still above zero for the whole jump
48 below zero43.3the jump crosses zero halfway up
64 below zero44.0only the top of the jump crosses
96 or more below zero45.0the full gain

People jump from roofs and crates as well as floors, so measure from the top: put z 0 at least 192 units above the highest surface a player can stand on. That leaves room for a double jump off a crate on your highest roof.

Maps you know

The classics are all over the place

Where fourteen well-known Action Quake 2 maps put their player spawns. Nobody seems to have planned this. One map happens to follow both halves of the rule, and it is the one with a reputation for trick jumps.

Mapspawn floors, zagainst z 0quadrants usedfollows the rule
time-896 to -752belowoneyes
wizs-624 to -344belowtwoheight only
teamdepo-224 to -40belowtwoheight only
jungle1-184 to -88belowthreeheight only
ff-116 to -88belowtwoheight only
terminal-192 to 16acrossthreeno
cloud-157 to 256acrosstwono
crossfire16 to 80aboveonequadrant only
gangsta0 to 32abovetwono
wfall24 to 320abovefourno
urban0 to 768abovefourno
urban2-24 to 520above, mostlyfourno
actcity20 to 432abovefourno
cliff2-56 to 608above, mostlythreeno

If jumps on time have always felt better to you than on urban, this is a large part of why. It also means a jump you learned on one map does not transfer exactly to another.

Do it

Placing a map, start to finish

  1. Start at the corner

    Before the first brush, decide where the play area's south-west corner is and put it at x 0, y 0. Build toward +x and +y from there.

  2. Hang the map under zero

    Work out the highest surface a player will stand on and put it at z -192 or lower. Everything else goes down from there.

  3. Stay inside the box

    Player coordinates only reach from -4096 to +4096 on each axis. With the corner at zero that still leaves 4096 units of width and depth, more than any of the maps above use.

  4. Check it in the game

    Stand on the highest roof and in the far corners and type viewpos in the console. Everywhere you can stand, x and y should be positive and z negative.

  5. Already built? Move it

    Select everything and move it as one piece with texture lock on, then compile again. Nothing changes but the coordinates. Bot routes and any saved positions need redoing, and the compiler may cut a handful of faces differently.

The trade-off

Is below zero always right?

Below zero, jump height depends on each player's cl_maxfps: 42.0 at 30, 44.0 at 50, 45.0 at 66, 46.5 at 125. Players who tune their settings get more out of the map. Trick jumpers like that. A map above zero treats everyone almost alike, 40.8 to 42.4.

For a map where movement is part of the fun, below zero is the better home. For one where every player must make exactly the same jumps, think about which ledges sit between 60 and 64 units before you choose.

How this was measured

A test bench, not a server

The numbers come from a small program built around the movement code of Q2PRO, the code a server and a client both run for every command, with plain box brushes and steady command lengths. The effect lives in the original Quake II movement code, so its descendants share it.

That makes this a model. Playing one map at four placements, the version below zero felt best, as the numbers predict. Nothing was recorded on a live server, and your engine, your ping and your movement will add their own noise. Treat the exact decimals as a guide and the direction as solid.