Project Zomboid

Project Zomboid

Not enough ratings
Zombie Breaking Car Window
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.870 MB
9 May, 2024 @ 12:53pm
1 Change Note ( view )

Subscribe to download
Zombie Breaking Car Window

Description
Imagine having the possibility of a poor soul passing away inside the car, and you can have a little surprize when you try to open it =)
It Works in both Multiplayer And Single Player.


Description.
This mod emulates the probability that when you approach a car, it spawns a zombie and breaks the car window simulating that this zombie was someone that Died inside the vehicle.
The zombie will spawn, the car window will break and the zombie will chase you.

That probability is custom by the sandbox variables. (Default Value is 3% of chance that happens). But be careful if you set it 100% whenever you approach a vehicle will spawn a zombie, so if you set that with a higher value can increase a lot the difficulties of the game.


* Mod prevents twice spawns in vehicles (This will never happen)
* If you visit some vehicle and the zombie didn't spawn on it no worries it will never happen again Mod will consider that this car didn't have anyone dead inside and will not let it spawn for that car.
* If the car has an alarm and this happens It will turn on the alarm because the car window will break!

I'm always open to suggestions and improves, so thank you all that give feedback.
Enjoy and have fun!


Workshop ID: 3243111738
Mod ID: ZombieInCarMod
17 Comments
williamasecas 18 Apr @ 12:10pm 
Hello. When game attepts to spawn zombies an error pops up.

Game shows: client/ZombieInCars.lua line # 84

Console shows:
function: OnPlayerMove -- file: ZombieInCars.lua line # 84 | MOD: ZombieInCar

LOG : General , 1745002926802> __add not defined for operands in OnPlayerMove
123 4 Oct, 2024 @ 5:54am 
支持cdda吗
darkanu  [author] 25 Jun, 2024 @ 2:19am 
Hi there Zniky, That's amazing we are always trying to improve our plays, I was missing some random factor that could change the play scenario here in PZ so then I created that one rsrs.

Ben it has an option within the Sandbox options that if you let unmarked the zombie has a possibility of spawning stuck, I let the window position through it, so still possible.

The second one I'm sure it isn't, PZ doesn't have any mechanic with the Inside car for example. So this would not be allowed or it will be truly OP letting the person enter and then killing you by entering in the car or something like that (You would not have any chance of defence)

Sorry for the late answer guys!
Ben_OnAir 20 Jun, 2024 @ 10:35am 
do you think it's possible to make the zombie "stuck" in the car instead of it crawling out from the window? also if it's possible to emulate a zombie that would be inside the car but wouldn't have broken the window?
ZnikyBaztard 10 Jun, 2024 @ 8:49am 
dude i tho about making a mod like this 2 days ago and now it pops out wow amazing!!
darkanu  [author] 24 May, 2024 @ 10:29am 
That's really strange :s to be pretty sure I have no idea why you are facing this, if you put up a local server with my mode only can you check the behavior?
WitheringHex 20 May, 2024 @ 12:04pm 
Yes, I waited for each 10 minute tick. No zombies spawned at any time.

I have other mods on my server that alter zombie behavior, so I disabled them as well.

I also checked your code, and it seems valid. I tried different load orders, and finally just ran it alongside some basic QoL UI Mods which don't affect anything with zombies, and it still did not spawn any zombies.

Couldn't see any errors thrown in the console, or server debug logs either.

Everything fires in the function up to breaking the glass, and then no zombie spawns, either standing or crawling.
darkanu  [author] 20 May, 2024 @ 4:23am 
Hi Withering the mod is coordinated with the 10 minutes events, if you set the probsbility to 100% you need to at least wait for 10 min in game to be "able" to spawn again, can you check this?? Did the zombie spawn anytime or never happened with you ?? Thanks for the feedback I need to have more concrete data, you're the first to give this feedback as seems to be working normally for the others, also it's just available on build 41 >
WitheringHex 20 May, 2024 @ 3:39am 
Sounds like an awesome mod, but the zombies do not spawn in.

I have tried in Single Player, as well as Multiplayer Hosted/Dedicated.

I can walk up to a window and the glass will break, which is awesome and startling.

But that is all that happens. No zombies, standing, or crawling.

Major bummer
darkanu  [author] 13 May, 2024 @ 1:29am 
hmm it's a good point I can add that into the next fix, So the Idea would be both random like 50% of happening one or the other when it happens.