Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: An interesting occurance  (Read 1369 times)

gigaraptor487

  • Bay Watcher
  • Escaped Lunatic now civilised
    • View Profile
An interesting occurance
« on: March 24, 2014, 02:46:49 pm »

We had an ambush from goblins, and naturally, the marksdwarves charged in. While many were promptly killed(although the melee unit finished them off), one was particularly interesting. He was pushed by a goblin into the river, where he was fell down a waterfall that goes down 10 z levels, and he survived. However, the fall broke his arms and legs, and promptly drowned. Has something like this happened to you?

Also, is it natural for kittens and babies to suicide charge goblins? I have no mods other than a tileset.
Logged
Hehe, you thought there would be an interesting sig here

I now run a program which brings old multiplayer games back to life : click

Larix

  • Bay Watcher
    • View Profile
Re: An interesting occurance
« Reply #1 on: March 24, 2014, 03:49:15 pm »

Falling physics have changed fundamentally from earlier versions. Surviving a ten-z drop is pretty normal now, especially if the victim lands in water. The deepest drop i'd have a dwarf survive long-term (i.e. got stitched together and made a full recovery) was 16z onto a stone floor. Dwarfs falling down a waterfall usually die from drowning nowadays.
Logged

Khorinis

  • Bay Watcher
    • View Profile
Re: An interesting occurance
« Reply #2 on: March 24, 2014, 05:03:32 pm »

We had an ambush from goblins, and naturally, the marksdwarves charged in. While many were promptly killed(although the melee unit finished them off), one was particularly interesting. He was pushed by a goblin into the river, where he was fell down a waterfall that goes down 10 z levels, and he survived. However, the fall broke his arms and legs, and promptly drowned. Has something like this happened to you?

Also, is it natural for kittens and babies to suicide charge goblins? I have no mods other than a tileset.

one of my dwarves dodged off a cliff in a cavern and fell down I think 30 z levels but he survived, but almost every bone in his body was broken, by the time someone rescued him eventually he had already fallen into a food hunger coma and died of starvation in the hospital bed, he didn't die of thirst because he could drink his own blood on the cavern floor lol
Logged

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: An interesting occurance
« Reply #3 on: March 25, 2014, 06:25:52 am »

Falling physics used to be awesome!

I remember a fort of mine shortly after z-levels were added. I was experimenting wildly with multi-level structures, and, predictably, had a dwarf fall off. He fell a long, long way and exploded.

just like a vin diesel movie
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

TruePikachu

  • Bay Watcher
  • Accomplished System Administrator
    • View Profile
    • cDusto (my personal server)
Re: An interesting occurance
« Reply #4 on: March 25, 2014, 09:00:49 pm »

Generally, if something isn't implemented in a game engine, but it needs to be, it is implemented in a placeholder form to be fixed later. That seems to be exactly the case with trajectory physics in DF. When Z-levels were added, trajectories weren't in the game, so a placeholder was put into play, being the 34.07- (?) fall physics. Later on, when trajectories were actually in the engine, they were used for falls as well.

I imagine (but won't confirm since DF is too much of a mess for me to disassemble (due to the optimizer used)) that it was planned for quite some time to have actual trajectories, so some function was added:
Code: [Select]
void Entity::doTrajectory(double xVel, double yVel, double zVel);
(yes, I know this isn't how the structures/classes had been written up, but I'm just making a point), and later, when minecarts were added,  the function body was rewritten, so more than just minecarts could utilize the functionality.
Logged
He likes Pokémon, composing ≡«☼characters☼»≡, Windows for its compatability, Linux for its security, and Pikachu for its electric capabilities. When possible, he prefers to consume pasta. He absolutely detests Apple.

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: An interesting occurance
« Reply #5 on: March 25, 2014, 11:05:46 pm »

Falling 26 z-levels in open air, which takes 40 ticks (time units) to accomplish, causes creatures to explode. Falling in water will cause them to slow down.

We know almost all the mechanics behind the new 3D velocities - the information is just scattered across a dozen forum posts here and there.

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: An interesting occurance
« Reply #6 on: March 26, 2014, 01:34:17 am »

Falling 26 z-levels in open air, which takes 40 ticks (time units) to accomplish, causes creatures to explode. Falling in water will cause them to slow down.
I can still explode things? Awesome. Now I have to build a fortress with the sole purpose of covering the ground in blood.
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: An interesting occurance
« Reply #7 on: March 26, 2014, 02:25:58 am »

Falling 26 z-levels in open air, which takes 40 ticks (time units) to accomplish, causes creatures to explode. Falling in water will cause them to slow down.
I can still explode things? Awesome. Now I have to build a fortress with the sole purpose of covering the ground in blood.

If ANY "new projectile", such as a dropped/dumped item, minecart, or projectile "shotgunned" from a minecart hits a creature and the item is heavier than the creature, the creature will be propelled as fast as the object was going. If the item is fast enough and there is a wall/floor close by, the creature can hit it and explode.

To recap: If you chuck a heavy boulder from 30z up, it can land on someone and cause them to explode. Same thing happens if you pinch someone against a wall with a heavy supersonic minecart.