Skip to content

Cars

The six car types CarSpawn makes, the 26 part ids of the car bindings and the colours scripts give cars (Cars).

What is complete

Every type and part id is listed. What each part is, is our reading of its record (box size, side bits, linked part) and is inferred. Colours are the literal tables the scripts pass; 13 more calls pass computed values.

41 entries. Data: research/references/cars.yaml.

type

6 entries.

Number Image Model Textures Atomics Size (m) Calls Scripts What
0 cars/car_osedan.png car_osedan_geo car_osedan_tex 47 2.399, 6.05, 1.084 64 level11.lua, level111.lua, level14.lua, level14_jsb.lua, level34.lua, level34_gate.lua Sedan, the commonest parked car
1 cars/car_coupe.png car_coupe_geo car_osedan_tex 47 2.14, 5.27, 1.05 22 level111.lua, level2.lua, level31.lua, level34.lua, level5.lua, level87.lua Coupe
2 cars/car_wagon.png car_wagon_geo car_osedan_tex 47 2.27, 6.08, 1.08 3 level111.lua, level51.lua Estate car
3 cars/car_copcar.png car_copcar_geo car_copcar_tex 47 2.48, 5.98, 1.11 18 level14.lua, level14_jsb.lua, level3.lua, level31.lua, level34.lua, level52.lua Police car; makes a part_copcar_lights particle system
4 cars/car_van.png car_van_geo 5230bc4b 47 2.48, 5.43, 1.52 9 level107.lua, level111.lua, level20.lua, level3.lua, level34.lua, level80.lua Van
5 cars/car_sullycar.png car_sullycar_geo 3827d44a 47 2, 5.224, 1.101 2 level2_junkyard.lua, level60.lua A story car (two levels)

part

26 entries.

Number Size (m) Open number Linked part Calls Scripts What
0 0, 0, 0 Body
1 0, 0, 0 Roof
2 2.36, 0.52, 0.61 Front bumper
3 1.93, 0.39, 0.35 Rear bumper
4 2.03, 1.87, 0.51 1 Bonnet
5 1.75, 1.26, 0.51 0 3 level14_dirtycop.lua, level14_jsb.lua Boot
6 1.91, 0.68, 0.41 Front panel
7 1.41, 0.2, 0.22 Rear panel
8 1.02, 0.14, 0.42 Headlight
9 1.02, 0.14, 0.42 Headlight
10 1.84, 0.8, 0.35 Side panel
11 1.87, 0.8, 0.57 Side panel
12 1.91, 0.72, 0.3 Side panel
13 1.91, 0.72, 0.3 Side panel
14 1.27, 1.14, 0.64 2 15 Door (removes its window, 15)
15 0.44, 0.96, 0.25 Window of door 14
16 1.27, 1.14, 0.64 3 17 Door (removes its window, 17)
17 0.44, 0.96, 0.25 1 level5_chapter1.lua Window of door 16
18 1.31, 1.14, 0.75 4 19 1 level14_jsb.lua Door (removes its window, 19)
19 0.44, 0.89, 0.32 1 level14_jsb.lua Window of door 18
20 1.31, 1.14, 0.75 5 21 Door (removes its window, 21)
21 0.44, 0.89, 0.32 1 level5_chapter1.lua Window of door 20
22 0.76, 0.76, 0.27 Wheel
23 0.76, 0.76, 0.27 Wheel
24 0.76, 0.76, 0.27 Wheel
25 0.76, 0.76, 0.27 Wheel

colour

9 entries.

Number Values Calls Scripts
1 1, 0, 0, 0.3 1 level2.lua
2 1, 0, 0.3, 0.3 1 level2.lua
3 1, 0, 0.3, 0.4 1 level2.lua
4 1, 0, 0.3, 0.5 1 level2.lua
5 1, 0.3, 0.8, 0.8 1 level2.lua
6 1, 0.55, 0.65, 0.65 1 level99.lua
7 1, 0.6, 0.8, 0.9 1 level99.lua
8 1, 0.7, 0.9, 1 1 level99.lua
9 1, 1, 0, 1 1 level93.lua

Sources and evidence

Evidence levels used: confirmed-code.

  • SLUS_212.15, car tables 0x00512ba8 and 0x0057e4c0; warriors.glr, Object List

Fields

Field Type Hand-written Meaning
id str Our stable id: the type name, part-<n> or colour-<n>.
kind str type, part or colour.
number int Type index (0x00512ba8), part id or our colour number.
model str The model resource: a RenderWare clump in chunk 0x47.
model_hash hex Its resource hash (CRC-32 of the name).
textures str The texture dictionary resource (chunk 0x2a), or its hash when the name is unknown.
atomics int Atomics in the model's clump.
size list Type: the body box {x, y, z} in metres; part: the part's box (car type 0).
open_number int Part: the number CarSetPartOpen takes for it.
linked int Part: the part removed with it.
sides hex Part: byte +0 of its record, a set of side bits (inferred).
rgba list Colour: the four numbers CarSetColor is given.
calls int Script calls: CarSpawn for a type, CarRemovePart for a part, CarSetColor for a colour.
scripts list The scripts that make those calls (at most six).
meaning str yes What it is, in our words.
image str A thumbnail, a path below docs/references/images/ (characters/warr_re_cv.png); set by extract from the files present.
source str yes Where the entry comes from: a script and binding, an address, a chunk.
evidence str yes How we know: confirmed-code, confirmed-runtime, inferred or speculative (evidence levels).
notes str yes Our own short notes.