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 @@ -1781,6 +1781,7 @@ }, "leave": function() { + this.ResetMoveSpeed(); // Show carried resources when walking. this.SetDefaultAnimationVariant(); @@ -1797,6 +1798,16 @@ if (this.GetStance().respondHoldGround) this.WalkToHeldPosition(); } + else + { + // Check if target does not started to run + let cmpUnitAI = Engine.QueryInterface(this.order.data.target, IID_UnitAI); + if (cmpUnitAI && cmpUnitAI.IsFleeing()) + { + // Run after a fleeing target + this.SetMoveSpeedRatio(this.GetRunMultiplier()); + } + } }, "MoveCompleted": function() { @@ -2055,6 +2066,16 @@ if (this.GetStance().respondHoldGround) this.WalkToHeldPosition(); } + else + { + // Check if target does not started to run + let cmpUnitAI = Engine.QueryInterface(this.order.data.target, IID_UnitAI); + if (cmpUnitAI && cmpUnitAI.IsFleeing()) + { + // Run after a fleeing target + this.SetMoveSpeedRatio(this.GetRunMultiplier()); + } + } }, "MoveCompleted": function() { Index: binaries/data/mods/public/simulation/templates/template_unit_fauna_hunt_skittish.xml =================================================================== --- binaries/data/mods/public/simulation/templates/template_unit_fauna_hunt_skittish.xml +++ binaries/data/mods/public/simulation/templates/template_unit_fauna_hunt_skittish.xml @@ -3,4 +3,7 @@ skittish + + 10 +