make creeps roam map

Status
Not open for further replies.
Level 12
Joined
Jan 13, 2008
Messages
559
Hello, I am looking for a decent creep roam system but I can't find anything. I am working a survival map where zombies spawn at night and they should attack the nearest player or just a random player.

What I tried:
-Wander Ability (terrible idea)
-Order them to attack-move to position of a random hero (bad idea, they ignore sometimes nearby heroes)
-giving them unlimited sight and acquisition range (doesnt work..idk why..they move to the position of a hero for some meters and then move back..)

any ideas?
 
why is it a problem when I order them at the same time? how do I check this? another problem which is weird is when a player is on a cliff and the 2 entries are blocked with barricades. Instead of attacking the barricades the monsters zombies just stand below the cliff trying to attack the hero (which is not possible)...to fix this I need to put the priority of heroes below the one for barricades...hm thats kinda bad
 
The problem is that calculating the closest hero takes a lot of time. Doing it all at the same time will cause lag spikes periodically. Instead of ordering every 2 seconds (every 2 seconds lag spike), you order every 0.05 seconds some of the units to attack move.
I think this is general warcraft 3 behaviour. Since the barricades do not attack, the zombies try to attack the heroes. Are the barricades hostile to the zombies?
 
Status
Not open for further replies.
Back
Top