Intelligent Yet Playable Swarming Response

Started by
9 comments, last by LorenzoGatti 14 years, 1 month ago
Is there a way to make enemies swarm intelligently across a level yet still give the player tools to counter this behavior? Imagine a situation where you've elected to invade some underground lair or bunker filled with enemy troops. If the enemy swarmed to counter your threat it would lend an air of "veracity" to the game's world-- you might find yourself admiring the fact that you're faced with foes that evince intelligent looking behavior. But in this sort of environment what you'd probably also get would be dull, frustrating gameplay: You'd enter a room or corridor, enemies would pack the way forward and possibly even the way back, and (if combat worked as it does in most games with hit points) you'd probably trudge through mobs of enemies. The enemies might cluster in such a way that they'd empty themselves from the level, presenting most combat in the first few rooms. If that's the case, why bother to have an intricate level? I've been thinking a one against many invader would need tools-- decoys to misdirect, some ability to control space (lock doors), maybe even places where they see the overall level and misdirect enemy teams. They would probably also need the ability to hide. Maybe the mob situation I describe above would be the result of failure, certain death for a player who allowed the enemy to mass on them in one place? Have you seen anything like this or, if not, what issues do you see?
--------------------Just waiting for the mothership...
Advertisement
Quote:Original post by Wavinator
Maybe the mob situation I describe above would be the result of failure, certain death for a player who allowed the enemy to mass on them in one place?


In many games this can work in the players favor by finding a good choke point and taking on all the enemies their.
I think left for dead sets a good precedence here.

The enemies are very weak so swarms aren't catastrophically bad for you.

They do swarm in certain areas (via the AI director) but there are still ambient zombies that fill the entire map.

Also, there are the few special zombies (boomer, hunter, etc) that are harder to kill so it breaks up the monotony of just killing swarms of weak enemies.

IMO anyhow, i think l4d does a great job with this stuff (:

Also, have you played sim ant? I know that game is ancient but that game was all about swarms :P
L4D is a great example, but zombies aren't so much what I had in mind in terms of expectations. You'd maybe expect to find lone zombies because you don't expect them to coordinate (of course if they do it's a good surprise). But what about something like cops or army soldiers or an orc battalion responding to your threat?

And chokepoints could be good, but while playable it seems not so smart for an enemy force to allow itself to be consistently soaked up at one spot over and over again.
--------------------Just waiting for the mothership...
Hrm...

I would think agility, stealth or intelligence would be your only defenses

Being able to move more quickly than they do, or in ways that they can't to escape and help prevent yourself from getting trapped in a corner would be one way.

Like in prototype when you got swarmed you could use your mutant powers to scale buildings and fly away etc.

or if you were a mouse trying to navigate a level full of cats that would chase you on sight, you could have mouse holes and tunnels that you could fit in that they couldn't.

Or if the swarm guys weren't very intelligent it could be like zelda phantom hourglass how there are those knights that when you get into their field of vision they chase you (til you run back to a safe spot) but that if you are smart, you can sneak by them undetected.

Or like in phantom hourglass, or in modern warfare 2, metal gear solid etc, you can be stealthy to avoid getting swarmed and when you do get swarmed have to return to a stealthy position if you can, but like you said, it's kind of a "you've screwed up" scenario to get swarmed.

I'm curious now what ideas other people have :P
Mass attacks for mass enemies of course. In a one on one fight, to make it dramatic, you have some great duel or shoot him in the eye with an arrow. When there are five dozen encircling you and more coming, you break out the big guns and start splatting some orc corpses.
Quote:Original post by Wavinator
L4D is a great example, but zombies aren't so much what I had in mind in terms of expectations. You'd maybe expect to find lone zombies because you don't expect them to coordinate (of course if they do it's a good surprise). But what about something like cops or army soldiers or an orc battalion responding to your threat?
I'd imagine (but don't actually know) in a military base or securely guarded building, when a alarm goes of, every guard wont spontaneously leave their assigned guard positions, to wildly pursue the intruder. I'd think guards on patrol, or in the breakroom, would, but guards assigned to doors would not, until the intruder comes into sight. And certainly the guards in the control room wont leave their monitoring stations to chase after the player.

