[Include] MoveObject Position Simulator
#1

MoveObject Position Simulator!
__________________________________________________ __________________________________________________

All you need to do to make it work it include it after a_samp. It's that simple. The functions (MoveObject, GetObjectPos, and GetObjectRot) are hooked and ready to use. The position and rotations returned are very precise estimates of where the object should be. Do not be fooled in-game if it seems to be off, object movements are client sided and laggy already (not due to this include). The positions and rotations are only estimated when the object is moving so anything else will be unaffected.
__________________________________________________ __________________________________________________

Download here!
Reply
#2

Calculation are done server sided. Objects are placed client sided, I guess.
Reply
#3

Yes, but try rotation. It returns the rotation that the object is going to instead of it's current. This returns an estimate. The topic may have been misleading.
Reply
#4

One think you need to add is setting the objects position before it is moved again. On some clients it might still be moving and get badly out of sync so when an object stops moving set the position of that object to make sure it is synced.
Reply
#5

Well, this is just a wrapper. It still calls the normal MoveObject. It's not meant to improve the movement or anything. It's just to give a good rotation return since the GetObjectRot wouldn't return the correct rotations when objects are moving.
Reply
#6

Nice one for debugging my gates awesome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)