Project Zomboid

Project Zomboid

Time Decreases Car Condition
This topic has been locked
Champy  [developer] 29 Jul, 2022 @ 7:53am
Chance multipliers on each type of vehicle part
Here are the multipliers for each part , and the number of times the chance is applied on the part is represented by the (x1), (x2) or (x3)

Headlights(x2) = 1x
Windshields(x2), windows(x2) = 0.8x
battery(x3): 0.7x
Gas Tank(x1), Engine(x1), Muffler(x2) , Suspensions(x1) and Brakes(x1)= 0.6x
Radio(x2), Trunk(x1) and Tires(x3) = 0.4x
Seats(x1), Glovebox(x1), Trunk Door(x3), Doors(x3) = 0.2x

Many vehicle parts have the chances applied two or three times. (represented by the x1, x2 or x3 next to it) So the chance ends up higher than it should.
For example:
Each door could be removed, then could be damaged, and then could have its lock broken. That's three times the chance is applied.
Each tire could be removed, then could be damaged, then could have it tire pressure decreased. That's three times the chance is applied.
Each battery could be removed, then could be damaged, then could have its charge decreased. That's three times the chance is applied.

So the chance to damage/remove a door is much higher than a seat, because it's applied 3 times on the door and only once on the seat.

This also means that if you have the chance at 100, some parts will still remain.

You can tweak these values in the file "media/lua/server/Vehicles/TDCC_UpdateChances.lua" . I might make an addon mod to tweak these multipliers through sandbox settings, not sure yet.
Last edited by Champy; 29 Jul, 2022 @ 7:53am
< >
Showing 1-7 of 7 comments
ExecutorQ3 29 Oct, 2022 @ 8:38am 
Thx for the info.
I hope i'll make this work fir mp somehow instead of the worse cars condition (that seems to stop working since it's not hard for me to find 80%+ car in first minutes on newly created host game)
Arame Liso 18 Jan, 2023 @ 7:14am 
I don't find this file(TDCC_UpdateChances.lua) in "Vehicles". Where is that file? need some help, please?
Champy  [developer] 18 Jan, 2023 @ 7:29am 
@apmggalaxia it's in media/lua/server/Vehicles
Arame Liso 18 Jan, 2023 @ 8:45am 
yes I know, but where are these folders? it's through the steamapps? The only files I found are: VehicleCommands.lua, VehicleDistributions.lua and Vehicles.lua
Champy  [developer] 18 Jan, 2023 @ 9:37am 
@apmggalaxia C:\Program Files (x86)\Steam\steamapps\workshop\content\108600
Then find the right workshop ID, in this case it is 2841981605 .
Last edited by Champy; 18 Jan, 2023 @ 9:37am
Arame Liso 18 Jan, 2023 @ 12:23pm 
Thank you, it worked
Champy  [developer] 12 Sep, 2023 @ 6:17am 
Locking this discussion , since the new update allows tweaking these settings directly in the sandbox option
< >
Showing 1-7 of 7 comments
Per page: 1530 50