Project Zomboid

Project Zomboid

Zombie Breaking Car Window
17 kommentarer
williamasecas 18. apr. kl. 12:10 
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. okt. 2024 kl. 5:54 
支持cdda吗
darkanu  [ophavsmand] 25. juni 2024 kl. 2:19 
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. juni 2024 kl. 10:35 
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. juni 2024 kl. 8:49 
dude i tho about making a mod like this 2 days ago and now it pops out wow amazing!!
darkanu  [ophavsmand] 24. maj 2024 kl. 10:29 
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. maj 2024 kl. 12:04 
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  [ophavsmand] 20. maj 2024 kl. 4:23 
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. maj 2024 kl. 3:39 
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  [ophavsmand] 13. maj 2024 kl. 1:29 
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. maj 2024 kl. 16:17 
you should add the possibilty of either a crawler or a walker spawning not one or the other
darkanu  [ophavsmand] 11. maj 2024 kl. 3:09 
Video / Screenshots and descriptions updated.
xynm 11. maj 2024 kl. 1:53 
Can we get a video of how this works?
JOMBi 10. maj 2024 kl. 13:00 
working in multiplayer?
RamboTurkey 10. maj 2024 kl. 12:18 
its not exactly clear what it does
darkanu  [ophavsmand] 9. maj 2024 kl. 14:43 
Thanks sampson there's a customisable probability of some zombie break some car window so be careful outside !! =)
suzinistherealjuno 9. maj 2024 kl. 13:52 
sounds really interesting and i think it will be added to a lot of hardcore collections