Skip to content

Commit 9aa2637

Browse files
AnonXSkillerwife
authored andcommitted
[SD] Improve Z Move Height for 15241,15242,22077,22122,22085,22089,21976
e.g (`id`, `map`, `position_x`, `position_y`, `position_z`) VALUES (21976, 530, 3007.99, 3668.72, 215.294); -- trigger 76909 Z=200.210 + 15
1 parent 15885f5 commit 9aa2637

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ struct npc_air_force_botsAI : public ScriptedAI
148148
if (pSummoned)
149149
{
150150
m_spawnedGuid = pSummoned->GetObjectGuid();
151-
pSummoned->GetMotionMaster()->MovePoint(1, m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ() + 10.0f, FORCED_MOVEMENT_FLIGHT);
151+
// sniffs point to per node individual scripting as the movers (15241,15242,22077,22122,22085,22089,21976) have different move heights at different locations, but mostly 15
152+
pSummoned->GetMotionMaster()->MovePoint(1, m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ() + 15.0f, FORCED_MOVEMENT_FLIGHT);
152153
}
153154

154155
else

0 commit comments

Comments
 (0)