Open scr267 opened 5 years ago
That the player is pulled is intended but he shouldn't end up in a node.
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.
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.)
I'll get back to you on that one. It's recent but I better double check.
Ahhh, now I see the problem.
>_< mvps pulling has multiple problems.
Pushing/pulling has been a little buggy for a long time (there is a reason I have to use a minecart on fast elevators)
Thanks both of you for the update. I might give a shot at making a small change.
The new add_player_velocity
method could be used to push and pull a player.
https://github.com/minetest/minetest/commit/cf64054390970f3cf974afb2b174340a3e1da382
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!