Project Zomboid

Project Zomboid

Time Decreases Car Condition
此主题已被锁定
Champy  [开发者] 2022 年 7 月 29 日 上午 7:53
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.
最后由 Champy 编辑于; 2022 年 7 月 29 日 上午 7:53
< >
正在显示第 1 - 7 条,共 7 条留言
ExecutorQ3 2022 年 10 月 29 日 上午 8:38 
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 2023 年 1 月 18 日 上午 7:14 
I don't find this file(TDCC_UpdateChances.lua) in "Vehicles". Where is that file? need some help, please?
Champy  [开发者] 2023 年 1 月 18 日 上午 7:29 
@apmggalaxia it's in media/lua/server/Vehicles
Arame Liso 2023 年 1 月 18 日 上午 8:45 
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  [开发者] 2023 年 1 月 18 日 上午 9:37 
@apmggalaxia C:\Program Files (x86)\Steam\steamapps\workshop\content\108600
Then find the right workshop ID, in this case it is 2841981605 .
最后由 Champy 编辑于; 2023 年 1 月 18 日 上午 9:37
Arame Liso 2023 年 1 月 18 日 下午 12:23 
Thank you, it worked
Champy  [开发者] 2023 年 9 月 12 日 上午 6:17 
Locking this discussion , since the new update allows tweaking these settings directly in the sandbox option
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50