mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 13:38:21 +00:00
Lower animation throttle frequency
This commit is contained in:
+9
-7
@@ -115,7 +115,7 @@ Mob::Mob(
|
||||
tmHidden(-1),
|
||||
mitigation_ac(0),
|
||||
m_specialattacks(eSpecialAttacks::None),
|
||||
attack_anim_timer(1000),
|
||||
attack_anim_timer(500),
|
||||
position_update_melee_push_timer(500),
|
||||
hate_list_cleanup_timer(6000),
|
||||
mob_scan_close(6000),
|
||||
@@ -1645,21 +1645,23 @@ void Mob::ShowStats(Client* client)
|
||||
}
|
||||
}
|
||||
|
||||
void Mob::DoAnim(const int animnum, int type, bool ackreq, eqFilterType filter) {
|
||||
if (!attack_anim_timer.Check())
|
||||
void Mob::DoAnim(const int animnum, int type, bool ackreq, eqFilterType filter)
|
||||
{
|
||||
if (!attack_anim_timer.Check()) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto outapp = new EQApplicationPacket(OP_Animation, sizeof(Animation_Struct));
|
||||
Animation_Struct* anim = (Animation_Struct*)outapp->pBuffer;
|
||||
auto *anim = (Animation_Struct *) outapp->pBuffer;
|
||||
anim->spawnid = GetID();
|
||||
|
||||
if(type == 0){
|
||||
if (type == 0) {
|
||||
anim->action = animnum;
|
||||
anim->speed = 10;
|
||||
anim->speed = 10;
|
||||
}
|
||||
else {
|
||||
anim->action = animnum;
|
||||
anim->speed = type;
|
||||
anim->speed = type;
|
||||
}
|
||||
|
||||
entity_list.QueueCloseClients(
|
||||
|
||||
Reference in New Issue
Block a user