mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Performance] Auto Idle / AFK (#4903)
* [Performance] AFK Client Packet Filtering * Player feedback * Update client_packet.cpp * Fixes * Streamline updates to SetAFK * Decouple idling and AFK and manual AFK * Reset clock timer when we take AFK or idle off * Exclude bard songs in non combat zones from resetting timer * GM exclusion adjustments
This commit is contained in:
@@ -839,6 +839,10 @@ void MobMovementManager::SendCommandToClients(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (c->IsIdle()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
_impl->Stats.TotalSent++;
|
||||
|
||||
if (anim != 0) {
|
||||
@@ -879,6 +883,10 @@ void MobMovementManager::SendCommandToClients(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (c->IsIdle()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
float distance = c->CalculateDistance(mob->GetX(), mob->GetY(), mob->GetZ());
|
||||
|
||||
bool match = false;
|
||||
|
||||
Reference in New Issue
Block a user