[BUG][PLAYER][DORMANT] Projectile skills malfunction if thrower is teleported

Started by namida, December 06, 2020, 09:50:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

namida

This will be fixed if/when one or both of the projectile skills is confirmed for stable.

Steps to reproduce:

1. Send a lemming through a teleporter.
2. Assign a thrower to another lemming within this teleporter's trigger area, such that the lemming will be teleported before the projectile leaves his hand.
3. Watch what happens.

What should happen here is obvious, I just need to figure out how to make it happen.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem


namida

There's three lemmings down the bottom (the two at the back are very close together). When the second lemming is standing in the teleporter's trigger area, assign one of the projectile skills to him. (This level is not included in the exp download because I only created it earlier today.)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem


namida

What's happening is that, while the lemming is in the teleporter, the projectile constantly moves by the amount it would move by on the current frame of the lemming's animation. (It needs to do this, rather than just jumping to fixed positions, as part of the interim terrain detections.) Because the lemming's animation isn't updating (as it's in the teleporter)... well, you can figure the rest. Indeed, if the projectile hasn't hit something by the time the lemming comes out the other side, it should resume the normal path (from its current position at the time, not the lemming's actual position) once the lemming does come out.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)