[10653] Implemented MSG_MOVE_KNOCK_BACK opcode

* Player's knockback movement now smooth and doesn't looks like teleporting
 * Cleanup WorldSession::HandleMovementOpcodes, separated opcode specific and generic movement handlers code
 * Handle Feign Death aura interrupting into more appropriate place
This commit is contained in:
SilverIce 2010-10-28 05:48:43 +03:00
parent 81d3368e29
commit 1871cf977f
6 changed files with 159 additions and 123 deletions

View file

@ -101,10 +101,10 @@ void MovementInfo::Read(ByteBuffer &data)
if(HasMovementFlag(MOVEFLAG_FALLING))
{
data >> j_velocity;
data >> j_sinAngle;
data >> j_cosAngle;
data >> j_xyspeed;
data >> jump.velocity;
data >> jump.sinAngle;
data >> jump.cosAngle;
data >> jump.xyspeed;
}
if(HasMovementFlag(MOVEFLAG_SPLINE_ELEVATION))
@ -146,10 +146,10 @@ void MovementInfo::Write(ByteBuffer &data) const
if(HasMovementFlag(MOVEFLAG_FALLING))
{
data << j_velocity;
data << j_sinAngle;
data << j_cosAngle;
data << j_xyspeed;
data << jump.velocity;
data << jump.sinAngle;
data << jump.cosAngle;
data << jump.xyspeed;
}
if(HasMovementFlag(MOVEFLAG_SPLINE_ELEVATION))