Login  Register

Re: ZOMBIES ATTACK A.I. BANDITS & SURVIVORS!

Posted by DayZ_SP on Dec 11, 2012; 6:44pm
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/F-A-Q-TESTING-WHY-ZOMBIES-WON-T-ATTACK-A-I-BANDITS-SURVIVORS-tp1512p1527.html

UPDATE:

I have some bad news to report, everybody

This method (described below) isn't going to work and I should have known this already, but it never occurred to me until I actually tried it out in-game.

To get Zombies to attack AI, I simply designated them as "player" since the Zombies are coded to attack the player. They attack the AI, but it is YOU (the human player) who takes damage because you are the same designation as the AI. There are no separate systems in one client to process damage individually for each AI unit.

In other words, the game looks for "player" and just assumes anything/anybody that is designated "player" is a human player and therefore, can take damage from the Zombie attacks. In my extensive tests, the AI were attacked by the Zombies, but it was me (human player!) who took all the damage until I passed out and died... Even though not a single Zombie physically attacked my avatar!

This is why this method won't work in SP, unfortunately.

It works in MP because everybody is assigned a unique ID with their "player" status and also because there are multiple clients connected for every "player" instead of just one client in SP. It is the individual clients that handle the damage per player. This is why if your friends are attacked, only they take damage and you don't even though you are both "players" according to the game/server.

Is there a way around this?

Not at the current time.

I attempted to alter some of the Zombie code itself... But it's just not going to work because while the method I used was no doubt flawed, the proper method would be to code different event handlers for the different units in SP e.g. Player, Survivor and Bandit, but this is way above my skill level and not really worth it, IMO.

Also, from a game stand point, it doesn't make much sense to go to all this trouble because we would also have to add in "auto-medic" functions to the AI if they do get hurt by the Zombies just like human players do. Otherwise, they would just bleed out after a few hits.

There are auto-heal scripts for ArmA 2 on the net, but that is for vanilla ArmA 2, and not DayZ that has everything upside down and twisted five times past Tuesday to get it to work the way Rocket wanted it to. So, this option is out.

Bottom Line:

We are going to have to settle for limited AI in terms of their current functionality.

They are basically robotic bodyguards that can eliminate a lot of potential threats, but that is all they can do. They can't eat, drink, heal themselves, etc. That's not actually bad considering this leaves the human player to do all of those things and that is a core part of what DayZ is all about: Survival.