[PATCH] Improve hunter behaviour.
Hunting is quite broken presently when an animal can flee quite far (e.g. the giraffe which have high hitpoints). You may reproduce the problem for exemple with the Sahel Watering Hole map, creating a cavalry skirmisher and trying to hunt one of the giraffes. The hunter will usually stop following the animal after a short time, and even if we force it to follow its target and kill it, it will gather only once the food and then be unable to find back the dead animal to gather again. This is fixed in the attached patch.
Note that lines 26 to 40 of the patch are not directly connected to it, but gives to GatherNearPosition the same behaviour as Gather, i.e. go to nearest dropsite if nothing left to gather. They can be removed without impacting the patch.
Change History
(6)
Keywords: |
patch review added
|
Milestone: |
Alpha 14 → Alpha 15
|
Owner: |
set to mimo
|
Summary: |
[PATCH] improve hunting → [PATCH] Improve hunter behaviour.
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Component: |
Core engine → UI & Simulation
|
Keywords: |
review removed
|
In 13803: