Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky piston dragging players #462

Open
scr267 opened this issue Apr 25, 2019 · 9 comments · May be fixed by #598
Open

Sticky piston dragging players #462

scr267 opened this issue Apr 25, 2019 · 9 comments · May be fixed by #598
Labels

Comments

@scr267
Copy link

scr267 commented Apr 25, 2019

When pulling blocks back to 'open a door' for example, sticky pistons seem to drag a player when it retracts, bringing the player inside a wall, or in some cases even behind it. Is that normal behaviour?

Thanks!

@scr267 scr267 changed the title Piston drags a player Sticky piston dragging players Apr 25, 2019
@Desour
Copy link
Contributor

Desour commented Apr 25, 2019

That the player is pulled is intended but he shouldn't end up in a node.

@scr267
Copy link
Author

scr267 commented Apr 25, 2019

There are two situations where that effect is rather unintended. On my server I have a space port where I open up a 'door' where basically blocks are pulled out of the way by sticky pistons. If the player is near the blocks they get dragged into the wall. Sometimes even behind the wall and fall into the 'mesecons' wiring in the back.

Another situation is where we tried to make a "trap" that uses 8 pistons to pull the floor out from underneath a player when it is detected. The player simply gets caught in the machinery instead.

@Desour
Copy link
Contributor

Desour commented Apr 25, 2019

Before I write anything else, I should probably ask if you are really sure, that you have the newest mesecons version installed. So, have you?
(The version from contentdb might be a bit outdated.)

@scr267
Copy link
Author

scr267 commented Apr 25, 2019

I'll get back to you on that one. It's recent but I better double check.

@Desour
Copy link
Contributor

Desour commented Apr 25, 2019

Ahhh, now I see the problem.

@Desour
Copy link
Contributor

Desour commented Apr 25, 2019

>_< mvps pulling has multiple problems.

  • Here is not checked, whether the player is really in the stack or just next to it:
    (obj_offset >= 0 and
    obj_offset <= #nodestack - 0.5) then
  • If the player is in front of a sticky piston, he will only be pulled if it's westwards (-X).
  • Stickyblocks might be another problem.

@benrob0329
Copy link

Pushing/pulling has been a little buggy for a long time (there is a reason I have to use a minecart on fast elevators)

@scr267
Copy link
Author

scr267 commented Apr 26, 2019

Thanks both of you for the update. I might give a shot at making a small change.

@numberZero numberZero added the bug label Jun 26, 2019
@HybridDog
Copy link
Contributor

The new add_player_velocity method could be used to push and pull a player.
minetest/minetest@cf64054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants