LibsDisguises
LibsDisguises copied to clipboard
Mob offset after undisguising
I'm using MythicMobs and ModelEngine on a mob, and having it perform a skill that has it disguise as an invisible entity, then undisguising itself.
After it performs the skill, the entity will sometimes appear offset from its actual location, which also makes the model on ModelEngine look like it's in a different spot from where it's suppose to be.
I did a bit of experimenting and the entity's ai would act as if it's in the spot the custom model is at, so I think it's an issue with the Undisguising part.
Image Example:
Skill used:
shadow_dodge: Skills: - disguise{d="Dropped_Item setSelfDisguiseVisible true setItemStack air"} @self - lunge{velocity=10;velocityY=0} - delay 10 - undisguise @self
Are you able to provide a video or something of some sort. And preferably, replicate this without the use of other plugins.
Aight here's the vid, I used a command block to place particles at the actual location of the entity. It seems like the offset is determined by the speed of the entity when it's disguised, which is why I did the command when it was moving, and also probably why the offset in the vid is a lot smaller than the one in the image.
Also sorry for how dark it is I forgot to set to day lol
https://user-images.githubusercontent.com/67652147/176757128-3cc6976a-53a9-438a-80cc-014c579731fb.mp4
Interesting. I'm not sure I can fix it?
My best bet is that there's something playing up with the packet order, such as the movement originally being after the spawn. But thanks to my meddling, now being before the new spawn packet.
Not sure this is really something that'll be fixed without a large rewrite.