Pets seem to run until within 35 units of you

This was at 75 before, testing on live puts this closer to 35
This commit is contained in:
Michael Cook (mackal) 2018-03-01 16:15:57 -05:00 committed by GitHub
parent 28cb11f521
commit 1beb221337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -929,7 +929,7 @@ void Client::AI_Process()
SendPositionUpdate(); // this shouldn't happen a lot (and hard to make it) so lets not rate limit SendPositionUpdate(); // this shouldn't happen a lot (and hard to make it) so lets not rate limit
} else if (dist >= 400) { // >=20 } else if (dist >= 400) { // >=20
if (AI_movement_timer->Check()) { if (AI_movement_timer->Check()) {
int nspeed = (dist >= 5625 ? GetRunspeed() : GetWalkspeed()); // >= 75 int nspeed = (dist >= 1225 ? GetRunspeed() : GetWalkspeed()); // >= 35
animation = nspeed; animation = nspeed;
nspeed *= 2; nspeed *= 2;
SetCurrentSpeed(nspeed); SetCurrentSpeed(nspeed);
@ -1425,7 +1425,7 @@ void Mob::AI_Process() {
if (dist >= 400 || distz > 100) if (dist >= 400 || distz > 100)
{ {
int speed = GetWalkspeed(); int speed = GetWalkspeed();
if (dist >= 5625) if (dist >= 1225) // 35
speed = GetRunspeed(); speed = GetRunspeed();
if (dist >= 202500 || distz > 100) // dist >= 450 if (dist >= 202500 || distz > 100) // dist >= 450