Project Zomboid

Project Zomboid

139 ratings
More Zombie Behavior
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.244 MB
6 Mar, 2024 @ 11:06am
30 Jul @ 12:26pm
13 Change Notes ( view )

Subscribe to download
More Zombie Behavior

Description
More Zombie Behavior
This mod adds multiple behaviors for zombies with the intent to make the game more difficult. By default all behaviors are turned on, but each one of them can be turned off by means of a sandbox option.

New in v2
  1. Experimental java sub-mod
  2. Boids / Flocking behavior
  3. Random distribution of behaviors

Java sub mod
This is is still a work in progress, flocking is not yet completely supported and there might be more issues.

An experimental sub-mod that moves the location of the OnZombieUpdate event to after the base update. Which fixes the mod's override getting overriden by the base game.

This enables the mod to use the vanilla movement system. Which fixes the zombies sliding.
The java files need to be manually overriden and a sandbox settings toggled to actually enable the java behavior.
This way the old behavior can be re-enabled as a fallback in case the IndieStone updates the game.

Boids / Flocking

While moving, zombies take other nearby zombies into account and will display flocking behavior. Which aims to simulate zombie herds more "realistically" by having them spread out and walk in the same general direction. This should also prevent zombie conga lines from forming while a group is chasing you.

For more information on boids: https://en.wikipedia.org/wiki/Boids

This feature is still in active development.
There are flocking-adjecent behaviors which are not yet done, such as a wander behavior.
Performance can still be improved. There is a system in place to dynamically scale down the amount of flocking calculations. But it might not be enough for some setups.
And there is an issue where zombies can get stuck against a wall.
These things will be adressed in later updates.

Random distribution of behaviors
Every behavior (except boid behavior) can be given to a random amount of zombies. By setting the sandbox setting to the value "random", the percentage of zombies can be specified with another sandbox setting in a separate tab.

Behaviors
  1. Boids / Flocking
  2. Intercept during chase
  3. Speed up during chase
  4. Move during attack
  5. No bump
  6. No burn damage

This mod techically works in multiplayer, as it throws no errors. But extra jank may occur when zombies switch targets, such as moonwalking to the switched target.

Intercept during chase
Zombies will take the player's velocity into account when chasing and intercept them. Instead of walking to the player's current position which results in zombies lagging behind the player.
This behavior is togglable for the WalkTowards and Lunge state, because this is an extension of an earlier mod I made.

This behavior intends to make it more difficult to casually walk past zombies.

Speed up during chase
Zombies will slowly speed up, over 5 minutes by default, to 1.5 their base speed, but this is adjustable with a sandbox option. Knocking a zombie down will reset this speed boost.
The maximum speedboost should be faster than the default player walking speed.

This behavior intends to make it more difficult to fight zombies in the open over longer periods of time.

There is now also the option to slow down zombies instead, mostly intended to be used with sprinters.

Technical details:
Where possible this speed up is done by means of speeding up the animation. However the game does not immediately detect animation speed changing, only when a state changes. Therefore there is a backup implementation that just increases the velocity of the movement. So this can look a bit weird if it takes a long time for a state change to happen.

Move during attack
Zombies will move with about the same speed as a lunge during the attack animation. This also uses the speed up behavior if it's turned on.

This behavior intends to make it more difficult to casually walk past zombies

No bump
When you run into a zombie, it transitions into a state where it is stunned for a short duration. When this behavior is turned on, this only happens when the zombie is hit from behind. Instead the zombie is free to immediately attempt an attack, similair to earlier builds of Zomboid.

This behavior intends to make running through a horde of zombies more difficult

No burn damage
Zombies are immune to fire damage, but will eventually stop burning after a random amount of time.
This ensures that fire is only detrimental to the player and cannot be used to kill zombies.


Compatibilities
Mod
Compatibility
Bandits
42 only
Wandering Zombies
yes
Starving Zombies
assumed yes, did not test it myself
Definitive Zombies
yes
The Walking Dead shamblers
Reported to work
Melee Ragdoll
Possible desync with local splitscreen


Workshop ID: 3174295288
Mod ID: Morry-MoreZombieBehavior
Mod ID: Morry-MoreZombieBehavior-v2
Popular Discussions View All (1)
1
12 Mar, 2024 @ 4:23pm
Compatiblity + Enabling during game
TheMan
67 Comments
Migs 20 Aug @ 12:20pm 
Awesome mod, the flocking behaviour makes even shamblers harder to fight.

The sliding is okay with shamblers, but with sprinters it can get quite buggy, one sprinter that was going after me slided like 8 tiles in 1 second hahah
APPLEPIE 9 Aug @ 11:37pm 
i hope Boids/Flocking behavior works on b41 too :)
it looks very realistic
Morry  [author] 31 Jul @ 12:05am 
@Mongrel Man
A wander behavior related to the flocking behavior.
The intention is to make zombies walk randomly without using the path planning algorithm, but instead just a direction to walk into. Which can be adjusted by multiple things such as random chance or nearby zombies. Which hopefully will make them more "dynamic"

You can turn it on in the sandbox settings, but I do not recommend that as it's still in active development and doesn't work as intended yet.
Mongrel Man 30 Jul @ 1:25pm 
What is kinematic wander that you mentioned in recent patch notes?
Morry  [author] 29 Jun @ 1:53am 
@Kaoeutsu I looked into it and I forgot that I never added the compatibility with bandits for B41. So it's only compatible in B42.

I added a table with earlier mentioned compatibilities from the comments section to the mod description. So there's a proper place to check compatibility
Morry  [author] 28 Jun @ 12:55am 
@Kaoeutsu Thank you for the report, I will try to reproduce the issue when I have time
Deathburger195 27 Jun @ 10:02pm 
I can confirm they work together! And the zombies slower actually mitigates the sliding to almost unnoticeable,
Deathburger195 25 Jun @ 10:54pm 
I want to use this with "The walking Dead shamblers" mod. Which makes the zombies slower and not lunge, do you know if there is a way they would clash? Or what order i should put them in?
Kaoeutsu 25 Jun @ 6:55pm 
NOT compatible with Bandits, at least not with Bandits V2 in B41 which was the version I tested. Bandits will move weirdly and not attack players and other zombies.
Morry  [author] 17 Jun @ 12:14pm 
@Ryan It's explicitly made compatible with bandits, I assume week one works the same.
Wandering zombies should be compatible
Starving zombies has the same author and probably works similarly, so I assume it is ok. But I haven't explicitly looked at the code

Incompatibilities will most likely occur with mods that also change animations of zombies