Help With SendCharacterStatePacket

05/11/2021 00:14 macnn50#1
Edit : Fixed
05/11/2021 01:03 MrCrisp#2
Your range is too large. Make smaller steps.
05/11/2021 01:05 macnn50#3
Quote:
Originally Posted by MrCrisp View Post
Your range is too large. Make smaller steps.
D2DVECTOR FakeCord;
FakeCord.x = playerCord.x+150;
FakeCord.y = abs(playerCord.y) + 150;
05/11/2021 14:15 ones-and-zer0es.mpeg#4
Quote:
Originally Posted by macnn50 View Post
D2DVECTOR FakeCord;
FakeCord.x = playerCord.x+150;
FakeCord.y = abs(playerCord.y) + 150;
Code:
inline float DISTANCE_SQRT(long dx, long dy)
{
    return ::sqrt((float)dx * dx + (float)dy * dy);
}
cant be larger then 40 on mount, 25 on foot - +150 +150 is a lot larger then +/- 25
05/11/2021 21:38 MrCrisp#5
Quote:
Originally Posted by ones-and-zer0es.mpeg View Post
Code:
inline float DISTANCE_SQRT(long dx, long dy)
{
    return ::sqrt((float)dx * dx + (float)dy * dy);
}
cant be larger then 40 on mount, 25 on foot - +150 +150 is a lot larger then +/- 25
I think those are "PixelPositions". So you have to divide them by 100.0f to get the "real" coordinates.