MyEntities icon indicating copy to clipboard operation
MyEntities copied to clipboard

players can't collide with each other

Open ghost opened this issue 3 years ago • 10 comments

Describe the bug when u get close to a player u can't go through him it pushes u away and sometimes pushes him away too

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior you go through the player

Screenshots

Additional Infos

  • Version of Pocketmine: 3.15.0
  • Version of the Plugin: 0.1.2

ghost avatar Aug 15 '20 08:08 ghost

weird it disappeared after a restart, closing for being unproducable..

ghost avatar Aug 15 '20 09:08 ghost

Have a nice day 👍

benda95280 avatar Aug 15 '20 17:08 benda95280

confirmed!

steps to reproduce: 1- spawn a head entity 2- walk toward it and let it push u back 3- boom!, the whole server players can no longer go through each other! they all get pushed back as if it was a head they are trying to go through.

EDIT: it goes back to normal after server restart, it only happens after a player tries to go through a head entity spawned by MyEntities plugin.

ghost avatar Aug 16 '20 01:08 ghost

Could you give me the configuration of the Head ?

benda95280 avatar Aug 16 '20 09:08 benda95280

MyEntities.zip

ghost avatar Aug 16 '20 17:08 ghost

I can tell you why this happens. In order to make the block/skull type entities work, the players collision flag will be enabled. All pushing is done client side.

This means if 2 players collided with a MyEntities entity that acts as a block, they will start colliding with each other.

As far as i know i added a description of this behavior in the README of the pull request/new version.

inxomnyaa avatar Aug 17 '20 09:08 inxomnyaa

No crazy bug, no magic 'boom' but an intentional feature.

You could add some code to disable the collision detection flag when you collide with a player entity. I didn't so that in this plugin so players will not suddenly glich through solid entities

inxomnyaa avatar Aug 17 '20 09:08 inxomnyaa

You could add some code to disable the collision detection flag when you collide with a player entity.

i don't know how to do that, can u provide a code for it or make it optional in the config?

ghost avatar Aug 17 '20 17:08 ghost

An option would be great, but i am currently busy with Nethergames

inxomnyaa avatar Aug 19 '20 14:08 inxomnyaa

I could take a look. @thebigsmileXD Could you tell me where it's enabled in MYE ?

benda95280 avatar Aug 19 '20 15:08 benda95280