Core/Movement: add velocity argument for spline chains to control their speed since there are some cases (especially for flying units) that use a different velocity than their current speed values allow
This commit is contained in:
1 parent
5fe3a1f7f9
commit
14a2770f2b
5 files changed
+16
-10
No files matched your search
@@ -95,8 +95,8 @@ void SystemMgr::LoadScriptSplineChains()
|
||||
|
||||
m_mSplineChainsMap.clear();
|
||||
|
||||
// 0 1 2 3 4
|
||||
QueryResult resultMeta = WorldDatabase.Query("SELECT entry, chainId, splineId, expectedDuration, msUntilNext FROM script_spline_chain_meta ORDER BY entry asc, chainId asc, splineId asc");
|
||||
// 0 1 2 3 4 5
|
||||
QueryResult resultMeta = WorldDatabase.Query("SELECT entry, chainId, splineId, expectedDuration, msUntilNext, velocity FROM script_spline_chain_meta ORDER BY entry asc, chainId asc, splineId asc");
|
||||
// 0 1 2 3 4 5 6
|
||||
QueryResult resultWP = WorldDatabase.Query("SELECT entry, chainId, splineId, wpId, x, y, z FROM script_spline_chain_waypoints ORDER BY entry asc, chainId asc, splineId asc, wpId asc");
|
||||
if (!resultMeta || !resultWP)
|
||||
@@ -122,7 +122,8 @@ void SystemMgr::LoadScriptSplineChains()
|
||||
|
||||
uint32 expectedDuration = fieldsMeta[3].GetUInt32();
|
||||
uint32 msUntilNext = fieldsMeta[4].GetUInt32();
|
||||
chain.emplace_back(expectedDuration, msUntilNext);
|
||||
float velocity = fieldsMeta[5].GetFloat();
|
||||
chain.emplace_back(expectedDuration, msUntilNext, velocity);
|
||||
|
||||
if (splineId == 0)
|
||||
++chainCount;
|
||||
|
||||
Reference in new issue
Block a user