From af62cdbafe5275d1a868e10c654ac7a10f90a31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 24 Jan 2022 15:19:02 +0100 Subject: [PATCH] Prevent cars from producing power with no input in auto mode --- vehicles/vehicle.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vehicles/vehicle.gd b/vehicles/vehicle.gd index 632d7b1..72d2421 100644 --- a/vehicles/vehicle.gd +++ b/vehicles/vehicle.gd @@ -198,6 +198,8 @@ func _physics_process(delta: float): if GlobalSettings.auto_clutch or GlobalSettings.automatic_transmission: clutch_position = 1 - min(rpm, auto_clutch_rpm_limit) / auto_clutch_rpm_limit + if throttle == 0.0 and linear_velocity.length() < 1: + clutch_position = 1 if gear_timer > 0: clutch_position = 1