mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[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:
parent
81d3368e29
commit
1871cf977f
6 changed files with 159 additions and 123 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue