• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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?
 
Level 12
Joined
Jan 13, 2008
Messages
559
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
 
Level 16
Joined
Mar 25, 2016
Messages
1,327
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.
Top