Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

NPC rotation issues

Open Brokkonaut opened this issue 10 years ago • 30 comments

In the latest version player npcs don't look at you if /npc lookclose is activated. They just look in the same direction all the time. Even with /npc tphere they don't change the direction they are looking at.

Brokkonaut avatar Nov 24 '16 00:11 Brokkonaut

As with every Citizens build something that was working fine has to be broken. I dont think the people actually submitting the code are actually testing it so here you go I will help. Here are two instances of how broken lookclose is now.

First: https://i.gyazo.com/a80af88a1b3fff5318c8ef4717f4d113.gif

Look Close works best when they actually look at you. Which every npc no longer does.

Second: https://i.gyazo.com/738f95bc71275be3295de355007340ce.gif

You gave a few too many drinks to my perfectly fine snowman. What is wrong with him?

drekryan avatar Nov 24 '16 05:11 drekryan

Sorry @drekryan our lead developer is rather busy and doesn't always have time to test as thoroughly as possible. Thankfully, users like you two are here to point out what was missed and help us get it fixed :)

mcmonkey4eva avatar Nov 24 '16 05:11 mcmonkey4eva

Try latest build?

fullwall avatar Nov 25 '16 11:11 fullwall

@fullwall @mcmonkey4eva Please reopen this. I am still having both issues mentioned in my comment on this issue. There is literally no change between the previous build and the latest.

drekryan avatar Nov 26 '16 00:11 drekryan

Now it is more bugged than before.. they just circle the head around (but don't look at the player) and the body does not rotate at all

Brokkonaut avatar Nov 26 '16 02:11 Brokkonaut

Try latest build @Brokkonaut.

@drekryan sorry, got thrown off by the issue title.

fullwall avatar Nov 26 '16 02:11 fullwall

Still not working for all NPCs. Some NPCs with lookclose just rotate around very fast - But now also the body rotates.. I think it depends on the direction you approach them, if they will rotate or look at you.

Edit: Maybe it works now, after some minutes of rotating they stopped and now correctly look at me. I am currently no longer able to reproduce the rotating behaviour

Brokkonaut avatar Nov 26 '16 06:11 Brokkonaut

I have the sam problem with lookclose command ... they just go crazy and dont look at you at all ... pls fix asap :)

ghost avatar Nov 26 '16 10:11 ghost

Seems to affect 1.10 as well! (On latest Citizens build)

mcmonkey4eva avatar Nov 26 '16 10:11 mcmonkey4eva

#977

Exactly my issue too.

Sikatsu avatar Nov 26 '16 11:11 Sikatsu

Same issue, Player NPCs do not rotate properly. Mob-type NPCs do rotate correctly in respect to the yaw, but their pitch is broken. If I stand one block above it, it will look one block below me.

ghost avatar Nov 26 '16 13:11 ghost

The pitch bug should be fixed in build 1439. Working on spinning.

fullwall avatar Nov 26 '16 14:11 fullwall

Try build 1440 for a possible spinning fix.

fullwall avatar Nov 26 '16 15:11 fullwall

Tested with a Villager NPC with latest build. It doesn't look at the player properly half the time, and its head movement in respect to the yaw is not fluid. Its head rotation in respect to the pitch is working fine, though.

UPDATE: Tested with a Skeleton NPC. Its head rotates strangely and does not fix on one spot at all. The pitch is okay.

ghost avatar Nov 26 '16 15:11 ghost

@MusicScore build 1441? works for me.

fullwall avatar Nov 26 '16 15:11 fullwall

Villager NPCs still do not rotate properly. Rigorous testing on a Skeleton/Zombie NPC makes its head violently snap at random angles. Player NPCs apparently do not rotate their heads at all. Player NPC bodies rotate at a constant rate, and do not correlate to the position of the actual player. EDIT: Note that I'm using Spgiot 1.10.2

ghost avatar Nov 26 '16 15:11 ghost

Try 1442 for the villager bug, I am aware that player NPC bodies aren't ending up square to their target, just need to figure out where in the Minecraft code that is.

fullwall avatar Nov 26 '16 15:11 fullwall

Villager rotation is okay. It's still jumpy/nonfluid in respect to the yaw, but its rotation is accurate. UPDATE: Tested with Zombie and Skeleton. They have the same rotation pattern/issue as the Villager, and they do not break after rigorous testing. UPDATE 2: Tested with Player NPC. The body rotates correctly. The head does not rotate at all. UPDATE 3: Expanding testing to other types of mobs. I will return with a list of mobs that do not have correct rotation patterns. UPDATE 3.1:

  • Horses, Magma Cubes, Slimes, and Ghasts do not rotate all the way to keep up with the player. They will stop at some point, then slide into the correct rotation.
  • Enderdragons do not rotate at all.
  • Guardians do not rotate at all.
  • Endermites and Silverfishes only keep up with the player if the player is directly in front of them. When the player moves to the sides/behind the entity, the entity starts violently rotating at random angles.
  • Polar Bears and Bats have a very lagged response. They rotate at a very slow rate.

On an unrelated note, Squids have a tendency to start trying to slide away before it corrects its position. This is not a big issue, but I thought I'd mention it.

ghost avatar Nov 26 '16 15:11 ghost

Agreed that the title of this issue doesn't really fit what the issue has turned into. It doesn't just happen to player NPCs as the title states. It's a much bigger issue than just that. However I felt it was best to tack my findings under it instead of opening a new issue. The wording of the title couldn't hurt from being updated however

drekryan avatar Nov 26 '16 16:11 drekryan

What's the status on this issue?

drekryan avatar Nov 28 '16 08:11 drekryan