# 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:** 11\
**Page:** 5

<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 15, 2014, 2:15am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/81 "2014-03-15T02:15:58Z")

</div>

loading static zombies into hordes when they go off map would have the effect rivet is asking for.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [March 15, 2014, 2:17am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/82 "2014-03-15T02:17:35Z")

</div>

[quote=“Fniff, post:77, topic:5388”]I think green Z on black background would make sense.

Thinking about it, some of this code could be used for NPCs. So you have people who go from place to place but stop and investigate noise/smoke/light.[/quote]

Re NPCs, yeah.

I’m pretty partial to using a background so whatever glyph we end up using is clearly NOT a note. With the new colored-map-notes code (just went in maybe a week ago?) any color and any letter on a black background could be a comparatively harmless map note.

---

<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 15, 2014, 5:45am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/83 "2014-03-15T05:45:35Z")

</div>

> loading static zombies into hordes when they go off map would have the effect rivet is asking for.

I't not easy. First i do good, that began.

About zombies on overmap. I need something like this:

```auto
vector<mongroup> overmap::mongroup_at(int x, int y, int z)
```

I think i seen it yesterday, but can’t find it today…  
…and this:

```auto
bool overmap::los(int x,int y, int xt, int yt)
```

If it already coded - it’s good. Else i may code it. I don’t want code duplication.  
…and…

```auto
    static point omt_to_om_copy(const point& p) { return omt_to_om_copy(p.x, p.y); }
    static tripoint omt_to_om_copy(const tripoint& p);
    static void omt_to_om(int &x, int &y);
    static void omt_to_om(point& p) { omt_to_om(p.x, p.y); }
    static void omt_to_om(tripoint& p) { omt_to_om(p.x, p.y); }
    static point omt_to_om_remain(int &x, int &y);
    static point omt_to_om_remain(point& p) { return omt_to_om_remain(p.x, p.y); }
    // submap to overmap terrain
    static point sm_to_omt_copy(int x, int y);
    static point sm_to_omt_copy(const point& p) { return sm_to_omt_copy(p.x, p.y); }
    static tripoint sm_to_omt_copy(const tripoint& p);
    static void sm_to_omt(int &x, int &y);
    static void sm_to_omt(point& p) { sm_to_omt(p.x, p.y); }
    static void sm_to_omt(tripoint& p) { sm_to_omt(p.x, p.y); }
...
```

Someone may explain me cataclysm coordinate system? Any codedoc?

---

<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 15, 2014, 6:05am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/84 "2014-03-15T06:05:11Z")

</div>

> I think i seen it yesterday, but can't find it today..

Ok, i found it: [code]std::vector overmap::monsters\_at(int x, int y, int z)[/code]

---

<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 15, 2014, 7:04am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/85 "2014-03-15T07:04:55Z")

</div>

Thread in lab:  
[http://smf.cataclysmdda.com/index.php?topic=5735.0](http://smf.cataclysmdda.com/index.php?topic=5735.0)

---

<div class="post-metadata">

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

</div>

[quote=“Fniff, post:77, topic:5388”]I think green Z on black background would make sense.

Thinking about it, some of this code could be used for NPCs. So you have people who go from place to place but stop and investigate noise/smoke/light.[/quote]

That’s a good idea.

---

<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 15, 2014, 8:48am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/87 "2014-03-15T08:48:19Z")

</div>

> [@Zireael](#):
>
> That’s a good idea.

Included.

---

<div class="post-metadata">

**Author:** ![Pakislav](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pakislav](https://discourse.cataclysmdda.org/u/Pakislav)\
**Post date:** [March 15, 2014, 11:35am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/88 "2014-03-15T11:35:30Z")

</div>

> [@Reaper](#):
>
> Included.

Nice. You are getting shit done, and done good. I like that. 😉

---

<div class="post-metadata">

**Author:** ![Dominae](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dominae/32/53_2.png) [@Dominae](https://discourse.cataclysmdda.org/u/Dominae)\
**Post date:** [April 1, 2014, 10:12pm UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/89 "2014-04-01T22:12:50Z")

</div>

With the code in game right now, is there any way to effectively “win” against the horde mechanic? As in, survive it and wipe the horde out so they stop spawning for a while and the area you are in is “safe” again?

I swear I’ve killed dozens and dozens of spawned zombies and they just never end. I’ve had to ditch 3 bases now and all their contents because I’d awake in the morning to what was basically pages and pages of things spawned around me.

---

<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:** [April 2, 2014, 1:19am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/90 "2014-04-02T01:19:32Z")

</div>

theoretically yes, practically no.  
the horde implementation basically takes a town-sized spawn group from dynamic spawn and makes it wander around the map.  
I’m working on a more reasonable implementation, but it’s a lot more work than the quick hack we have now.

---

<div class="post-metadata">

**Author:** ![Dominae](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dominae/32/53_2.png) [@Dominae](https://discourse.cataclysmdda.org/u/Dominae)\
**Post date:** [April 2, 2014, 1:22am UTC](https://discourse.cataclysmdda.org/t/hordes-of-zombies-balance/5388/91 "2014-04-02T01:22:12Z")

</div>

[quote=“Kevin Granade, post:90, topic:5388”]theoretically yes, practically no.  
the horde implementation basically takes a town-sized spawn group from dynamic spawn and makes it wander around the map.  
I’m working on a more reasonable implementation, but it’s a lot more work than the quick hack we have now.[/quote]

Aaah, gotcha’. That explains a lot, I forgot it was dynamic spawn. I think the horde is basically self-propagating itself over and over. Zombie runs into parked car, bangs on it, dynamics take over? Bleh. Guess I’ll have to keep playing “on the run” in this save.

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