Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Flows should push objects on lower z-levels too  (Read 1524 times)

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Flows should push objects on lower z-levels too
« on: September 21, 2008, 03:11:32 am »

The way flows push stuff around is cool, but it has some oddities.  One of them is that a flowing body of water deeper than 7/7, i.e. two z-levels deep, doesn't push items lying on the bottom.  This is a consequence (I think) of the fluid simulation DF uses, in which 7/7 water is basically static except for the input/output points.  But I think there's a relatively easy way to fix this particular issue:

When fluid on the TOP z-level is flowing, every time it would be pushing an item on the top z-level, it should ALSO push any items directly below it.  The push "strength" could drop off with depth to allow for the effect of a slower-moving bottom.

It's kind of a hack-ish solution but it would make flows work more logically.  However, it wouldn't fix the problem of a 7/7 flow on a single z-level not pushing items inside it, which is probably harder to tackle. 
« Last Edit: September 21, 2008, 03:13:33 am by Footkerchief »
Logged