# Clouds are not going away inside interiors

**URL:** <https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109>\
**Category:** The Garage\
**Created:** [December 19, 2015, 12:39am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109 "2015-12-19T00:39:36Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 12:39am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/1 "2015-12-19T00:39:36Z")

</div>

Pretty self-explanatory title… I remember this bug from previous versions and it’s just as obnoxious/game-breaking now as it was then.

---

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 12:42am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/2 "2015-12-19T00:42:18Z")

</div>

Oops, just realized 2.8.12 is not the version number. It’s 0.C-8099, though I don’t think this matters too much, as this has been present for several versions now.

---

<div class="post-metadata">

**Author:** ![pisskop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pisskop/32/1327_2.png) [@pisskop](https://discourse.cataclysmdda.org/u/pisskop)\
**Post date:** [December 19, 2015, 12:43am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/3 "2015-12-19T00:43:31Z")

</div>

I dont undertand what you mean. Are you expecting los to improve indoors without artificial lighting?

---

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 1:35am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/4 "2015-12-19T01:35:02Z")

</div>

> [@pisskop](#):
>
> I dont undertand what you mean. Are you expecting los to improve indoors without artificial lighting?

Uh… no. Clouds. Like the ones that bloated zombies and smoke zombies create when they explode. They don’t go away after the zombies die; ‘hazy clouds’ remain in place permanently inside interior structures instead of dissipating.

---

<div class="post-metadata">

**Author:** ![pisskop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pisskop/32/1327_2.png) [@pisskop](https://discourse.cataclysmdda.org/u/pisskop)\
**Post date:** [December 19, 2015, 1:59am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/5 "2015-12-19T01:59:15Z")

</div>

Try sleeping and driving through them. I use diesel engines inside just fine.

---

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 2:00am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/6 "2015-12-19T02:00:59Z")

</div>

> [@pisskop](#):
>
> Try sleeping and driving through them. I use diesel engines inside just fine.

Interesting, thanks for the tip. 🙂

---

<div class="post-metadata">

**Author:** ![BeerBeer](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BeerBeer](https://discourse.cataclysmdda.org/u/BeerBeer)\
**Post date:** [December 19, 2015, 11:51am UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/7 "2015-12-19T11:51:19Z")

</div>

I’ve witnessed something similar recently, but in my case it was a zombie grenadier and teargas grenades down in a lab. It seemed like the teargas would linger abnormally long. Then I started opening doors next to the teargas cloud, allowing it to spread, and then it was gone pretty fast. Is this similar to your case? Does the gas cloud exist in a tight space with nowhere to spread?

---

<div class="post-metadata">

**Author:** ![CIB](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/cib/32/903_2.png) [@CIB](https://discourse.cataclysmdda.org/u/CIB)\
**Post date:** [December 19, 2015, 12:07pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/8 "2015-12-19T12:07:09Z")

</div>

So the complaint is that gases in closed rooms don’t magically vanish? 😉

---

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 3:51pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/9 "2015-12-19T15:51:21Z")

</div>

> [@BeerBeer](#):
>
> I’ve witnessed something similar recently, but in my case it was a zombie grenadier and teargas grenades down in a lab. It seemed like the teargas would linger abnormally long. Then I started opening doors next to the teargas cloud, allowing it to spread, and then it was gone pretty fast. Is this similar to your case? Does the gas cloud exist in a tight space with nowhere to spread?

Nope, I don’t think so. I’ve tried opening doors and it didn’t go away.

> [@CIB](#):
>
> So the complaint is that gases in closed rooms don’t magically vanish? 😉

There’s no reason to be a jerk. I’ve played this game for years and this has been a legitimate issue before, which was ostensibly fixed at some point. It’s not a matter of “magically vanish”, nor is it a matter of “closed rooms”. I reported this after witnessing several clouds of gas sit in rooms with broken windows and open doors for literally hours at a time.

---

<div class="post-metadata">

**Author:** ![CIB](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/cib/32/903_2.png) [@CIB](https://discourse.cataclysmdda.org/u/CIB)\
**Post date:** [December 19, 2015, 4:06pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/10 "2015-12-19T16:06:30Z")

</div>

Ah, I see. I was assuming that because I’ve noticed the “smoke sticking around forever” thing myself, and I actually liked it because opening a door/window always resolved it for me.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [December 19, 2015, 4:40pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/11 "2015-12-19T16:40:21Z")

</div>

Currently there is no wind per se. All “wind” does is cooling down the player who is in the open.  
Gases in the open disperse fast, independently of the wind. The rate of dispersion depends on the gas.

If someone wrote a “wind propagation algorithm”, we could have realistic venting. But wind algorithm would probably be quite hard, especially considering that it would have to be pretty efficient (so no cellular automata like Dwarf Fortress water/lava).  
Until then, areas that are outside have wind, ones that are inside do not have wind.

---

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 6:27pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/12 "2015-12-19T18:27:48Z")

</div>

Ah, I see. I thought this had been fixed for some reason but maybe I’m just imagining things.

Shouldn’t it be possible to just use open windows/doors to detect whether a room is adjacent to an exterior that offers an opening for wind to come in, and then create a “wind ratio” based on the size of the room versus the number of open windows/doors? I.e., for every say 20 interior spaces, a window/door would allow gas dispersion on a 1:1 ratio. Anything less than that and you’ll start to see a slowdown (but obviously not as slow as having everything closed).

I don’t think detecting adjacent rooms is too hard from a roguelike/algorithmic perspective, pretty sure I’ve written similar code before in dungeon generators.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [December 19, 2015, 8:15pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/13 "2015-12-19T20:15:54Z")

</div>

> [@Dorian](#):
>
> Shouldn’t it be possible to just use open windows/doors to detect whether a room is adjacent to an exterior that offers an opening for wind to come in, and then create a “wind ratio” based on the size of the room versus the number of open windows/doors?

That would be a massive simplification, but it could work.  
It wouldn’t be trivial to add, though. We’d need to cache it, have proper signals to recalculate it, later update it to 3D etc.

---

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://discourse.cataclysmdda.org/u/Dorian)\
**Post date:** [December 19, 2015, 8:26pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/14 "2015-12-19T20:26:36Z")

</div>

[quote=“Coolthulhu, post:13, topic:11109”]That would be a massive simplification, but it could work.  
It wouldn’t be trivial to add, though. We’d need to cache it, have proper signals to recalculate it, later update it to 3D etc.[/quote]

It is definitely a simplification, but then again when you’re doing simulation on the level of C:DDA, pretty much everything you do is coming up with believable simplifications.

I didn’t consider 3D spaces… that definitely adds a layer of complexity.

---

<div class="post-metadata">

**Author:** ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)\
**Post date:** [December 20, 2015, 7:18pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/15 "2015-12-20T19:18:34Z")

</div>

air volume in given space… square footage equivalent of open space from room (say… window = 1 unit, doors 2 or 3 missing wall/ smashed wall 6) double dispertion speed for openings on different sides, x5 for openings on opposite sides.

Something “simple” like that should make implementation easier… though still a bit of a project.

---

<div class="post-metadata">

**Author:** ![scorpion451](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/scorpion451/32/11266_2.png) [@scorpion451](https://discourse.cataclysmdda.org/u/scorpion451)\
**Post date:** [December 23, 2015, 4:16pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/16 "2015-12-23T16:16:11Z")

</div>

Ooo! This could allow realistic fire backdrafts when opening doors on or windows into or out of burning rooms!

_gets pelted with rocks_

---

<div class="post-metadata">

**Author:** ![ZoneWizard](https://avatars.discourse-cdn.com/v4/letter/z/c6cbf5/32.png) [@ZoneWizard](https://discourse.cataclysmdda.org/u/ZoneWizard)\
**Post date:** [December 27, 2015, 8:33pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/17 "2015-12-27T20:33:45Z")

</div>

Why would gas have to be 3d? What I mean is, gas can remain as a 2d object like an explosion works now. The strongest point is the center. The weakest the outer rim, moving outwards. Except it won’t damage anything. Slow it down and each item has lower values until it is removed when it can move out of an area, such as windows/doors etc.

Degradation would just be slower for trapped gas and how thick. As buildings are not air tight, trapped gas would take like 5-10 hours or something.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [December 27, 2015, 8:51pm UTC](https://discourse.cataclysmdda.org/t/clouds-are-not-going-away-inside-interiors/11109/18 "2015-12-27T20:51:27Z")

</div>

> [@ZoneWizard](#):
>
> Why would gas have to be 3d?

Because some day 3D will be the mainline, so all options have to be either naturally 3D or easy to translate into 3D.
