> ## 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.

# Water & Fuel

> Vehicles that float, drift and slowly sink in deep water, spray in shallow water, refuelling at map fuel stations and the CZ Autoz gas pump, and the HEMTT Refueler's fuel and water pump.

## Water physics

In deep water, a vehicle dips in once, floats level, drifts to a stop, and sinks after the float time.

### Which vehicles

* **Paid CZ Autoz vehicles**, with **Deep water: float, drift, sink** on (the default). It can be set for all vehicles, a pack or mod, or one vehicle
* **Vanilla cars and motorbikes**, and other mods' cars and motorbikes, while **Core features on other mods' cars** is also on. They use the **All vehicles** values of the two water settings. Whether another mod's vehicles float depends on how that mod is built, so test it on your server
* **Never** boats, aircraft or the CZ Autoz helicopters. Boats, jet skis and hovercraft from other mods that are built like cars, and any vehicle with no wheels, are left alone too, so they keep their own floating. Any other vehicle can be left alone with **Other mods' vehicles to leave alone** (see [Other mods' cars](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#other-mods-cars))

### How it works

* **Floating:** the water pushes up under the vehicle at nine points, scaled to the vehicle's own weight, so tall vehicles such as SUVs, vans, trucks and armoured vehicles float as steadily as small cars. The push takes out any bounce, so a vehicle that drives or falls in dips once and settles, and it eases back level if it starts to tip. Motorbikes float far less than cars
* **Water drag** slows the vehicle, more the faster it moves, so it drifts to a stop
* **Flooding:** while more than about a quarter of the vehicle's height is under water, it fills up. With the default **Deep water: seconds before sinking** of **45**, it is fully flooded after about 45 seconds deep in the water, and by then its float has dropped to less than half, so it sinks slowly. Every vehicle sinks after the same time, whatever its size. A vehicle sitting on the bottom is carried by its wheels, not pushed up
* **Draining:** out of deep water it drains again, from full to empty in about 20 seconds
* **Empty vehicles float too.** While someone drives, their game works the water out; with the driver seat empty, the server does

### Amphibious vehicles

The **BTR-4E** is amphibious. In deep water it settles with its wheels and stern jets under water, and it never floods or sinks while it is in one piece. A destroyed hull fills and sinks like any car. Riding that deep, some water shows inside the hull — the game draws the sea surface through the floor and that cannot be switched off — but it does no harm. It drives itself along at about 15 km/h on its water jets, steering as normal, with reverse. While it swims the gear readout shows **S**, **N** or **R** instead of gear numbers, and you hear the water on the hull and the jets' thrum. Drive out on a shallow shore to leave the water. The cannon works afloat. It needs **Deep water: float, drift, sink** on (the default).

### Water spray

Driving through shallow water (fords, streams, the edges of lakes) throws spray up behind each wheel that is in the water.

* It starts at about 7 km/h and grows with speed, up to full spray at about 58 km/h
* There is no spray once the vehicle is deeper than about 1.2 m, so a floating vehicle doesn't spray
* Every nearby player sees it
* **Cars only**, not motorbikes: paid CZ Autoz vehicles, and other cars while **Core features on other mods' cars** is on
* The spray is not switched off by **Deep water: float, drift, sink**

### Settings

| Setting | What it does | Default | Range |
| - | - | - | - |
| **Deep water: float, drift, sink** `WaterPhysics` | Off = vehicles don't float in deep water | On | On/off |
| **Deep water: seconds before sinking** `WaterFloatSeconds` | How long a vehicle sits deep in water before it is fully flooded. **Raise it** to give players more time to get out | `45` | `5` – `600` |
| **Core features on other mods' cars** `OtherCarsFeatures` | Whole-server. On = water physics and spray also work on vanilla and other mods' vehicles. It also switches the other Core features for them, such as the tune kits, battery updates, the HUD and the add-ons | On | On/off |

## Fuel use and tank size

Each vehicle burns fuel at its own rate, set for its class. At the default **Fuel use (x)** of `1.0`, a full tank lasts about **30 minutes flat out** in a supercar, 40 in a sports car, 50 in a hatchback, 55 in a saloon, 60 in an SUV or van, 75 in an off-road truck and 90 in an armoured vehicle, and roughly two and a half to three and a half times that at a steady 60-80 km/h.

* **Drive modes** change it: Eco uses 20 % less, Sport 20 % more and Off-road 10 % more than Comfort. See [Drive modes](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#driving-aids)
* **Fuel use (x)** `FuelUse` multiplies it for all vehicles, a pack or one vehicle: `2` burns twice as fast, `0` never runs out
* **Fuel tank size (% of the car's tank)** `FuelTankSize` (`25` – `100`, default `100`) makes the tank smaller. Station refuels, the HEMTT Refueler, jerrycans, the admin panel's refuel and fuel at spawn all stop there, and the fuel gauge shows the share of the smaller tank

## Refuelling at fuel stations

Players can fill a CZ Autoz vehicle straight from a map fuel station, without a canister. With **Core features on other mods' cars** on, the same works on vanilla and other mods' cars and motorbikes.

**1. Park at a fuel station**

A working map fuel station must be within **18 m** of the vehicle. A blown-up pump gives no fuel, the same as in vanilla DayZ (this also goes for refilling the HEMTT Refueler).

**2. Stand at the fuel cap**

On foot, standing, with **empty hands**, close to the vehicle's fuel cap, looking at the vehicle. Its tank must be below 98 % full.

**3. Refuel from the fuel station**

Hold the interact key on **Refuel from the fuel station**. Your character works the pump (the server can change this with **Refuel animation**) and you hear the fuel pouring.

Fuel goes in at **Fuel station flow (L/s)** (2 litres a second by default) and stops by itself when the tank is full. The progress bar shows how much of the missing fuel has gone in. The station doesn't run out and nothing is charged. It works on CZ Autoz vehicles that aren't destroyed and, while **Core features on other mods' cars** is on, on vanilla and other mods' cars and motorbikes. Another mod's vehicle needs its model's normal refuel point, the one a fuel can uses: without it the action doesn't show. It never works on boats or aircraft. The helicopters keep their own fuel pump refuel.

| Setting | Default | Range |
| - | - | - |
| **Refuel at map fuel stations** `StationRefuel` | On | On/off |
| **Fuel station flow (L/s)** `StationRefuelRate` | `2.0` | `0.2` – `20` |
| **Refuel animation** `RefuelAnim` | `1` (working the pump) | `0` turning a valve, `1` working the pump, `2` crouched at the pump, `3` crouched working |

## CZ Autoz gas pump

Vehicles Core has a gas pump of its own that admins can place anywhere: one small roadside fuel pump, good for a village. Place it from the [admin panel's TOOLS tab](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#stations), or by class name (`CZ_FuelPump`) with a DayZ Editor export, an object spawner file or a loader mod.

* **It is a real fuel pump to the game.** Filling a jerry can, refuelling a vehicle from the pump, the refuel above, the HEMTT Refueler's refill button and the CZ Autoz helicopters' pump refuelling all work at it, with nothing to switch on
* **The fuel never runs out**, like the map's own pumps, and nothing is charged
* **It can't be damaged**, so it never blows up (the map's pumps can)

## HEMTT Refueler

The **Hemtt Refueler (Woodland)** (`HemttRefueler`) and **Hemtt Refueler (Desert)** (`HemttRefueler_Desert`), from the [Armoured Pack](https://docs.czautoz.co.uk/vehicles/packs/armoured-pack.md) or the HEMTT single mod, carry a **fuel tank** and a **water tank** with a pump.

### The tanks

| Tank | Size | Setting |
| - | - | - |
| Fuel | **4000 litres** | **Refueler: fuel tank (L)** `RefuelerFuelTank`, `100` – `20000` |
| Water | **2000 litres** | **Refueler: water tank (L, 0 = none)** `RefuelerWaterTank`, `0` – `20000`. `0` removes the water tank and its buttons |

**How full they start:** **Refueler: tanks at spawn (%)** (15 % by default). A new truck's tanks are filled to that level a few seconds after it appears on the server. After that, the tank levels are **saved with the truck** and kept through restarts.

### Opening the pump

Stand or crouch on foot within 2 m of the truck, look at it, and use **Open fuel and water pump**. The truck must not be destroyed.

The **FUEL AND WATER PUMP** screen shows:

* the truck's name, and the **Fuel tank** and **Water tank** with *… L of … L* and a bar
* **Vehicles nearby (click to choose)**: up to 6 vehicles within **18 m** of the truck, updated every second. A car shows its fuel in %, an aircraft how many litres it has room for, and each its distance
* a status line: *Pumping fuel: … L*, *Refilling the fuel tank from the station: … L*, *Refilling the water tank: … L*, *Ready. Press Start pumping.* or *Choose a vehicle on the right.*
* *"Fuel flows while you stay near the truck. Stations and wells must be close to the truck to refill it."*

The screen closes if you move more than **9 m** from the truck, die, the truck is destroyed, or you press back.

### The buttons

| Button | What it does |
| - | - |
| **Start pumping** / **Stop** | Pumps fuel from the truck into the vehicle you picked, at **Refueler: pump flow (L/s)** (3 litres a second by default). It stops when the vehicle is full, the truck is empty, the vehicle moves more than 18 m from the truck or is destroyed, or you move more than **30 m** away or die. Pumping carries on after the screen closes at 9 m, until 30 m |
| **Refill fuel tank** | Fills the truck's fuel tank from a map fuel station within **18 m** of the truck, at twice the pump flow |
| **Refill water tank** | Fills the water tank at twice the pump flow while a **well** is within **12 m** of the truck. Only wells fill it: sea, pond and river water don't |
| **Fill canister in hands** | Fills the liquid container in your hands with **gasoline** from the fuel tank, at once |
| **Fill bottle in hands** | Fills the liquid container in your hands with **clean water** from the water tank, at once |
| **Close** | Closes the screen |

* The two **Refill** buttons are hidden while **Refueler tanks can be refilled** is off. **Refill water tank** and **Fill bottle in hands** are hidden when the truck has no water tank
* The fill buttons work with any liquid container the game allows to hold that liquid. A container that already holds a different liquid is refused. They fill as much as fits, or as much as the tank has
* A refill stops when its source is gone or the tank is full
* **Aircraft:** while **Refueler: can refuel aircraft** is on, CZ Autoz helicopters within 18 m are listed and can be refuelled from the truck
* **Motorbikes** are listed and can be refuelled from the truck too, as well as cars
* **A locked Refueler gives nothing.** While the truck is locked with its car key, nobody can pump from it, fill from it, refill it or drink from it: *"This Refueler is locked. Unlock it with its car key first."*

### Drinking from the water tank

Crouch at the truck and use **Drink from water tank**. You drink like at a well, and each sip takes **65 ml** from the tank. It needs more than 0.1 litres in the tank. The tank's water is clean water.

### Settings

These can be set for all vehicles, a pack or mod, or one vehicle.

| Setting | Default | Range |
| - | - | - |
| **Refueler: fuel tank (L)** `RefuelerFuelTank` | `4000` | `100` – `20000` |
| **Refueler: water tank (L, 0 = none)** `RefuelerWaterTank` | `2000` | `0` – `20000` |
| **Refueler: pump flow (L/s)** `RefuelerFlow` | `3.0` | `0.5` – `30` |
| **Refueler: tanks can be refilled** `RefuelerRefill` | On | On/off |
| **Refueler: tanks at spawn (%)** `RefuelerStartLevel` | `15` | `0` – `100` |
| **Refueler: can refuel aircraft** `RefuelerAircraft` | On | On/off |


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