mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fix knockback vertical speed
This commit is contained in:
@@ -834,9 +834,9 @@ void PlayerbotAI::HandleBotOutgoingPacket(WorldPacket const& packet)
|
|||||||
float vcos, vsin, horizontalSpeed, verticalSpeed = 0.f;
|
float vcos, vsin, horizontalSpeed, verticalSpeed = 0.f;
|
||||||
|
|
||||||
p >> guid.ReadAsPacked() >> counter >> vcos >> vsin >> horizontalSpeed >> verticalSpeed;
|
p >> guid.ReadAsPacked() >> counter >> vcos >> vsin >> horizontalSpeed >> verticalSpeed;
|
||||||
// if (horizontalSpeed <= 0.1f) {
|
if (horizontalSpeed <= 0.1f) {
|
||||||
// horizontalSpeed = 0.11f;
|
horizontalSpeed = 0.11f;
|
||||||
// }
|
}
|
||||||
verticalSpeed = -verticalSpeed;
|
verticalSpeed = -verticalSpeed;
|
||||||
|
|
||||||
// stop casting
|
// stop casting
|
||||||
|
|||||||
Reference in New Issue
Block a user