mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 16:33:46 +00:00
move on slope
This commit is contained in:
@@ -146,7 +146,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
|
|||||||
// if (bot->Unit::IsFalling()) {
|
// if (bot->Unit::IsFalling()) {
|
||||||
// bot->Say("I'm falling", LANG_UNIVERSAL);
|
// bot->Say("I'm falling", LANG_UNIVERSAL);
|
||||||
// }
|
// }
|
||||||
float modified_z = z + 0.5f;
|
float modified_z = z + 5.0f;
|
||||||
bot->UpdateAllowedPositionZ(x, y, modified_z);
|
bot->UpdateAllowedPositionZ(x, y, modified_z);
|
||||||
// prevent falling when bot on slope
|
// prevent falling when bot on slope
|
||||||
if (modified_z < z - 20.0f) {
|
if (modified_z < z - 20.0f) {
|
||||||
|
|||||||
Reference in New Issue
Block a user