Skip to main content
Positions in the API (x, y, z in /states, kills, damage, grenades, bomb events) and in the parquet files (X, Y, Z) are Hammer world units. To draw them on a map’s 1024 x 1024 px radar image, use the map’s overview transform: (pos_x, pos_y) is the world position of the image’s top-left corner and scale is world units per pixel.

Overview transforms

From the game’s own resource/overviews/de_<map>.txt files. GET /v1/maps lists the maps that are in the data.

Multi-level maps

Nuke, Train and Vertigo have a second radar image for the lower level. A position with z below lower belongs on the lower image; the same pos_x, pos_y and scale apply.

Code

With pandas, the same arithmetic works on whole columns:

View direction

yaw is in degrees with 0 along world +x and 90 along world +y. Because the image’s y axis points down, a view direction drawn on the radar is:
Radar images are not served by this API; they ship with the game.