mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
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:
parent
28cb11f521
commit
1beb221337
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user