Author Topic: [Feedback] Falling damage and Goomba Stomp  (Read 2250 times)

Offline Yankes

  • Commander
  • *****
  • Posts: 3194
    • View Profile
[Feedback] Falling damage and Goomba Stomp
« on: April 07, 2022, 03:09:07 pm »
As I toy with move types and flying I conclude that current handling of falling is not satisfactory.

I think of adding option for damaging unit when it fall from heights bigger than 1 level, question is how should it be calculated and what it should "damage"?
Another thing is that falling unit always can knock out lower unit, even when its lot bigger and stronger unit, at least 2x2 units should withstand 1x1 unit and small one should be knockout instead.

Any thoughts on this topic?
« Last Edit: February 12, 2023, 12:30:18 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #1 on: April 07, 2022, 04:27:33 pm »
Falling damage would be good, but first let me ask, how to prevent the AI from killing itself by jumping off roofs? Would you modify the AI itself to prevent this?

Offline Yankes

  • Commander
  • *****
  • Posts: 3194
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #2 on: April 07, 2022, 04:45:07 pm »
Same way as it currently handling fire, if there is no other way, AI will try jump from building but if there is reasonable path it will choose it.

Offline Delian

  • Colonel
  • ****
  • Posts: 240
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #3 on: April 07, 2022, 04:48:41 pm »
I like the existing behavior where you can jump off of buildings without taking damage, because walking back downstairs is annoying, especially because in practice walking downstairs should be faster than walking upstairs, but due to map limitations it costs the same.

Goomba Stomps I think shouldn't be possible, the existing handling where a unit moves away makes logical sense - it makes sense that a unit on the ground would try to evade the unit falling on them. Besides, such a move is basically a melee attack, and we already have working CQC functionality.

As far as damage goes, I think a certain percentage should come from the weight of the unit's corpse item, and a certain percentage from the weight of the non-builtin items the unit is wearing, and the final damage should be reduced based on the unit's bottom armor.

I also think that a good idea would be for a fall to consume a small amount of energy and produce stun damage.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #4 on: April 07, 2022, 08:07:17 pm »
Same way as it currently handling fire, if there is no other way, AI will try jump from building but if there is reasonable path it will choose it.

Ah, good idea.

I like the existing behavior where you can jump off of buildings without taking damage, because walking back downstairs is annoying, especially because in practice walking downstairs should be faster than walking upstairs, but due to map limitations it costs the same.

It's a valid point, but I personally don't mind this.

As far as damage goes, I think a certain percentage should come from the weight of the unit's corpse item, and a certain percentage from the weight of the non-builtin items the unit is wearing, and the final damage should be reduced based on the unit's bottom armor.

But what if it's a giant fluffy marshmallow weighing 50 units? :D

Offline Yankes

  • Commander
  • *****
  • Posts: 3194
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #5 on: April 07, 2022, 09:05:50 pm »
btw currently there is Goomba Stomp, this happens when unit can't avoid falling unit, when this happens unit below will be instant stun.

Offline N7Kopper

  • Captain
  • ***
  • Posts: 59
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #6 on: April 24, 2022, 07:31:51 pm »
btw currently there is Goomba Stomp, this happens when unit can't avoid falling unit, when this happens unit below will be instant stun.
Neither you nor the AI (ally or enemy) can order stomps to happen, they can only happen due to the ground a unit is standing on ceasing to exist without having an appropriate Fly or Swim movement type. Correct me if I'm wrong, but I don't think you can even use the fog of war to order stomps, because the pathfinding accounts for hidden units too. So the stomp mechanic isn't an actual intended attack, but merely an error handler to prevent two units from occupying the same space. Just KO the unit with the lower Z value ;)

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #7 on: April 24, 2022, 07:48:43 pm »
Neither you nor the AI (ally or enemy) can order stomps to happen, they can only happen due to the ground a unit is standing on ceasing to exist without having an appropriate Fly or Swim movement type. Correct me if I'm wrong, but I don't think you can even use the fog of war to order stomps, because the pathfinding accounts for hidden units too. So the stomp mechanic isn't an actual intended attack, but merely an error handler to prevent two units from occupying the same space. Just KO the unit with the lower Z value ;)

The pathfinding does not account for hidden units.
So, in theory, you can use the fog of war to "order" a stomp... but the likelihood it actually happens in very VERY low:
a/ as you walk the fog of war will likely disappear, unless you make yourself or the enemy vertically tiny (to prevent seeing them from diagonally above)
b/ even if you somehow manage that, there's still 8 neighboring tiles, where the enemy will be pushed before it would be stomped

Another, almost equally hard to do attempt, is to blow up just the floor below a unit and let it fall on another unit (that cannot be forced into any neighboring tile).

But you are correct, stomp "mechanic" is designed only as means of preventing 2 standing units occupying the same tile.
If it happens, enjoy it, you've won a small lottery :)

As I toy with move types and flying I conclude that current handling of falling is not satisfactory.

I think of adding option for damaging unit when it fall from heights bigger than 1 level, question is how should it be calculated and what it should "damage"?
Another thing is that falling unit always can knock out lower unit, even when its lot bigger and stronger unit, at least 2x2 units should withstand 1x1 unit and small one should be knockout instead.

Any thoughts on this topic?

To be honest, I like it the way it is.

If you want to add more features here, make them optional/configurable please.

Offline N7Kopper

  • Captain
  • ***
  • Posts: 59
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #8 on: April 24, 2022, 07:53:19 pm »
The pathfinding does not account for hidden units.
So, in theory, you can use the fog of war to "order" a stomp... but the likelihood it actually happens in very VERY low:
a/ as you walk the fog of war will likely disappear, unless you make yourself or the enemy vertically tiny (to prevent seeing them from diagonally above)
b/ even if you somehow manage that, there's still 8 neighboring tiles, where the enemy will be pushed before it would be stomped

Another, almost equally hard to do attempt, is to blow up just the floor below a unit and let it fall on another unit (that cannot be forced into any neighboring tile).

But you are correct, stomp "mechanic" is designed only as means of preventing 2 standing units occupying the same tile.
If it happens, enjoy it, you've won a small lottery :)

To be honest, I like it the way it is.

If you want to add more features here, make them optional/configurable please.

It's not? Maybe I'm getting the Mandela Effect; I distinctly remember using the move previewer to scout crashed UFOs. :P

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [Discussion] Falling damage and Goomba Stomp
« Reply #9 on: April 24, 2022, 08:16:51 pm »
Here's a video proof (attached mp4).