Replication and Move Managers PLEASE HELP!!!
by John Williams · in Technical Issues · 09/12/2002 (5:36 pm) · 0 replies
Hello all,
I have been looking into the Network Code for sometime now and have a pretty good understanding of how things work with creating a NetConnection and establishing the client/server model through the script code example.
But I having a hard time understanding the Replication code and Movement code. After a client is spawned and the mission loaded(also let's say the player is Ghostable Always set) - does the server create a 'identical' object of the player and then GHOST the server player object to other clients?
And how is the move manager used? Is it used to do a form of prediction to reduce lag? The client accumulates snapshots of the players movement and then sends it over to the server while at the same time it is using the movement snapshots to perform the camera movment. And if there is any server force acting on the server object, the server adjusts the client's position.
Is the correct? If not, can someone help explain to me how this works? Also, is the Ghosted information just a state update to all other clients?
Thanks!
John
I have been looking into the Network Code for sometime now and have a pretty good understanding of how things work with creating a NetConnection and establishing the client/server model through the script code example.
But I having a hard time understanding the Replication code and Movement code. After a client is spawned and the mission loaded(also let's say the player is Ghostable Always set) - does the server create a 'identical' object of the player and then GHOST the server player object to other clients?
And how is the move manager used? Is it used to do a form of prediction to reduce lag? The client accumulates snapshots of the players movement and then sends it over to the server while at the same time it is using the movement snapshots to perform the camera movment. And if there is any server force acting on the server object, the server adjusts the client's position.
Is the correct? If not, can someone help explain to me how this works? Also, is the Ghosted information just a state update to all other clients?
Thanks!
John