Project Zomboid

Project Zomboid

Immersive Cars: Decay
14 Comments
Doom Girl  [author] 15 Jul @ 9:30pm 
@MrSmileyincorprated this already exists in the code and can be enabled. if you drive a car it will halt decay for a time, many hours at least. also decay isn't fast, unless you're leaving your car in game untended for months this isn't an issue.
MrSmileyincorprated 14 Jul @ 8:42am 
there should be option where u can pick your car to not decay over time or atleast be able to bump the hours or time up for the cars we drive yk?
DRAGO1212 11 Jul @ 4:30am 
Do the cars get that vanilla rust texture over time? Or just the scratches shown in the mod preview photo?
Redacted 13 Jun @ 7:49am 
You should add nested decay loops to create a taxonomy of car parts. It should be something like this.

IF (Front.Left.Window < 50% || Front.Window <60% == Allow.Driver.Seat.Decay==1 )
[]
ELSE (Allow.Driver.Seat.Decay==0)
(This makes relevant carparts protect the damage of carparts they naturally intend to pretend from decay, like in this case windows protect the seats from getting damaged by outside elements. You can offcourse also write a seperate method to first check if 'any window' and 'any door' is damaged, and allowing a minor decay, and then adding on top of that a check as described above to increase the rate of decay to simulate the ffects a rainshower would have if the windows near the seat decay.

OR another example, would be, if the hood is still nicely painted, the hood barely takes damage and protects the engine etc. But when the paint comes off, the hood decays faster, and when the hood is damaged to certain degrees, the engine breaks down faster.
Doom Girl  [author] 10 Jun @ 12:03pm 
@Nickolye Just the stuff on the cars. Adding it to parts off the car would be big extra stuffs
Nickolye 10 Jun @ 9:43am 
This is a really neat concept that I'm surprised wasn't already implemented
would the car parts rust just the same if taken out, or does it only apply to them when they're in the car itself?
Doom Girl  [author] 9 Jun @ 10:14am 
@LoLI_Lovit_Coc as long as custom cars use the same spawn method as the vanilla cars which I think most do it should work for any you put in your game.
LoLI_Lovit_Coc 9 Jun @ 7:32am 
Does it work only with vanilla cars or any?
Doom Girl  [author] 9 Jun @ 3:59am 
@Cobraa0071 It's absolutely something that can be done and weather is something I can take into account for local cars but not distance ones. Because if cars are not currently loaded there's no way to check their position for rain. In the end I went for a catchall average system which applies the decay to newly spawned with an average multiplier of all 4 seasons. It's a little bit of a crude way to do it but it's better for performance.

As for the undercover suggestion, I did actually think of that and it is entirely possible. I may put it in a future build but I don't think any cars spawn naturally under any roofs in the vanilla game which would make the feature a little bit redundant and cost performance, Correct me if I am wrong though I am the first to admit I have not explored the entire map.
Doom Girl  [author] 9 Jun @ 3:51am 
@Hilvon The ownership tag is only about 72 hours because of a few reasons, the first being that the decay timer resets at the end of it so it effectively stops a car from decay for over 500 hours in game if you're using the default settings. The next build will allow for people to turn off the delay and the feature all together as I like to have a high level of customisation which is the other reason so it will be able to be whatever people need it to be.
Cobraa0071 9 Jun @ 2:07am 
I would like some factors to influence the destruction.

The first fact is the weather. So that cars rust faster in the rain, if they are not in a garage or under a ramp.

- so that the tires go flat first after a couple of months, which would also be cool.

- if possible, add such mechanics so that the car, being in a garage or under a roof, does not rust so much or does not rust at all, which would make garages not so useless.

(I understand that such mechanics may not be possible to create, but you never know. Although I am already happy with the appearance of this modification)
Hilvon 8 Jun @ 10:11pm 
Just read the description. Didn't play it yet (though if I understand how it works correctly, that mod is definitely going into my hardcore pack) but I got a question.
"Owned" flag lasting for 72 hours... feels rather short and gives a feeling that within those 3 days there would already be some decay occuring on other vehicles.
But at the same time projections of a 100% having 5 years of decay ahead of it does feel right.

Also a question/suggestion - does being positioned outside or indoors affect the rate of decay? Cause the whole point of garage is to prevent car from being ruined.
And can "Owned" flag be linked to other actions too. Like opening a hood?
Doom Girl  [author] 8 Jun @ 8:57pm 
Build 41 Version uploaded, SHOULD work, but untested. Try in a new game before deploying on existing saves or multiplayer servers.
Mistuka 8 Jun @ 10:51am 
cool mod, waiting for build 41 to work