Orc battalions? If you are invading a orc fortress, suppose some stay behind out of laziness, or to finish their meal that was interrupted? And ofcourse the ones guarding the prisoners won't up and leave their position, or risk getting beheaded and impaled on a pike by their leader. If the orc battalian isn't in a base, but just raided a city and is camped there now, there would be plenty of orcs wandering all over the city in ones and twos, scavenging for extra loot.
Quote:And chokepoints could be good, but while playable it seems not so smart for an enemy force to allow itself to be consistently soaked up at one spot over and over again.
Have multiple routes to get to any location, and have the enemy AI split up into groups, and take different routes to get to the same location. The player might take out alot of troops in a good chokepoint, but the longer he waits, the more likely a different group of enemies will find their way behind him.

Break swarms of enemies into multiple groups of enemies (6-12), and have the different groups coordinate with each other on a larger scale, while the individual enemies interact with others in their group on a smaller scale.

I like what Atrix256 said about L4D's special zombies to break the monotony. This can be re-done with things other than zombies also: Soliders: Have snipers and soldiers with rockets, maybe even a flamethrower or two. Guards: Normal guards with pistols (bullet proof vest), guards with semi-automatics (bullet proof vest), SWAT-like guards with fully automatics and full body armor, guards with powerful semi-auto shotguns, guards who cut the lights and come in with night-vision. Orcs: Basic orcs with swords, taller/stronger orcs with battle axes, orcs with lots of armor (higher ranking leaders), orcs with chain whips, etc...
Quote:Original post by Wavinator
L4D is a great example, but zombies aren't so much what I had in mind in terms of expectations. You'd maybe expect to find lone zombies because you don't expect them to coordinate (of course if they do it's a good surprise). But what about something like cops or army soldiers or an orc battalion responding to your threat?

And chokepoints could be good, but while playable it seems not so smart for an enemy force to allow itself to be consistently soaked up at one spot over and over again.

I've got a similar feature in my (fantasy) game. The basic idea is, that entities are organised in groups, that they share a location based knowledge and that they have different tasks.

When a level starts, the enemies start exploring the surrounding and sharing the knowledge about already explored locations (room based knowledge). When they encounter obstacle (doors) or opponents, they will add special knowledge (obstacle, danger) which will decay over time.
Each entity has special skills, like exploring, hauling resources, attacking enemies or unlocking doors, which will lead entities to look for work. I.e. if an enemy encounter the player, it will mark this place as "dangerous". Other enties or whole squads which has the skill of "fighting enemies" will decide on their own to clear the give place of enemies (in this case killing the player).
On the other hand, other entities with other tasks and skills will continue to swarm the level
So, to prevent the enemy to swarm the whole level, the player have to utilize doors and other obstancle to "control" the enemy flow, because just sitting at one chokepoint will not attract or block all enemies.

Note: This could be difficult to actually implement.


This would go with the other suggestions about having soldiers work as squads and only some in an area would come looking for you. What you good do is implement various ranks of officer as actaul enemies in game. By the player killing these officers depending on the rank various effects would occur.

eg. Killing the commander stops reinforce ment from other areas of the base. Killing the officer for the area makes it take longer for enemies to gang up on the player.


Also for ways the player can counter the swarm is to keep moving (this would include moving to high ground, leading enemies into choke points) but staying in one place to long would mean the play has to face to many enemies. Also if the player is able to not be followed the enemies would search rather than swarm until another alarm is triggered or the player spotted.


Another suggestion would be to make not all enemies have long distance communications such that the only enemies that can come and help are people in hearing range or if one enemy can run to get them. This could add to game play as you could kill the person who is running off to get help or let him go to bring the enemies to you, or if a long range communicator is present do you try and kill all the enemies quickly or snipe him first.
If there player is facing a group of intelligent, coordinated enemies (such as soldiers or police) she might attack the leader of the group, causing the group to panic or disperse. This opportunity could be used to more easily take down the remaining enemies, or to escape/achieve an objective/whatever.

She might also attempt more guerrilla-eske tactics, picking off enemies in a hit-and-run style or by setting traps. Perhaps if the player is able to wound but not kill an enemy the rest of the group will remain stationary or fall back until their comrade is stabilized, or picking off a member of a group might make that group wary of proceeding.



Groups of enemies attacking a choke-point would likely realize the player has an advantage and try a different approach:
  • Some enemies remain and attempt to suppress or distract the player from a longer range whilst others use an alternative route to access the player's location.

  • The enemies fall back, perhaps to a choke-point of their own in an attempt to ambush the player.

  • The enemies attempt to "level the playing field" by using flash-bangs, smoke bombs, etc. to alter the environment in an advantageous way.

  • The enemies try using a longer ranged weapon (grenades, etc.) to clear the way before attempting to move forwards again.

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement