Project Zomboid

Project Zomboid

Zombie Breaking Car Window
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.
suzinistherealjuno 11 May, 2024 @ 4:17pm 
you should add the possibilty of either a crawler or a walker spawning not one or the other
darkanu  [author] 11 May, 2024 @ 3:09am 
Video / Screenshots and descriptions updated.
xynm 11 May, 2024 @ 1:53am 
Can we get a video of how this works?
JOMBi 10 May, 2024 @ 1:00pm 
working in multiplayer?
RamboTurkey 10 May, 2024 @ 12:18pm 
its not exactly clear what it does
darkanu  [author] 9 May, 2024 @ 2:43pm 
Thanks sampson there's a customisable probability of some zombie break some car window so be careful outside !! =)
suzinistherealjuno 9 May, 2024 @ 1:52pm 
sounds really interesting and i think it will be added to a lot of hardcore collections