mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Lower animation throttle frequency
This commit is contained in:
parent
30067f9b6d
commit
05113aab7d
10
zone/mob.cpp
10
zone/mob.cpp
@ -115,7 +115,7 @@ Mob::Mob(
|
|||||||
tmHidden(-1),
|
tmHidden(-1),
|
||||||
mitigation_ac(0),
|
mitigation_ac(0),
|
||||||
m_specialattacks(eSpecialAttacks::None),
|
m_specialattacks(eSpecialAttacks::None),
|
||||||
attack_anim_timer(1000),
|
attack_anim_timer(500),
|
||||||
position_update_melee_push_timer(500),
|
position_update_melee_push_timer(500),
|
||||||
hate_list_cleanup_timer(6000),
|
hate_list_cleanup_timer(6000),
|
||||||
mob_scan_close(6000),
|
mob_scan_close(6000),
|
||||||
@ -1645,12 +1645,14 @@ void Mob::ShowStats(Client* client)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mob::DoAnim(const int animnum, int type, bool ackreq, eqFilterType filter) {
|
void Mob::DoAnim(const int animnum, int type, bool ackreq, eqFilterType filter)
|
||||||
if (!attack_anim_timer.Check())
|
{
|
||||||
|
if (!attack_anim_timer.Check()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto outapp = new EQApplicationPacket(OP_Animation, sizeof(Animation_Struct));
|
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();
|
anim->spawnid = GetID();
|
||||||
|
|
||||||
if (type == 0) {
|
if (type == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user