mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 03:58:27 +00:00
Better flee runspeed calculation.
Added two new NPC special_abilities, ALWAYS_FLEE and FLEE_PERCENT. Fixed an issue where a NPC could get stuck on a single coord in a rectangular roambox. Added mindelay to spawngroup to allow for greater control of the roambox delay. SQL is required.
This commit is contained in:
@@ -381,6 +381,14 @@ int main(int argc, char** argv) {
|
||||
entity_list.AddClient(client);
|
||||
}
|
||||
|
||||
uint8 IDLEZONETIME = 200;
|
||||
if ( numclients < 1 && temp_timer.GetDuration() != IDLEZONETIME )
|
||||
temp_timer.SetTimer(IDLEZONETIME);
|
||||
else if ( numclients > 0 && temp_timer.GetDuration() == IDLEZONETIME )
|
||||
{
|
||||
temp_timer.SetTimer(10);
|
||||
temp_timer.Trigger();
|
||||
}
|
||||
|
||||
//check for timeouts in other threads
|
||||
timeout_manager.CheckTimeouts();
|
||||
|
||||
Reference in New Issue
Block a user