Core/Movement: follow movements will now throttle the follower's speed in a more aggressive manner to get them back in line more quickly when moving ahead
This commit is contained in:
1 parent
a84733a02c
commit
749fdc06d1
1 file changed
+1
-1
@@ -132,7 +132,7 @@ bool FollowMovementGenerator::Update(Unit* owner, uint32 diff)
|
||||
else if (distance > (velocity / 2))
|
||||
{
|
||||
// We are beyond our destination, throttle movement to fall back
|
||||
float distMod = 1.f - std::min<float>((distance - (velocity / 2)) * 0.1f, 0.5f);
|
||||
float distMod = 1.f - std::min<float>((distance - (velocity / 2)), 0.5f);
|
||||
velocity *= distMod;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user