> ## Documentation Index
> Fetch the complete documentation index at: https://docs.czautoz.co.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Damage, Dirt, Washing & Repairs

> How CZ Autoz vehicles show damage and pick up dust, sand and mud, how rain, water and a rag wash them clean, how a blowtorch straightens the bodywork and how a glass repair kit fixes the windows.

> [!NOTE]
>
> **Retexturing:** the car retexture examples and FBX files (like the helicopter ones) are free to download for car owners on [czautoz.co.uk/downloads](https://czautoz.co.uk/downloads) (Car Retexture Examples). The free GT-R 2015 and Golf MK4 have their own free example there.

CZ Autoz vehicles show their damage on the body, doors, glass and lights, and get dirty when they are driven off-road. Rain and water wash them, players can wash them with a rag, and a blowtorch straightens damaged bodywork. All of this is part of [Vehicles Core](https://docs.czautoz.co.uk/vehicles/core/overview.md) and works on the paid CZ Autoz vehicles.

## Damage looks

The body and every door show one of four looks, following their health:

| Look | The part's health |
| - | - |
| **Clean** | Pristine or worn |
| **Damaged** | Damaged |
| **Badly damaged** | Badly damaged |
| **Destroyed** | Ruined |

* **The body** follows the worst of the vehicle's overall health and its **Front**, **Back**, **Roof** and **Chassis** damage zones
* **Each door** follows its own health. The hood and trunk count as doors
* **Wheels** show their own damage look and dirt, and a burnt-out car burns its wheels too
* **A door that has been taken off** shows its own damage look, without dirt
* **A destroyed part** shows its destroyed look only, with no dirt on top

### Glass and lights

Windows and light lenses change with their own health. Each one has three looks: **intact** (pristine or worn), **damaged** (damaged or badly damaged) and **ruined**. What each look shows is built into each vehicle's model.

With **Body and doors show damage** switched off, the body and doors always look clean and the glass and lenses always look intact. Dirt still shows.

## Dirt

Vehicles pick up three kinds of dirt from the ground under their wheels: **dust**, **sand** and **mud**. They show on the body, the doors and the wheels in three levels, and in mixes of the kinds.

### Which ground gives which dirt

The game names every surface. Core looks for these words in the name, in this order, and the first match wins:

| Order | Words in the surface name | Dirt |
| - | - | - |
| 1 | asphalt, tarmac, concrete, road, metal, wood, tile, stone, lino, carpet, ceramic, felt, snow, ice (at the start of a part of the name) | **None**: hard ground stays clean |
| 2 | sand, beach, desert, dune | **Sand** |
| 3 | grass, broadleaf, conifer, moss, forest, field, meadow, leaf, hay, clutter, stubble, flower | **Dust** when dry, **mud** when wet, at half the rate |
| 4 | dirt, mud, soil, ground, path, farm, or an outdoor surface the game calls dusty | **Dust** when dry, **mud** when wet |
| 5 | Anything else | **Dust** if the game marks the surface as dusty, otherwise none |

* A hard word only counts at the start of a part of the name, so *broadleaf* is not a road. An outdoor dusty surface is never treated as hard
* **Mud needs wet ground.** The ground is wet while rain is above 15 % strength and for **10 minutes** after it stops
* Water under the wheels adds no dirt
* **A sandstorm** (DayZ 1.30 weather, on Nasdara for example) sands a vehicle on any ground, roads included, even parked

### How it builds up

* Dirt only builds up while the vehicle moves (above about 7 km/h) with at least one wheel on the ground. It is checked every 3 seconds
* The faster you go, the faster it builds, up to about 145 km/h. Each wheel adds the dirt of the ground it is on, shared over the wheels touching the ground, so mixed ground gives a mix
* **Dirt: build-up speed (x)** (`DirtSpeed`) scales it: `2` (the default) = twice the base rate

As a rough guide, worked out from the build-up rates at the default speed setting (not timed in game), with all wheels on one kind of ground:

| Ground | Speed | Level 1 after | Level 3 after |
| - | - | - | - |
| Soil, dust, sand or mud | 20 km/h | about 40 seconds | a little over 3 minutes |
| Soil, dust, sand or mud | 50 km/h | about 25 seconds | about 2¼ minutes |
| Soil, dust, sand or mud | 80 km/h | about 20 seconds | about 1½ minutes |
| Grass | 50 km/h | about 50 seconds | about 4¼ minutes |

### Levels and mixes

* A vehicle is **clean** or dirty at **level 1 to 3** (at 15 %, 45 % and 75 % of full dirt). Going down, a level holds on a little before it drops
* **The look shows a mix of kinds:** dust, sand, mud, dust + sand, dust + mud, sand + mud, or all three. A kind joins the look once it is 30 % of the vehicle's dirt and stays until it falls under 20 %; the strongest kind always shows. Driving from a dusty track into mud, the mud joins the look as it builds up

### Wheels and doors

The wheels get the same dirt as the body, and the doors, hood and trunk get the same dirt on top of their own damage look.

## Washing

### Rain and water

With **Dirt: rain and water wash cars** on (the default), dirt comes off by itself:

* **Rain** washes a vehicle while rain is above 10 % strength, more in heavier rain and faster while it drives through it. Rain washes a vehicle wherever it is parked, including under a roof
* **Water** washes it when its wheels touch water, more when the wheels are in or under water, and more again when the vehicle itself sits in the water, the deeper the more. Driving through water at speed washes faster: up to twice as fast at 40 km/h or more

As a rough guide (worked out, not timed in game): the heaviest rain cleans a fully dirty, parked vehicle in about 2 minutes, and driving through a river at 20 km/h with all four wheels in the water cleans it in about 20 seconds.

The one switch covers both rain and water.

### With a rag

**1. Get a rag and some water**

Hold a **rag** that isn't ruined, and carry a container of **water** that isn't ruined, anywhere in your inventory, with at least **500 ml** in it (the **Dirt: water per wash (ml)** setting).

**2. Crouch by the vehicle**

Crouch on foot within 3 m of a dirty CZ Autoz vehicle and look at it.

**3. Wash the vehicle**

Use **Wash the vehicle**. It takes **6 seconds**.

Each wash takes 500 ml of water from the container (by default), takes **0.34** off the dirt (the **Dirt: one rag wash removes (0.34 = one level)** setting, about one level at the default), and leaves the rag soaking wet. Repeat until the vehicle is clean. The action only shows while the vehicle is dirty.

## Blowtorch repairs

Players can straighten damaged bodywork with a **blowtorch**.

**1. Hold a blowtorch**

It must not be ruined and must have enough power left for a repair cycle.

**2. Stand or crouch by the vehicle**

On foot, within 3 m, legs not broken. The vehicle must not be destroyed.

**3. Weld and straighten the bodywork**

Use **Weld and straighten the bodywork**. Each cycle takes **5 seconds**.

**What it repairs:** the vehicle's **bodywork** damage zones (the chassis, front, back, roof and similar) and its **doors, hood and trunk**. It never repairs the engine, the glass, the lights or the fuel tank. For the glass, use a [Car Glass Repair Kit](#glass-repairs).

* Each cycle works on whatever **looks worst**: the body, or a fitted door, hood or trunk (the body first on a tie). It doesn't matter which part you look at
* Each cycle makes it look **one step** better: badly damaged → damaged, or damaged → worn. Every zone of it that shows that look goes up together (the vehicle's overall health included), so every cycle shows on the vehicle
* It never makes a part better than **worn**, which looks clean, so a fully welded vehicle has one even finish
* A **ruined** bodywork zone on a vehicle that still runs looks badly damaged, and the blowtorch repairs it like one. A ruined door, hood or trunk can't be welded: replace it
* The action only shows while there is something it can repair

Turn it off with **Blowtorch repairs body panels**.

## Glass repairs

Players repair broken windows with a **Car Glass Repair Kit** (`CZ_GlassRepairKit`). Epoxy putty and the blowtorch don't work on glass.

**1. Hold a Car Glass Repair Kit**

It must not be ruined. A new kit has 4 uses by default (the server sets this with **Glass repair kit: uses in a new kit**).

**2. Stand or crouch by the vehicle**

On foot, within 3 m, legs not broken, looking at the broken window. The vehicle must not be destroyed.

**3. Repair the glass**

Use **Repair the glass**. It takes about **8 seconds** by default (**Glass repair kit: seconds per window**).

* It repairs one **damaged, badly damaged or ruined** window per use, and brings it back to **worn**. Ruined (smashed) glass comes back too
* It works on the body's glass (windscreen, rear and side windows) and on the window of a fitted door, hood or trunk. It repairs the window you look at; if that can't be told, the worst broken window within reach on the side you face
* Each repair uses one of the kit's uses; the kit is gone when empty
* It works on CZ Autoz vehicles, and on other mods' cars while **Core features on other mods' cars** is on
* The action only shows while there is a broken window to repair

## Retextured vehicles

Every vehicle's outside body, doors, hood, trunk, bumpers and other outside panels, and its rims, can be retextured. The car retexture examples hold one folder per car with its exterior FBX, a wheel FBX, the stock texture sheets with a UV guide for each paint slot, and a README. Download them on [czautoz.co.uk/downloads](https://czautoz.co.uk/downloads). Fitted covers (the Car Covers add-on) can only take a seamless repeating pattern, not a livery picture.

If you retexture a CZ Autoz vehicle by giving its body your own material (`.rvmat`), your material shows while the vehicle is clean and undamaged. As soon as it is dirty or shows any damage, the body switches to the CZ Autoz dirty or damaged material, and your own comes back once the vehicle is clean and undamaged again.

If your retexture only swaps the textures and keeps the CZ Autoz materials, test how it looks dirty and damaged on your server.

## After a restart

* **Dirt is saved.** Each vehicle comes back as dirty as it was, kept on the server in `profiles\CZAutoz\Cars\Data\Dirt.json`
* **Damage is too**, because it follows the vehicle's saved health. The damage looks, glass and lights come back as they were

## Settings

These are in the **Looks and dirt** section of the [admin panel](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#looks-and-dirt), and can be set for all vehicles, a pack or mod, or one vehicle.

| Setting | What it does | Default |
| - | - | - |
| **Body and doors show damage** `DamageLooks` | Off = the body, doors, glass and lights always look undamaged | On |
| **Cars get dirty off-road** `Dirt` | Off = vehicles stay clean | On |
| **Dirt: build-up speed (x)** `DirtSpeed` | `0.1` to `5`. `2` = twice as fast | `2` |
| **Dirt: rain and water wash cars** `RainWash` | Off = rain and water don't wash vehicles | On |
| **Dirt: one rag wash removes (0.34 = one level)** `WashStep` | `0.05` to `1` | `0.34` |
| **Dirt: water per wash (ml)** `WashWaterMl` | `0` to `2000` | `500` |
| **Blowtorch repairs body panels** `TorchRepair` | Off = no blowtorch repairs | On |

## Admin look buttons

Admins with the `fleet.looks` permission can set a vehicle's dirt kind, dirt level and body damage from the **LOOKS** buttons on the panel's **FLEET** tab, for screenshots or testing. The buttons pick and **APPLY LOOK** sends. **BODY** changes the vehicle's real health: **DESTROYED** asks to confirm and leaves it at 2 % with its doors at 0 %, and **CLEAN** also needs `fleet.repair`. See [LOOKS](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#looks-dirt-and-body-damage).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.