409f03652e
Fixes animal auto-hunting by removing 10HP limit on possible targets. Units will now look for the same type of animal to hunt (matching templates).
...
This was SVN commit r11055.
2012-02-12 21:18:50 +00:00
bfca6f0b58
Fixes UnitAI attack test for domestic animals. Fixes #1048 .
...
This was SVN commit r10760.
2011-12-18 05:17:34 +00:00
42f0aec84a
Allows setting rally points on resources and buildings. closes #745
...
This was SVN commit r10744.
2011-12-16 16:08:26 +00:00
8d977e4818
Allows building in fog of war. Fixes #958 .
...
This was SVN commit r10584.
2011-11-24 00:58:34 +00:00
f8303b51c5
Fixes gathering after dropsite construction.
...
This was SVN commit r10579.
2011-11-23 04:59:02 +00:00
5cc856aedc
Re-enables build restrictions for AIs since they have basic compliance now.
...
Moves target ownership checks from Commands.js to UnitAI.
Adds more robust target checking in UnitAI by calling CanFoo functions
more frequently.
Adds optional debugging mode to Commands.js (useful for AI developers).
This was SVN commit r10570.
2011-11-22 00:16:35 +00:00
d63947597c
Adds new NaturalBehaviour "domestic" to UnitAI, useful for tame animals who should never flee an attacker. Fixes #971 .
...
Renames herd_passive template to herd_domestic.
This was SVN commit r10333.
2011-09-27 18:03:58 +00:00
4d188452f8
Adds ownership checks to UI selections.
...
Adds ownership and diplomacy checks to Commands.js (fixes #880 ).
Adds control all units setting to Player component (network synced).
Adds helpers for diplomacy checks - use these instead of directly
accessing diplomacy array.
Fixes tests according to these changes.
This was SVN commit r9726.
2011-07-02 00:06:39 +00:00
d89eafaf83
stances improvement and bugfixing. units now targets buildings last, after workers, and after every other units.
...
This was SVN commit r9663.
2011-06-26 02:03:36 +00:00
fed56af8a7
avoid trying to attack (before gathering) for ever an animal which is not visible anymore (bug not yet met because unlikely)
...
This was SVN commit r9661.
2011-06-25 20:56:46 +00:00
c8b0d7c11c
fix a small bug related to units stances and gathering
...
This was SVN commit r9660.
2011-06-25 19:14:08 +00:00
92fcb737cd
Attempt minor improvements to stances code (see #865 ).
...
Don't chase units that are no longer visible, beyond where they were
last seen (fixes #595 ).
This was SVN commit r9657.
2011-06-24 12:35:15 +00:00
e01917b961
Entities faces toward themself. fixed.
...
This was SVN commit r9632.
2011-06-17 23:08:46 +00:00
71a6775b92
Stances draft, refs #865
...
This was SVN commit r9631.
2011-06-17 22:13:39 +00:00
2c58b07223
# Add experimental fighter planes.
...
This was SVN commit r9605.
2011-06-09 19:44:40 +00:00
5132f814e3
Clean up some formatting and comments.
...
This was SVN commit r9602.
2011-06-09 17:01:01 +00:00
902b33a181
Remove redundant code for animal fleeing, and don't omit expected arguments.
...
This was SVN commit r9601.
2011-06-09 16:41:55 +00:00
24cca252e3
Ranged units always face their targets when attacking. fixes #831
...
This was SVN commit r9595.
2011-06-06 22:08:26 +00:00
069f567f7e
check that enemy units don't leave foundations. based on patch from Stork. fixes #724
...
This was SVN commit r9532.
2011-05-17 20:30:21 +00:00
1fac936d68
fixes a bug related to foundations and animals corpses (previously, when an animal has already been ordered to leave a foundation once, it will not leave the construction site if you place an another building on top of it).
...
This was SVN commit r9531.
2011-05-17 16:26:47 +00:00
a6d519e70f
Fix #779 differently, to avoid problems with building on top of cheering units
...
This was SVN commit r9528.
2011-05-15 23:51:51 +00:00
d5d5fd3b7d
units are not stuck on construction sites anymore. fixes #779
...
This was SVN commit r9525.
2011-05-15 20:30:54 +00:00
edd8ef2bf2
Fix units in formation blocking construction and not moving out of the way (see #779 ).
...
Make non-movement-blocking buildings (e.g. farms) not require units to
move out of the way.
This was SVN commit r9510.
2011-05-13 20:32:41 +00:00
ff7cc75055
Fixes garrisoning bug (units don't have to approach buildings in order to garrison)
...
This was SVN commit r9505.
2011-05-12 21:48:59 +00:00
ba66de2143
Fix #835 more comprehensively (the same bug affects other actions performed on nearby targets while moving)
...
This was SVN commit r9504.
2011-05-12 21:27:15 +00:00
8a434aae1b
Ensure units don't move while gathering. fixes #835
...
This was SVN commit r9501.
2011-05-11 19:34:39 +00:00
025a00340e
Fixes garrisoned units being found as idle (even if they are, we can't select them, so skip them instead). Fixes #844 .
...
Garrisoned units now remain in the GARRISONED state until explicitly
ungarrisoned
This was SVN commit r9498.
2011-05-11 04:05:05 +00:00
7499b23991
Units promotion. Closes #697 .
...
This was SVN commit r9391.
2011-05-02 15:03:01 +00:00
bfd6614b55
# Add support for many formation shapes, based on patch from Badmadblacksad.
...
See #13 .
This was SVN commit r9385.
2011-05-01 20:40:53 +00:00
8a0cbe009a
Stop the AI wasting time chasing after any animals except chickens.
...
Make the AI behave better when it can't find any viable food sources.
This was SVN commit r9046.
2011-03-08 01:40:44 +00:00
20ebaa5b79
Fix units getting stuck inside foundations
...
This was SVN commit r9035.
2011-03-05 22:18:29 +00:00
22e16e4554
Make builders look for nearby foundations to help with, once they finish their own building
...
This was SVN commit r9032.
2011-03-05 17:38:15 +00:00
c0383ffc30
Fix units not auto-gathering after a group is given a construction order
...
This was SVN commit r9030.
2011-03-05 15:56:24 +00:00
3e7731e8ca
Stop units wasting their lives chasing animals they'll never be able to catch.
...
Let AI players collect treasures.
This was SVN commit r9012.
2011-03-04 21:42:39 +00:00
bec4c6437b
Make non-combat units flee when under melee attack, and not attack enemies automatically.
...
Fixes #703 .
This was SVN commit r9010.
2011-03-04 14:36:41 +00:00
18b317bc19
# Improve animal AI, based on patch from Badmadblacksad.
...
Fixes #563 .
This was SVN commit r8995.
2011-02-27 13:34:22 +00:00
78e174af7d
Fix auto-gathering after constructing fields.
...
Fix building on top of animal corpses.
Fix builders getting in the way of their own building.
This was SVN commit r8900.
2011-02-10 19:50:08 +00:00
b8925fbbc9
# Support AI construction of buildings.
...
Pass terrain passability data to AI scripts.
Expand pathfinder passability data to 16 bits per tile, to allow more
classes.
Support 16-bit ints in serializer.
Partially support JS typed arrays.
Allow foundations to be placed on top of units (fixes #499 ).
Stop farms and fishes blocking movement (fixes #534 ).
Add obstruction flags to allow finer control over what they block.
Associate entity IDs with obstruction shapes, to allow finding colliding
entities.
Support moving to the edge of a target entity with inactive obstruction.
Support foundation entities in AI.
Support playing as non-hele civs.
This was SVN commit r8899.
2011-02-10 16:06:28 +00:00
57e5bb878a
Initial terrible AI player scripts.
...
This was SVN commit r8891.
2011-02-05 20:35:34 +00:00
f04c2561b7
Various resource shuttling improvements. Fixes #672 .
...
This was SVN commit r8811.
2010-12-08 16:12:04 +00:00
c09d6dcb83
Added garrison & repair button on the unit's command panel
...
This was SVN commit r8756.
2010-12-01 03:01:17 +00:00
ab186c2b16
Update UnitMotion logic, to partially simplify it.
...
Do all pathfinding asynchronously.
Recalculate paths when the target has moved.
Fix vertex pathfinder start point heuristic, to avoid finding
zero-length paths.
When units fail to reach a resource to gather, look for another resource
of the same type.
This was SVN commit r8751.
2010-11-30 12:31:54 +00:00
f378a63d94
Add some tests for UnitAI.
...
Fix said tests for UnitAI.
Hopefully fix #647 too.
Document HFSM interface a bit.
Add Engine.DumpSimState() console command for debugging.
This was SVN commit r8681.
2010-11-22 20:12:04 +00:00
7e41f6d664
Changed treasures gathering: now units will gather treasures immediately, rather than carry resources from treasures to dropsites.
...
This was SVN commit r8670.
2010-11-20 21:37:31 +00:00
9c521ceb3b
Add minimum range to range queries
...
This was SVN commit r8627.
2010-11-16 20:43:15 +00:00
8798b7671c
Use separate mode when carrying meat.
...
Fix tests.
This was SVN commit r8594.
2010-11-13 21:39:39 +00:00
4100a13e0a
# Add resource shuttling.
...
Add resource-carrying animations/props to an actor for testing.
Warn more quietly about invalid cursor names.
This was SVN commit r8589.
2010-11-13 19:15:29 +00:00
3cefbbe253
Modified UnitAI to respect diplomatic status of players, allies can no longer be attacked, and fixed some related bugs in player init
...
This was SVN commit r8583.
2010-11-13 02:36:53 +00:00
0aaddf62aa
Garrisoning for buildings based on patch by Evans ( fixes #610 )
...
This was SVN commit r8451.
2010-10-23 22:43:15 +00:00
ee8d49200a
Fix formation movement loop when switching from column
...
This was SVN commit r8369.
2010-10-15 19:25:17 +00:00