Project Zomboid

Project Zomboid

Immersive Cars: Decay
23 Comments
Gojita Sep 3 @ 4:50am 
@Doom Girl: Tested it in my MP dedicated server, after apply the mod mid-save, couple of issue:

- All spawned vehicles condition goes down to the same ~2%
- Some Mechanic-main members of my server told me that after they took out some part of the vehicle out, and just put them right back, the condition of said item & general condition of the vehicle goes up 1~3% per / part.

Please check, I think?
Gojita Aug 29 @ 5:25pm 
@Doom Girl: So it affects all vehicles in general, vanilla & modded ones alike — good to know, although I haven't test it, I assume it works in MP as well. For the mod, one suggestion for a future update:

- Consider changing the value-format and formula to use in-game days or years instead of random numbers/approximations which is too vague.
Doom Girl  [author] Aug 29 @ 5:15pm 
@gojita my best guess would be yes it would work but it might be an idea to test it out in a new single player game before deploying on any existing save.
Gojita Aug 29 @ 5:08pm 
@Doom Girl: In simpler terms, does modded-vehicles (other than vanilla) can be decay with your mod?
Doom Girl  [author] Aug 29 @ 5:05pm 
@gojita I can't be certain as I do not know that mod. However if it uses the default vehicle spawning and just adds it's own stuff there should be no reason it wouldn't. I am not currently working on any PZ stuff at the moment but I will do my best to check once I return.
Gojita Aug 29 @ 1:54pm 
Does this support KI5 vehicles?
mac821 Aug 28 @ 2:30pm 
You ever figure out how to change rust values?
404ModNotFound Jul 29 @ 10:41am 
Hey. I really love this mod! Do you plan to add customized multiplier to each vehicle part?
Doom Girl  [author] Jul 23 @ 5:08am 
@Mo Gigmal. No it isn't what are you talking about. It also doesn't account for servers who simulate many years later. Also why do you care?
Doom Girl  [author] Jul 15 @ 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 Jul 14 @ 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 Jul 11 @ 4:30am 
Do the cars get that vanilla rust texture over time? Or just the scratches shown in the mod preview photo?
Redacted Jun 13 @ 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] Jun 10 @ 12:03pm 
@Nickolye Just the stuff on the cars. Adding it to parts off the car would be big extra stuffs
Nickolye Jun 10 @ 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] Jun 9 @ 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 Jun 9 @ 7:32am 
Does it work only with vanilla cars or any?
Doom Girl  [author] Jun 9 @ 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] Jun 9 @ 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 Jun 9 @ 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 Jun 8 @ 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] Jun 8 @ 8:57pm 
Build 41 Version uploaded, SHOULD work, but untested. Try in a new game before deploying on existing saves or multiplayer servers.
Mistuk`ä II Jun 8 @ 10:51am 
cool mod, waiting for build 41 to work