Index: binaries/data/mods/public/simulation/components/UnitAI.js =================================================================== --- binaries/data/mods/public/simulation/components/UnitAI.js +++ binaries/data/mods/public/simulation/components/UnitAI.js @@ -1285,18 +1285,9 @@ "FLEEING": { "enter": function() { this.PlaySound("panic"); - - // Run quickly - this.SetMoveSpeed(this.GetRunSpeed()); - }, - - "HealthChanged": function() { - this.SetMoveSpeed(this.GetRunSpeed()); }, "leave": function() { - // Reset normal speed - this.SetMoveSpeed(this.GetWalkSpeed()); }, "MoveCompleted": function() { @@ -1583,11 +1574,6 @@ this.SetAnimationVariant("combat"); var cmpUnitAI = Engine.QueryInterface(this.order.data.target, IID_UnitAI); - if (cmpUnitAI && cmpUnitAI.IsFleeing()) - { - // Run after a fleeing target - this.SetMoveSpeed(this.GetRunSpeed()); - } this.StartTimer(1000, 1000); }, @@ -1595,12 +1581,9 @@ var cmpUnitAI = Engine.QueryInterface(this.order.data.target, IID_UnitAI); if (!cmpUnitAI || !cmpUnitAI.IsFleeing()) return; - this.SetMoveSpeed(this.GetRunSpeed()); }, "leave": function() { - // Reset normal speed in case it was changed - this.SetMoveSpeed(this.GetWalkSpeed()); // Show carried resources when walking. this.SetAnimationVariant();