Re-enable other state messages in move tree
This commit is contained in:
parent
cc2cd1e1c9
commit
950c64bee9
@ -264,37 +264,37 @@ public class GroundMovementTree {
|
|||||||
// 1
|
// 1
|
||||||
// )
|
// )
|
||||||
// );
|
// );
|
||||||
// Globals.dataCellManager.sendNetworkMessageToChunk(
|
Globals.dataCellManager.sendNetworkMessageToChunk(
|
||||||
// EntityMessage.constructmoveUpdateMessage(
|
EntityMessage.constructmoveUpdateMessage(
|
||||||
// parent.getId(),
|
parent.getId(),
|
||||||
// System.currentTimeMillis(),
|
System.currentTimeMillis(),
|
||||||
// (float)newPosition.x,
|
(float)position.x,
|
||||||
// (float)newPosition.y,
|
(float)position.y,
|
||||||
// (float)newPosition.z,
|
(float)position.z,
|
||||||
// movementVector.x,
|
movementVector.x,
|
||||||
// movementVector.y,
|
movementVector.y,
|
||||||
// movementVector.z,
|
movementVector.z,
|
||||||
// velocity,
|
velocity,
|
||||||
// 1
|
1
|
||||||
// ),
|
),
|
||||||
// Globals.serverWorldData.convertRealToChunkSpace(newPosition.x),
|
Globals.serverWorldData.convertRealToChunkSpace(position.x),
|
||||||
// Globals.serverWorldData.convertRealToChunkSpace(newPosition.z)
|
Globals.serverWorldData.convertRealToChunkSpace(position.z)
|
||||||
// );
|
);
|
||||||
} else if(Globals.RUN_CLIENT && parent.getId() == Globals.clientCharacterID){
|
} else if(Globals.RUN_CLIENT && parent.getId() == Globals.clientCharacterID){
|
||||||
// Globals.clientConnection.queueOutgoingMessage(
|
Globals.clientConnection.queueOutgoingMessage(
|
||||||
// EntityMessage.constructmoveUpdateMessage(
|
EntityMessage.constructmoveUpdateMessage(
|
||||||
// parent.getId(),
|
parent.getId(),
|
||||||
// System.currentTimeMillis(),
|
System.currentTimeMillis(),
|
||||||
// (float)newPosition.x,
|
(float)position.x,
|
||||||
// (float)newPosition.y,
|
(float)position.y,
|
||||||
// (float)newPosition.z,
|
(float)position.z,
|
||||||
// movementVector.x,
|
movementVector.x,
|
||||||
// movementVector.y,
|
movementVector.y,
|
||||||
// movementVector.z,
|
movementVector.z,
|
||||||
// velocity,
|
velocity,
|
||||||
// 1
|
1
|
||||||
// )
|
)
|
||||||
// );
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SLOWDOWN:
|
case SLOWDOWN:
|
||||||
@ -340,37 +340,37 @@ public class GroundMovementTree {
|
|||||||
// 2
|
// 2
|
||||||
// )
|
// )
|
||||||
// );
|
// );
|
||||||
// Globals.dataCellManager.sendNetworkMessageToChunk(
|
Globals.dataCellManager.sendNetworkMessageToChunk(
|
||||||
// EntityMessage.constructmoveUpdateMessage(
|
EntityMessage.constructmoveUpdateMessage(
|
||||||
// parent.getId(),
|
parent.getId(),
|
||||||
// System.currentTimeMillis(),
|
System.currentTimeMillis(),
|
||||||
// (float)newPosition.x,
|
(float)position.x,
|
||||||
// (float)newPosition.y,
|
(float)position.y,
|
||||||
// (float)newPosition.z,
|
(float)position.z,
|
||||||
// movementVector.x,
|
movementVector.x,
|
||||||
// movementVector.y,
|
movementVector.y,
|
||||||
// movementVector.z,
|
movementVector.z,
|
||||||
// velocity,
|
velocity,
|
||||||
// 2
|
2
|
||||||
// ),
|
),
|
||||||
// Globals.serverWorldData.convertRealToChunkSpace(newPosition.x),
|
Globals.serverWorldData.convertRealToChunkSpace(position.x),
|
||||||
// Globals.serverWorldData.convertRealToChunkSpace(newPosition.z)
|
Globals.serverWorldData.convertRealToChunkSpace(position.z)
|
||||||
// );
|
);
|
||||||
} else if(Globals.RUN_CLIENT && parent.getId() == Globals.clientCharacterID){
|
} else if(Globals.RUN_CLIENT && parent.getId() == Globals.clientCharacterID){
|
||||||
// Globals.clientConnection.queueOutgoingMessage(
|
Globals.clientConnection.queueOutgoingMessage(
|
||||||
// EntityMessage.constructmoveUpdateMessage(
|
EntityMessage.constructmoveUpdateMessage(
|
||||||
// parent.getId(),
|
parent.getId(),
|
||||||
// System.currentTimeMillis(),
|
System.currentTimeMillis(),
|
||||||
// (float)newPosition.x,
|
(float)position.x,
|
||||||
// (float)newPosition.y,
|
(float)position.y,
|
||||||
// (float)newPosition.z,
|
(float)position.z,
|
||||||
// movementVector.x,
|
movementVector.x,
|
||||||
// movementVector.y,
|
movementVector.y,
|
||||||
// movementVector.z,
|
movementVector.z,
|
||||||
// velocity,
|
velocity,
|
||||||
// 2
|
2
|
||||||
// )
|
)
|
||||||
// );
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDLE:
|
case IDLE:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user