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.
The behaviors are:
- Intercept during chase
- Speed up during chase
- Move during attack
- No bump
- No burn damage
I might add more in the future, but that depends on what else I can get working.
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 or freezing until a target comes back in lunge range.
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.
Zombies will slowly speed up, over 5 minutes by default, to 1.5 their base speed. 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.
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.
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
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
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.
Both Intercept behaviors are now configurable to only be used by "smart" zombies. Which are zombies that use the cognition sandbox setting "Navigate + Use Doors".
Which can be used in combination with cogition set to random or another mod that determines the cogition setting per zombie, to configure the amount of intercepting zombies.
Unfortunatly the game currently treats "Basic navigation" and "Navigate" the same under the hood. Which means the amount of customization is limited at this moment.
To not override setting in old save files with new settings, I’ve kept the old toggles for now. But I will remove these somewhere in January
Workshop ID: 3174295288
Mod ID: Morry-MoreZombieBehavior