# Hordes of zombies. Balance

**URL:** <https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388>\
**Category:** The Drawing Board\
**Created:** [March 12, 2014, 9:44am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388 "2014-03-12T09:44:14Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [March 13, 2014, 5:36am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/41 "2014-03-13T05:36:17Z")

</div>

[quote=“Goombah, post:37, topic:5388”]I would see Hordes as coming from the edge and going towards noises. That’s thematic for zombie stories.

Making them static would sort of defeat the point of adding them, IMO.[/quote]  
Coming from the edge of the map is dynamic, yeah, but once they are on the overmap itself they are static entities that are tracked (as opposed to randomly spawning into existence in the middle of it). For cities I was saying maybe spawn a few hordes in them right at the start of the game, it would give a fairly realistic start location early that would allow you to get some fair dispersion over the map; later on you would only spawn form map edges.

---

<div class="post-metadata">

**Author:** ![Goombah](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@Goombah](https://discourse.cataclysmdda.org/u/Goombah)\
**Post date:** [March 13, 2014, 6:28am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/42 "2014-03-13T06:28:04Z")

</div>

[quote=“i2amroy, post:41, topic:5388”][quote=“Goombah, post:37, topic:5388”]I would see Hordes as coming from the edge and going towards noises. That’s thematic for zombie stories.

Making them static would sort of defeat the point of adding them, IMO.[/quote]  
Coming from the edge of the map is dynamic, yeah, but once they are on the overmap itself they are static entities that are tracked (as opposed to randomly spawning into existence in the middle of it). For cities I was saying maybe spawn a few hordes in them right at the start of the game, it would give a fairly realistic start location early that would allow you to get some fair dispersion over the map; later on you would only spawn form map edges.[/quote]

Okay. I see what you’re saying. Yeah, having a horde or two on the map at the start could add an interesting element also. Something you have to negotiate and avoid aleriting to your presence until you can deal with it.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [March 13, 2014, 6:44am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/43 "2014-03-13T06:44:41Z")

</div>

The simplest thing I can think of is to expand the current system, for noises over a threshold, check for nearby monster groups on the overmap and give them a chance to be attracted to the noise based on volume - distance.  
Most gunfire and explosions would attract groups from a long distance, but they’d move in the direction of a sound for a while, then forget about it and go back to wandering. Protracted firefights or frequent use of explosives would really attract them. Things like engines, generators, and power tools would attract them from a much smaller area, but do so more reliably since you’d tend to use them a lot.  
On the other hand, a day-long firefight in a town would attract pretty much every Z in the area, possibly even pulling some from nearby towns.  
I’m pretty committed to zombies being static as the default, whether it’s at a large or small scale.  
The main thing about population density will be real cities, and specifically apartment complexes. Once we have some high-density housing for zombies to start in, the numbers can be really large.

---

<div class="post-metadata">

**Author:** ![Goombah](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@Goombah](https://discourse.cataclysmdda.org/u/Goombah)\
**Post date:** [March 13, 2014, 7:01am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/44 "2014-03-13T07:01:40Z")

</div>

[quote=“Kevin Granade, post:43, topic:5388”]The simplest thing I can think of is to expand the current system, for noises over a threshold, check for nearby monster groups on the overmap and give them a chance to be attracted to the noise based on volume - distance.  
Most gunfire and explosions would attract groups from a long distance, but they’d move in the direction of a sound for a while, then forget about it and go back to wandering. Protracted firefights or frequent use of explosives would really attract them. Things like engines, generators, and power tools would attract them from a much smaller area, but do so more reliably since you’d tend to use them a lot.  
On the other hand, a day-long firefight in a town would attract pretty much every Z in the area, possibly even pulling some from nearby towns.  
I’m pretty committed to zombies being static as the default, whether it’s at a large or small scale.  
The main thing about population density will be real cities, and specifically apartment complexes. Once we have some high-density housing for zombies to start in, the numbers can be really large.[/quote]

That will definitely help, yeah. I know there’s a strong strain of ‘But I cleared this area, so it should stay cleared’ feeling that runs through some discussions. And I hardly blame people for that. At the same time, however, rendering an area completely safe is ultimately, imo, bad for gameplay. Even if you clear an area around you, 99% of the population was still zombified, and they SHOULD be wandering around and will eventually pass on by.

In fact, I’d like to argue that there ought to be the possibility to set off an explosion to lure every zombie that you can to an area in the hopes they’ll just /wander off that-way/.

I dunno. I’m just rambling here at this point. xD

It’s just that, otherwise, you do wind up with the ‘zombie proof fortt that never gets atacked because you killed all the zombies’, and what fun is that?

---

<div class="post-metadata">

**Author:** ![Inadequate](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@Inadequate](https://discourse.cataclysmdda.org/u/Inadequate)\
**Post date:** [March 13, 2014, 7:09am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/45 "2014-03-13T07:09:37Z")

</div>

Really, though, if cumulative noise or a similar system is implemented, there has to be a way to lure zombie hordes to other places with loud noises. Not with a hundred percent accuracy, but at least to a reasonable degree. Otherwise, there isn’t a substantial difference between cumulative noise and zombie hordes automatically honing in on you. On top of that you’ve already got church bells and such implemented in the game.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [March 13, 2014, 7:13am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/46 "2014-03-13T07:13:32Z")

</div>

> [@Kevin Granade](#):
>
> One thing I’d like it to do is have existing zombies loaded back into something similar to a spawn group for this purpose when the player moves out of range.

I try to find code responsible for saving zombie position, but i not find it.

All my progress in this branch:  
[https://github.com/Reaper42/Cataclysm-DDA/tree/hordes](https://github.com/Reaper42/Cataclysm-DDA/tree/hordes)

---

<div class="post-metadata">

**Author:** ![Sanarr](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sanarr](https://discourse.cataclysmdda.org/u/Sanarr)\
**Post date:** [March 13, 2014, 7:53am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/47 "2014-03-13T07:53:20Z")

</div>

Good to see some improvements on the “horde” way.

I like “noise attraction” concept, but there might also be some random horde movements, either. So even a quitest char could sometimes notice the horde of Z’s passing by. Or standing in front of his housing, waiting to tear him apart. It is never safe in Cataclysm, especialy with 99 zombification of everyone.

About explanation of such random movements - it is extradimensional ooze, so it migh have its own needs to send some of its remote hosts somewhere. Something like that.

About starting the game with hordes spawned in big cities - very good idea, to my mind.

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [March 13, 2014, 8:21am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/48 "2014-03-13T08:21:37Z")

</div>

Random movement would definitely be a thing, and could be explained by the simple fact of a zombie wandering off in a particular direction and attracting the others with the noise of his own passing, if nothing else.

---

<div class="post-metadata">

**Author:** ![Goombah](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@Goombah](https://discourse.cataclysmdda.org/u/Goombah)\
**Post date:** [March 13, 2014, 9:02am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/49 "2014-03-13T09:02:14Z")

</div>

[quote=“Sanarr, post:47, topic:5388”]Good to see some improvements on the “horde” way.

I like “noise attraction” concept, but there might also be some random horde movements, either. So even a quitest char could sometimes notice the horde of Z’s passing by. Or standing in front of his housing, waiting to tear him apart. It is never safe in Cataclysm, especialy with 99 zombification of everyone.

About explanation of such random movements - it is extradimensional ooze, so it migh have its own needs to send some of its remote hosts somewhere. Something like that.

About starting the game with hordes spawned in big cities - very good idea, to my mind.[/quote]

I definitely think there’s a sort of philisophical argument between people who say ‘I cleared this place and it should stay clear’ and those who think it should never be /completely/ safe, no matter how much clearing you’ve done.

---

<div class="post-metadata">

**Author:** ![Inadequate](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@Inadequate](https://discourse.cataclysmdda.org/u/Inadequate)\
**Post date:** [March 13, 2014, 10:11am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/50 "2014-03-13T10:11:52Z")

</div>

As it stands, it never is ‘completely’ clear even in the current implementation. Regular wildlife exists, and zombears and zombdogs are a perpetual problem wherever you wander. Not that those have anything to do with hordes, but you get my drift.

---

<div class="post-metadata">

**Author:** ![HeadWar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/headwar/32/2685_2.png) [@HeadWar](https://discourse.cataclysmdda.org/u/HeadWar)\
**Post date:** [March 13, 2014, 11:02am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/51 "2014-03-13T11:02:39Z")

</div>

> [@Goombah](#):
>
> I definitely think there’s a sort of philisophical argument between people who say ‘I cleared this place and it should stay clear’ and those who think it should never be /completely/ safe, no matter how much clearing you’ve done.

Make them switchable, much like the static/dynamic spawns?

---

<div class="post-metadata">

**Author:** ![BeigeSand](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@BeigeSand](https://discourse.cataclysmdda.org/u/BeigeSand)\
**Post date:** [March 13, 2014, 11:29am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/52 "2014-03-13T11:29:51Z")

</div>

> [@Reaper](#):
>
> [quote=“Kevin Granade, post:28, topic:5388”]One thing I’d like it to do is have existing zombies loaded back into something similar to a spawn group for this purpose when the player moves out of range.

I try to find code responsible for saving zombie position, but i not find it.

All my progress in this branch:  
[https://github.com/Reaper42/Cataclysm-DDA/tree/hordes[/quote]](https://github.com/Reaper42/Cataclysm-DDA/tree/hordes%5B/quote%5D)  
I was under the assumption it was under creature\_tracker.cpp  
Could be wrong though.

---

<div class="post-metadata">

**Author:** ![Goombah](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@Goombah](https://discourse.cataclysmdda.org/u/Goombah)\
**Post date:** [March 13, 2014, 1:05pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/53 "2014-03-13T13:05:47Z")

</div>

> [@Inadequate](#):
>
> As it stands, it never is ‘completely’ clear even in the current implementation. Regular wildlife exists, and zombears and zombdogs are a perpetual problem wherever you wander. Not that those have anything to do with hordes, but you get my drift.

This is true as well, yeah.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [March 13, 2014, 1:40pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/54 "2014-03-13T13:40:29Z")

</div>

Ok. I think i do something…

[https://github.com/Reaper42/Cataclysm-DDA/tree/hordes](https://github.com/Reaper42/Cataclysm-DDA/tree/hordes)

Technically It not hordes. It is moving zombie respawn point. But i think it must works as hordes.  
In start “hordes” walk around cities. It have target (tx,ty) and interest to target (by default-30). Every 50 turns “hordes” move to target with chance = interest percents. If player makes \> 20 noice all hordes in range makes-20 sets target as noice coordinats (with some chance) and sets interest = ((noice-20)-range)\*5 (max range-140). Chance to change target determined by currect horde interest, noice level and range to noice.

---

<div class="post-metadata">

**Author:** ![jimboblordofeskimos](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jimboblordofeskimos/32/2_2.png) [@jimboblordofeskimos](https://discourse.cataclysmdda.org/u/jimboblordofeskimos)\
**Post date:** [March 13, 2014, 1:48pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/55 "2014-03-13T13:48:54Z")

</div>

Id love to at least see this as a mod. Static is getting a little stale, im interested in doing some fortifying in the non static spawn mode, this would be a welcome addition

---

<div class="post-metadata">

**Author:** ![dwarfkoala](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dwarfkoala/32/9_2.png) [@dwarfkoala](https://discourse.cataclysmdda.org/u/dwarfkoala)\
**Post date:** [March 13, 2014, 2:20pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/56 "2014-03-13T14:20:30Z")

</div>

FYI for everyone, GlyphGryph made a doc about what the devs want in a future dynamic difficulty system over here:

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/4977>
>
> \*\*Zombie Replacement/Advancement\*\*
> Right now, all special zombies that spawn on …the map spawn at the start of the game. The game should have all zombies spawn as regular zombies and, over time, we would like these zombies to be replaced by special zombies in larger numbers, until a certain density of special types is reached, depending on conditions.
> 
> I'd recommend a system to "mark" zombies upon being spawned with a time and type to change to, and if they are encountered after that time they get replaced.
> 
> \*\*Conditional Zombie Replacement and Zone Zombie Replacement\*\*
> We could also add additional zombie types later in the game, such as those mentioned here: http://smf.cataclysmdda.com/index.php?topic=4077.0
> These monsters should only spawn under certain limited conditions. Which zombies and the frequency they appear should be tied to specific cities and area of cities, rather than the generalized building system we have now. So you may run across a city that has made a LOT of spitter zombies, or one that's just crawling in Brutes. The zombies in the thread above should only appear in specific "zones" (but in high numbers in those zones), and only after a certain amount of time has passed.
> 
> \*\*Zombie Mobs\*\* 
> Here's the big one - we want "mobs" to form, a sort of overmap group (a visible one, like the old NPCs) that moves around on the overmap "picking up" and "dropping off" zombies as it goes, moving a few squares a day. Whenever one of those "mobs" moves into a players range (or the player moves into the mobs range) it should spawn the entirety of the zombie contents. When the zombies de-spawn they are added back to the Mob, which doesn't move until the player has left it's range or the last monster has died (at which point it is destroyed)
> 
> \*\*Zombie Immune Response\*\*
> When a player kills many zombies in an area, this will trigger an "immune response" in the Netherum colony. Zombie mobs may spawn from off map, already containing many zombies, and should be programmed to move to the place where the zombie massacre occured (before resuming normal roaming behaviour). This response can only be triggered every so often, and there should be a delay before the mob appears (where it is assumed the forces are gathering off-map and coming from very far away).
> 
> \*\*Faction Expansion\*\*
> Monstrous Factions (Triffid Colonies, Fungal Blooms, Ant Colonies, Beehives) should be able to grow over time, and 'take over' nearby areas. There should also be a way to prune them back, if such a way doesn't exist.
> 
> \*\*Faction Multiplication\*\*
> Monstrous factions should be able to form "Mobs" that are given a location on the map and work their way towards it at which point they create a new source for that faction. Some of these mobs should be single creatures, while others may be more than that.
> See http://smf.cataclysmdda.com/index.php?topic=2113.msg26507#msg26507 for details about factions and the means they'd use for multiplication. Triffids use "seed bearers" that create new Hearts, the Mycus uses infected organisms of various types, while Bee and Ant colonies will create "swarms" to start new faction areas. There should be one or more "special monsters" in each of these mobs. If killed, the Mob is disbanded, does not finish going to it's location, and it's members should soon die off.

Excerpt about zombie mobs:

> Zombie Mobs Here's the big one - we want "mobs" to form, a sort of overmap group (a visible one, like the old NPCs) that moves around on the overmap "picking up" and "dropping off" zombies as it goes, moving a few squares a day. Whenever one of those "mobs" moves into a players range (or the player moves into the mobs range) it should spawn the entirety of the zombie contents. When the zombies de-spawn they are added back to the Mob, which doesn't move until the player has left it's range or the last monster has died (at which point it is destroyed)

From what I can tell, your implementation of zombie hordes acts as a good stopgap between the current clear-a-place-forever behavior, but does spawn all the zombies when in the vicinity of the horde. There will, of course, be more work required to complete horde behavior but i’m anticipating playing with your “horde” system.

---

<div class="post-metadata">

**Author:** ![dwarfkoala](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dwarfkoala/32/9_2.png) [@dwarfkoala](https://discourse.cataclysmdda.org/u/dwarfkoala)\
**Post date:** [March 13, 2014, 2:22pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/57 "2014-03-13T14:22:52Z")

</div>

He’s also PR’d it under [https://github.com/CleverRaven/Cataclysm-DDA/pull/6611](https://github.com/CleverRaven/Cataclysm-DDA/pull/6611). If you’d like to help speed up the merging process, we’re always looking for people to test the functionality and report on balance.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [March 13, 2014, 2:32pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/58 "2014-03-13T14:32:59Z")

</div>

Coordinats and other info of hordes may see in debog menu (Hordes debug)

---

<div class="post-metadata">

**Author:** ![Gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@Gideon](https://discourse.cataclysmdda.org/u/Gideon)\
**Post date:** [March 13, 2014, 4:17pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/59 "2014-03-13T16:17:17Z")

</div>

I have a question related to creatures finding the player:

Do creatures see you farther away at night if you have an active light source? You can see someone using a flashlight long before they are close enough to put you in to their field of light.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [March 13, 2014, 4:32pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/60 "2014-03-13T16:32:56Z")

</div>

Of course you can use this to divert zomie hordes, that’s a major part of it.  
The implementation sounds reasonable (haven’t had time to look at it yet), so this will likely be going in as the basis for hordes (and soon).  
Light attracting zombies at night has crossed my mind, but to be fair there are other light sources, so we’d need to track those as well. Really loud sounds happening at random don’t seem likely, so I’m not concerned about that, but if the player with a flashlight attracts zombies from all over and a vehicle with its lights left on doesn’t, well that’s a problem.  
The despawn code is in game.cpp in despawn\_monsters(). It’s a bit tricky.  
I don’t see a need to have this toggleable independent of zombies in general, it’s part of the threat. In fact once this is working properly dynamic spawn mode is going away, this is the last feature static spawn needed to reach feature parity. If someone wants to make something of dynamic that’s fine, but as of right now no one is showing any interest in doing so.

[Previous page](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388.md?page=2)

[Next page](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388.md?page=4)
