Product Chat / Improving zombies behaviour

Author
Message
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 14th Mar 2017 11:57 Edited at: 15th Mar 2017 12:41
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

Attachments

Login to view attachments
PM
0Alemar0
17
Years of Service
User Offline
Joined: 25th Jan 2007
Location:
Posted: 14th Mar 2017 23:21
wow nice 3Dcom !
www.alemargames.com
DennisW
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 14th Mar 2017 23:56
Quote: "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)."


i was thinking that when a player enters a room and turns a light on or maybe turning on a flashlight. That would activate the zombie to attack . In any case I like the work your doing.

Dennis
Ham and Eggs Breakfast

The Chicken was involved the Pig was Committed

AGK Community Tester
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 15th Mar 2017 12:46
Thanks guys. Glad you like.

I've edit main post, since I've wrong the scripts. Correct ones alredy uploaded. Sorry, my fault.
I'm getting very nice Z behavior, in my maze map.

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

PM
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 15th Mar 2017 13:14
This is good work on zombies,well done .

Dave
Windows 10 Pro
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 16th Mar 2017 14:13
Thanks granada.
Working on soldiers now.
Anyway before I want to get something I'm working on. Of course I'll release it, when done.

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

PM

Login to post a reply

Server time is: 2024-03-29 12:57:40
Your offset time is: 2024-03-29 12:57:40