Project Zomboid

Project Zomboid

44 个评价
Slower Car Tear And Wear
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
1.265 MB
2024 年 3 月 7 日 上午 11:31
1 项改动说明 ( 查看 )

订阅以下载
Slower Car Tear And Wear

在 Shoryuken Enjoyer 的 1 个合集中
My Project Zomboid Quality of Life Mods
4 件物品
描述
Description
Your car parts are now more durable! All parts last 3 times longer from tear and wear!!

This is part of my on going common sense mod , which I will add quality of life improvements and tweaks that add a bit of common sense to the game.

This is achieved by modifying a universal vanilla vehicle function that's responsible for lowering the condition of car parts.

Might conflict with mods that edits Vehicles.lua. My mod should overwrite theirs with no problem.

Compatibility
For third party car mods, if they utilize the vanilla degrade function, then this mod will work if it overwrites their car mods.
This mod will not work if they have implemented their own degrade function, i.e they will not call the vanilla function that my mod have modified.

Lastly
If you like my dumbass AI generated mod cover image, or the mod itself, feel free to leave a like!

Workshop ID: 3174846733
Mod ID: SlowerCarWear
15 条留言
Shoryuken Enjoyer  [作者] 1 月 7 日 下午 12:05 
might be different. But have a look under steamapps\workshop\content\108600\3174846733.
Then from here, go to mods\SlowerCarWear\media\lua\server, open SlowerCarWear.lua with notepad.

find the line with "if part:getCondition() > 0 and ZombRandFloat(0, 100) < chance then"
change this line to:
"if true then"

make sure ONLY replace the text I mentioned, even the spaces on the same line before the text should not be touched.

Next, go to the line with "part:setCondition(part:getCondition() - 1);"
change the value -1 to something smaller, like -20, so it would be like:

"part:setCondition(part:getCondition() - 20);"

basically, after this change, the degrade will ALWAYS happen, and each time it happens, lower the condition by 20. If the code works, your car will now be totaled within 5 seconds when you drive it, so make sure to backup your save file.
Shoryuken Enjoyer  [作者] 2024 年 12 月 23 日 下午 1:27 
It’s not implemented in the sandbox setting unfortunately. I’ll tell you how to do this after new year as I currently don’t have access to my computer.
ZaidIsm 2024 年 12 月 21 日 下午 8:29 
How do I do that? I haven't seen any sandbox settings. Maybe I'm just not noticing it.
Shoryuken Enjoyer  [作者] 2024 年 12 月 21 日 上午 8:17 
To be honest I have no idea how the “low” settings work in game, and how it interacts with the degrade function. How did you make the conclusion that the mod doesn’t work? Perhaps you can open my mod and change the value to 999, if your car breaks faster then that means my mod does work.
ZaidIsm 2024 年 12 月 20 日 下午 9:41 
I checked Fillibusters and from what I read all it does is add vanilla friendly vehicles. Doesn't seem to change anything else. Does putting the vehicle damage to "low" in sandbox settings effect anything? I really want this mod to get working because vanilla cars just suck so much with how unrealistically weak they are.
Shoryuken Enjoyer  [作者] 2024 年 12 月 9 日 上午 5:58 
I think either it works but you didn't notice, or some other mods changed game behaviors. Fillibusters looks like a big overhaul mod to me. Most likely that mod made many changes to the game so my mod doesn't work any more.
Like I said under compatibility, my mod modifies the vanilla function. It wont work if cars don't use that modified vanilla car degrade function because they have implemented their own car degrade function.
ZaidIsm 2024 年 12 月 9 日 上午 3:47 
Not working, or at least I think. I have at bottom of my load order. Only car mods I have are fillibusters and fillibusters upgrades.
Chickenwingd 2024 年 6 月 28 日 下午 9:37 
Beautiful mod thanks for making it, I don't get why cars are so weak to begin with
Shoryuken Enjoyer  [作者] 2024 年 6 月 26 日 下午 10:53 
awwww thanks <3
Cryptic 2024 年 6 月 26 日 下午 6:14 
it works beautifully. gave you an award!