Project Zomboid

Project Zomboid

48 ratings
Immersive Cars: Decay
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
396.952 KB
7 Jun @ 4:27pm
8 Jun @ 8:15pm
4 Change Notes ( view )

Subscribe to download
Immersive Cars: Decay

Description
Sick of finding band new cars in the middle of the apocalypse? I've got you covered!

What it does:

This mod add semi-real time decay updates to cars in the world without demand for heavy resources

Features:

Full sandbox compatibility; You decide what works for your game/server
Custom settings that allow you to: Change how often decay occurs, change seasonal multipliers, allow simulated decay over time for newly spawned cars. This means the level of decay will remain consistent even when visiting new areas where no cars were previously spawned and you can decide if being exposed to the elements will increase the level of decay that a car incurs.

Owned cars, When you get into a car and start the engine it becomes owned for 72 hours, in that 72 hours decay cannot occur, this ensures that your own car doesn't rust out right from under you

====================

With default settings cars will last approx. 5 in game years if they are in 100% condition. Obviously most cars are not that pristine and may last a little less unless repaired.

====================

Known issues:
On a very rare occasions in games that have gone on for a long time you may see a freshly spawned car decay right before your eyes, this should be rare though if using default settings. It might be more common if using settings that cause cars to decay faster.

====================

Check out my other immersive car mods:
Immersive Cars: Parts Picked

====================

Future plans for the Mod:
- Right now cars all parts decay at a more or less identical rate, This doesn't matter too much since RNG determines a cars overall condition when it spawns. I intend to change this slightly to add a small amount of variety to the decay to allow players to get lucky finding a part that's in pretty good condition for salvage.
- I would like to have tires deflate before they start decaying. This can be done but it will require me to re-write most of the main code so it will take some time.
- Lower decay on cars stored in a garage or just indoors in general. This will give an incentive to keeping your car covered and to go scavenging for parts in areas where there might be protection from the elements (I don't believe those areas exist in the current vanilla game, but enough mods add this kind of thing that I think it's worth exploring). This also allows for the removal of the arbitrary ownership time and introduces an idea for real vehicle maintenance gameplay into the game.

====================

You can add this mod to collections if you want to with my blessing.

Tell your friends about me
Like the mod if you like
Fave if you love :D

[www.buymeacoffee.com]




Workshop ID: 3495105059
Mod ID: ImmersiveCarsDecay
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.