Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: vito on Apr 21, 2017, 06:00 AM

Title: Need info about limits.
Post by: vito on Apr 21, 2017, 06:00 AM
What is the limit of time in:

object.MoveTo( Vector pos, int time );
object.RotateTo( rotation, time )

I'm asking because I saw in some cases objects moving too fast (unexpected).
Title: Re: Need info about limits.
Post by: EK.IceFlake on Apr 21, 2017, 06:21 AM
Most likely 2147483647 (2^32/2-1).
Title: Re: Need info about limits.
Post by: vito on Apr 21, 2017, 07:07 AM
https://www.youtube.com/watch?v=YEoNd4QYPCs#

Note 1000*70 moving much faster than 1000*60, so maybe it's 65536
Title: Re: Need info about limits.
Post by: EK.IceFlake on Apr 21, 2017, 12:01 PM
Quote from: vito on Apr 21, 2017, 07:07 AMNote 1000*70 moving much faster than 1000*60, so maybe it's 65536
If your theory is right, it should move in 4464ms on 1000*70.
Which is exactly what happened.
Therefore, your theory is right.