mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/SAI: Added param PointId to SMART_ACTION_MOVE_OFFSET (#28555)
This commit is contained in:
@@ -1196,7 +1196,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
x = pos.GetPositionX() + (std::cos(o - (M_PI / 2))*e.target.x) + (std::cos(o)*e.target.y);
|
||||
y = pos.GetPositionY() + (std::sin(o - (M_PI / 2))*e.target.x) + (std::sin(o)*e.target.y);
|
||||
z = pos.GetPositionZ() + e.target.z;
|
||||
target->ToCreature()->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, x, y, z);
|
||||
target->ToCreature()->GetMotionMaster()->MovePoint(e.action.moveOffset.PointId, x, y, z);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -568,7 +568,7 @@ enum SMART_ACTION
|
||||
SMART_ACTION_GAME_EVENT_STOP = 111, // GameEventId
|
||||
SMART_ACTION_GAME_EVENT_START = 112, // GameEventId
|
||||
SMART_ACTION_START_CLOSEST_WAYPOINT = 113, // wp1, wp2, wp3, wp4, wp5, wp6, wp7
|
||||
SMART_ACTION_MOVE_OFFSET = 114,
|
||||
SMART_ACTION_MOVE_OFFSET = 114, // PointId
|
||||
SMART_ACTION_RANDOM_SOUND = 115, // soundId1, soundId2, soundId3, soundId4, soundId5, onlySelf
|
||||
SMART_ACTION_SET_CORPSE_DELAY = 116, // timer
|
||||
SMART_ACTION_DISABLE_EVADE = 117, // 0/1 (1 = disabled, 0 = enabled)
|
||||
@@ -1072,6 +1072,11 @@ struct SmartAction
|
||||
uint32 wps[SMART_ACTION_PARAM_COUNT];
|
||||
} closestWaypointFromList;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 PointId;
|
||||
} moveOffset;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 sounds[4];
|
||||
|
||||
Reference in New Issue
Block a user