26.02.2010, 13:36
Quote:
Originally Posted by braduz
Happens with bots, if there in a car and you make an obstruction it passes though it and drives at 70-80 degrees for a while
Id say for sync sa-mp 2 was alot better wtf did they do to the sync? |
Imagine this situation: Player A, and Player B are driving around in a server. Player B is downloading stuff using most of his bandwidth, and therefore lagging. Player A is car-surfing on Player B's car. Player B uses the handbrake and makes a 180є turn. Now, since Player B is pretty much lagging, there will be some packetloss, so the car would suddently turn from a 20є facing angle to 120є, and then to 200є. Just those three packets.
If the car position was updated just like that, the movement will be extremly sharp, and Player A would most likely fall, and the Player B's turning will look just weird.
Then, to avoid this, I think that SA-MP attempts to make those angle changes smoother, by gradually setting the angle to the correct position, and not doing it just at once. Then, Player A will see Player B's turn a lot more smooth (since even although just 3 packets were sent with the car's angle, the rest of the turning angles were calculated by SA-MP's client) and most likely not fall.
Or at least that's how I think that it works.