I've been working a bit to improve the behavior of the zombies.
I have made some progress that I want to share with you.
It is still not perfect, but it can help.
This solution is not full applicable to the soldiers, you have to keep in mind that the zombies do not fire, so I do not have to worry about weapons, ammunition, etc.
The truth is that I have not tried it with soldiers yet, because I'm only interested in the zombies of my maze level.
PLEASE, BACKUP YOUR FILES BEFORE DO NOTHING.
Files are: scriptbank\ai\module combatcore.lua, and scriptbank\ai_fastzombie.lua.
In the first video you can see the zombie navigating waypoints, and then attacking the player.
The script named "light_on.lua" is attached to the barrel, this causes the light to turn on, and immediately the zombie goes to the room, following the waypoints. After that he/she attack the player, never may where you hide, he/she found you and kill you, if you does nothing for avoid it. I has been running around the home at hight speedn and she chassing very closest to me. WOW I'm happy so far.
Z behaviour wp test
You can skip this step, because it belongs to an experiment that I'm doing, is that the zombies only attack when the light is off.
When it is not, the zombies go to the dark room, and wait (standby), till the light is off again or player too closest or he/she hear sound (player shoot and only player shoots sounds).
Continuing with the theme...
In the second video you can see the zombie reacting to a shot sound (testing hearing sound here), and immediately after that, chasing the player, they even climb stairs without a waypoint, and attack the player until they kill him. Nice!
These zombies are crazy, I do not know what they have been smoking. LOL
z behaviour non WP shoots test
In the last video you can see zombie chasing me around the home till kill me.That woman is mad about me. LOL
z chassing around test1
Everyone who wants can give feedbacks, improve scripts and share it with the community, suggestions, etc.
EDIT_2917_15_03
I've wrong the scripts so now I'm going to re-upload the correct ones. Sorry, my fault.
You can play with
view cone angle and view range values, even
end collision = yes, via properties, you'll get ais keeping collision when died (ragdoll), but you avoid ais gonig thru walls and so on. At least till Master Lee fix the entities losing physics.
With zombies meanly work with,
ai_fastzombie.lua, ai_zombiewalk.lua, and ai_zombiewalk3.lua.
The other ones are basically
soldier.lua but a bit modified, because the zombies does not fire.
hth
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4