[SPIGOT-436] Camera/Spectate API Created: 17/Jan/15 Updated: 09/Jun/15 Resolved: 08/Jun/15 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Jörn D. | Assignee: | md_5 |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
It's verry bad and buggy if you want to set the camera/view for a player. This API will set the camera/view for a player. |
Comments |
Comment by Joel Paulien [ 09/Jun/15 ] |
Perfect, only you only made it possible to set a target, not get the target back from Player, which can help a lot in plugins. Could this be done? |
Comment by Jörn D. [ 07/Jun/15 ] |
It would be even nice if you can't open the spectator menu. Because if you use the api in minigames the user should 'stay' in the person and shouldn't teleport away with the spectator menu. |
Comment by md_5 [ 07/Jun/15 ] |
Pull request opened. |
Comment by Jörn D. [ 23/Jan/15 ] |
I don't use the packet, I use the method attack(Entity e) in the EntityPlayer.class. |
Comment by MCShamrock [ 22/Jan/15 ] |
@Jörn D. So the problem is that in GameMode.SPECTATOR when spectating an entity that moves away, the camera perspective doesn't move along? Did I get this right? If yes, for which camera perspectives is the bug? What happens when you set the packet and how do you send it? The camera packet is to tell the client to move the camera to the eyes of a given entity. Not to toggle first/third person. |
Comment by Jörn D. [ 22/Jan/15 ] |
In general yes, but when you interact with an entity in Gamemode 3 you can spectate him. |
Comment by Zeryther [ 22/Jan/15 ] |
I don't understand.. do you mean: p.setGameMode(GameMode.SPECTATOR); ? |
Comment by Jörn D. [ 18/Jan/15 ] |
If the player you're spectating moves some chunks away (from the location you started to spectate -> view distance) you stop spectating and start to jerk. |
Comment by MCShamrock [ 18/Jan/15 ] |
How exactly does it bug? I guess if this packet is the only option how to do it and sending it directly via NMS is buggy, no server software can fix that since the packet is the only possibility. |
Comment by Jörn D. [ 18/Jan/15 ] |
I want to set the first/third person. It's possible with this packet: http://wiki.vg/Protocol#Camera, but it's very buggy |
Comment by MCShamrock [ 18/Jan/15 ] |
What exactly do you mean? Do you want to change:
|