mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Cracked the code on FixZ offsets
This commit is contained in:
parent
70a74d6615
commit
f7cc23d415
@ -849,6 +849,7 @@ void Mob::FixZ() {
|
|||||||
{
|
{
|
||||||
/* Any more than 5 in the offset makes NPC's hop/snap to ceiling in small corridors */
|
/* Any more than 5 in the offset makes NPC's hop/snap to ceiling in small corridors */
|
||||||
float new_z = this->FindGroundZ(m_Position.x, m_Position.y, 5);
|
float new_z = this->FindGroundZ(m_Position.x, m_Position.y, 5);
|
||||||
|
new_z += (this->GetSize() / 1.55);
|
||||||
|
|
||||||
auto duration = timer.elapsed();
|
auto duration = timer.elapsed();
|
||||||
|
|
||||||
@ -864,7 +865,7 @@ void Mob::FixZ() {
|
|||||||
duration
|
duration
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((new_z > -2000) && std::abs(m_Position.z - new_z) < 35) {
|
if ((new_z > -2000) && new_z != -999999) {
|
||||||
if (RuleB(Map, MobZVisualDebug))
|
if (RuleB(Map, MobZVisualDebug))
|
||||||
this->SendAppearanceEffect(78, 0, 0, 0, 0);
|
this->SendAppearanceEffect(78, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user