Core/Movement: Allow setting position or object facing targets for jump movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/ac73edc268bc8d5bbda9f4b05168e3e24c25ca45)
This commit is contained in:
@@ -468,14 +468,6 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
public void JumpTo(WorldObject obj, float speedZ, bool withOrientation = false)
|
||||
{
|
||||
float x, y, z;
|
||||
obj.GetContactPoint(this, out x, out y, out z);
|
||||
float speedXY = GetExactDist2d(x, y) * 10.0f / speedZ;
|
||||
GetMotionMaster().MoveJump(x, y, z, GetAbsoluteAngle(obj), speedXY, speedZ, EventId.Jump, withOrientation);
|
||||
}
|
||||
|
||||
public void UpdateSpeed(UnitMoveType mtype)
|
||||
{
|
||||
int main_speed_mod = 0;
|
||||
|
||||
Reference in New Issue
Block a user