Skip to content
skzk edited this page Feb 2, 2024 · 29 revisions

Item ID: 0x2C (44)
Item file: aux

Structure

Field(s) Description
struct kdop_item

See k-DOP item.

Flags:
Bit 0: Water reflection
Bit 1: Ignore cut planes
Bit 2: No collision
Bit 3: Invert geometry
Bit 4: Stepped geometry
Bit 5: Perlin noise
Bit 6: No shadows
Bit 7: No mirror reflection
Bits 16-19: Color variant, 1-indexed. 0 means the curve doesn't have any
Bit 20: Low poly vegetation
Bit 21: Use linear path
Bit 22: Detail vegetation

token model Unit name of the curve model, as defined in /def/world/curve_model.sii.

Here's the official documentation for curve units.

array_u64 node_uids Contains four elements: the UIDs of the backward node and the forward node, followed by helper nodes (if used; set to 0 otherwise). Some variants of some curves define model locators for which the editor adds nodes to the map, which other polyline items can be attached to.
float length Cached length of the segment. The maximum length of a curve segment is 1000 m.
u32 random_seed Seed for vegetation etc.
float stretch_coef Coefficient for stretching the scheme along the path. For some curves, this stretches the model; for others, it places its elements further apart.
float scale Scale of the model. Does not affect vegetation models.
float fixed_step If not 0, forces the model to repeat every n meters, overriding the default.
token terrain_material Unit name of the terrain material for models like terrain_decal_*m.
u32 terrain_color Color tint of the terrain as RGBA. Default is #FFFFFFFF (white).
float terrain_rot UV rotation of the terrain texture.
token first_part
token last_part
token center_part_variation
Unit names of the first part, last part and center part.
token model_look Look of the curve model, if applicable.
u32 height_offset_count
array_float height_offsets
Defines offsets for individual elements of the building.

Offsets are applied to elements in order. For instance, if you want the third element to have an offset of 5, the content of the array should be [0, 0, 5].

The editor uses this for the "Snap to ground" tool.

Clone this wiki locally