Open vocksel opened 8 years ago
For right now, I think we're going to have to settle with allowing the client to teleport freely and work on server-side checks later. I want to get started on the UI soon and I don't have time to think about making sure the user can perform an action.
A new issue should be created and this issue should be dedicated to handling teleportation actions client-side.
This is going to be worked on in future versions. We have a lot of changes in the commit history already and this feature is going to be a fairly large undertaking. We want to get a new release out soon so this will be put on the back burner for a little while.
For example, instead of the having the user fire
WaveStationUsed
so the server can move them to the Sky Wave, client would teleport immediately, and the server would check afterwards if this interaction was allowed. If the user was exploiting and firedWaveStationUsed
from across the map, the server would teleport them back to their last position.Currently a method of handling this hasn't been decided on. Potential solutions:
lastPosition
variable to compare with the new position)Keep in mind that a user could be flung suddenly. If that happens we need to make sure the server doesn't think it was an illegal movement.
View the comments on Trello.