From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:BSP (Quake)" |
|---|
| claim | "A Quake BSP leaf (lump 10) is 28 bytes: int32 contents, int32 visibility offset (-1 = none), int16 bounding box min and max, uint16 first mark-surface and count, 4 ambient sound levels." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BSP (Quake)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "dleaf_t" |
|---|
| size | "0x1C" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "contents" |
|---|
| notes | "CONTENTS_* value" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "visofs" |
|---|
| notes | "offset into the visibility lump, -1 = no PVS" |
|---|
|
| offset | "0x8" |
|---|
| size | 6 |
|---|
| type | "int16_t[3]" |
|---|
| name | "mins" |
|---|
|
| offset | "0xE" |
|---|
| size | 6 |
|---|
| type | "int16_t[3]" |
|---|
| name | "maxs" |
|---|
|
| offset | "0x14" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "firstmarksurface" |
|---|
|
| offset | "0x16" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "nummarksurfaces" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint8_t[4]" |
|---|
| name | "ambient_level" |
|---|
| notes | "water, sky, slime, lava" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/bspfile.h dleaf_t, NUM_AMBIENTS 4 (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Leaf lump length is a multiple of 28 in all 23 LibreQuake v0.09-beta BSPs." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "BSP leaf" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:51.352Z" |
|---|
| verifications | |
|---|