wraitii
1694913b16
Make "no formation" the default setting but keep formations activated to help pathfinding in A19. Use at your own risk. Refs #3505 and #3565 .
...
Also make rabbit, chicken and shark no longer obstruct movement, to
further help with pathfinding. These may or may not be udpated later.
Refs #3562 . Fixes #3497 .
This was SVN commit r17166.
2015-11-01 17:10:19 +00:00
mimo
32dafe707d
cleanup and simplification of 38af159598, fixes #3519
...
This was SVN commit r17130.
2015-10-12 17:12:36 +00:00
mimo
412779684c
improves 38af159598
...
This was SVN commit r17113.
2015-10-09 18:14:53 +00:00
mimo
38af159598
fix UnitAI state of turrets, fix #3481
...
This was SVN commit r17111.
2015-10-08 21:59:52 +00:00
mimo
ef4a1e261c
fix standGround units not attacking, patch by karamel, fixes #3284
...
This was SVN commit r17109.
2015-10-08 20:48:05 +00:00
mimo
03b00b0041
revert d5c758eef3 and better fix of #3430 , fixes #3466
...
This was SVN commit r17108.
2015-10-06 20:59:13 +00:00
mimo
86d81c5baa
fix attackAsFormation of special formations, fixes #3086
...
This was SVN commit r17106.
2015-10-05 20:40:14 +00:00
mimo
d5c758eef3
change immediately to IDLE state when no more orders, fixes #3430
...
This was SVN commit r17086.
2015-09-27 17:32:55 +00:00
mimo
a7e0dc1534
update attack and heal range queries, patch by leper, fixes #3080
...
This was SVN commit r17082.
2015-09-27 12:23:40 +00:00
mimo
1f5bb8d62e
fix some flaws revealed by the fix #3430
...
This was SVN commit r17079.
2015-09-26 21:41:35 +00:00
mimo
82f3ee7384
fix typo in previous commit
...
This was SVN commit r17076.
2015-09-24 21:57:43 +00:00
mimo
037fe8282e
fix initialization of this.oldAttackType used for resetting the attack anims, fix #3221
...
This was SVN commit r17075.
2015-09-24 21:55:09 +00:00
mimo
14aaa7c640
add some missing semicolon
...
This was SVN commit r17059.
2015-09-21 21:08:58 +00:00
mimo
0b86bbd424
another bunch of cleanup (mainly missing semicolon) signaled by jshint
...
This was SVN commit r17045.
2015-09-19 12:50:48 +00:00
Itms
0c043b5bdb
Fix edge case in the UnitAI state machine. Fixes #3429 .
...
This was SVN commit r17036.
2015-09-18 17:07:32 +00:00
Itms
b77ad821c2
Reenable formations and fix/improve the communication between UnitAI and UnitMotion. With the new pathfinder some path requests can be completed instantaneously, so UnitAI has to handle MoveStarted messages even in the IDLE state.
...
Please note that this commit makes #3410 really visible. Formation
members might pass through buildings.
Refs #3410 , #3337 .
This was SVN commit r17028.
2015-09-17 16:31:23 +00:00
mimo
00a51404c9
cleanup of some for ... in loops on arrays (replaced by for ... of)
...
This was SVN commit r16996.
2015-09-09 18:21:17 +00:00
Itms
0c4c6e499d
Fix the LeaveFoundation order in UnitAI in the case of animals. The code used was a hack using the fleeing tactics, so use the regular "Order.LeaveFoundation" code shared with non-animal units.
...
Fixes #3372
This was SVN commit r16973.
2015-09-02 17:36:20 +00:00
mimo
025391db35
fix behavior when under alert, fixes #3273
...
This was SVN commit r16968.
2015-08-31 19:54:06 +00:00
leper
a67b3b8942
UnitAI cleanup. Setup*RangeQuery. Refs #3080 .
...
Do not create range queries when being destructed.
rangeMan -> cmpRangeManager.
This was SVN commit r16952.
2015-08-29 22:49:52 +00:00
leper
6f0850f6bc
Improve UnitAI's FindNearby* functions.
...
Stop them from starting a range query in case we have no ownership (or
-1).
Make use of Array.find() to make them a bit nicer.
This was SVN commit r16950.
2015-08-29 22:49:46 +00:00
leper
31113cb8c3
UnitAI cleanup.
...
Use Array.{some,every,forEach,find} to simplify existing code.
Also make use of some fat arrow functions.
Some code style fixes.
Let FindNewHealTargets call RespondToHealableEntities to remove code
duplication.
This was SVN commit r16949.
2015-08-29 22:49:44 +00:00
mimo
d31ebaa47a
add a new Repairable component defining a ratio of repairTime/buildTime for repairable entities. Fixes #633
...
This was SVN commit r16943.
2015-08-27 20:31:10 +00:00
mimo
3c8fe51712
complete b3f7b8633a for (un)packing
...
This was SVN commit r16910.
2015-08-02 17:24:04 +00:00
mimo
b3f7b8633a
fix incoherent UnitAI state when changing ownership of a cheering or garrisoned unit
...
This was SVN commit r16908.
2015-08-02 09:39:08 +00:00
mimo
3c139b1022
make the unitai idle propriety consistent with its state at unit creation
...
This was SVN commit r16721.
2015-06-04 19:00:42 +00:00
mimo
6dcf636d7c
fix attackable players in unitai, refs #2749
...
This was SVN commit r16656.
2015-05-19 20:10:19 +00:00
leper
af37b00f4b
Add QueryMiragedInterface. Fixes #3189 .
...
QueryMiragedInterface allows to make writing Mirage-aware code
(GuiInterface)
simpler and less prone to error.
Replaces ResourceSupply's GetGatherers() with GetNumGatherers() as the
former
was never used in a way other than the second.
This was SVN commit r16607.
2015-05-01 17:03:37 +00:00
sanderd17
8099fe01de
Drop off resources when building dropsite. Patch by maveric. Fixes #3093
...
This was SVN commit r16581.
2015-04-26 08:35:10 +00:00
sanderd17
4d1dee171e
Explicitely add the UnitAI target to the BuildingAI target list to circumvent the range mismatch. Refs #1731
...
This was SVN commit r16577.
2015-04-25 12:54:34 +00:00
sanderd17
7bb30ef6b0
Fix some more flags
...
This was SVN commit r16560.
2015-04-21 17:58:07 +00:00
sanderd17
2972cb3202
Small fix
...
This was SVN commit r16558.
2015-04-21 14:33:28 +00:00
sanderd17
fa878c2f31
Force attack instead of capture when the attack hotkey is pressed
...
This was SVN commit r16557.
2015-04-21 13:21:19 +00:00
sanderd17
ad27deeb9d
Implement building capturing. Fixes #996
...
This was SVN commit r16550.
2015-04-20 07:45:45 +00:00
mimo
cdc9d98e00
do not apply multiple leavefoundation orders, fix #3010
...
This was SVN commit r16369.
2015-02-21 17:40:59 +00:00
mimo
cd9eeef1b7
force garrisoned units as turrets to have stance standground, fixes #2905
...
This was SVN commit r16318.
2015-02-11 18:34:06 +00:00
leper
18a1820d9c
Remove stray character.
...
This was SVN commit r16273.
2015-02-06 16:50:22 +00:00
leper
766d2f833f
Fix gather rally points for formations (batches). Patch by stanislas69. Fixes #3037 .
...
Also clean up some whitespace.
This was SVN commit r16272.
2015-02-06 02:11:39 +00:00
Itms
1564a10120
Move back the computation of most of the visibilities from JS to engine, to improve performance.
...
Also fix the remaining TODO left by #958 , as a use case of the scripted
Visibility component.
Refs #2913 , #958 .
This was SVN commit r16248.
2015-01-30 15:28:06 +00:00
mimo
df3222a073
Petra: improve choice of target when attacking, to prevent cases where most units would follow the same target
...
This was SVN commit r16167.
2015-01-20 18:31:57 +00:00
mimo
b524f59657
check ResourceGatherer interface before trying to gather, fixes #2801
...
This was SVN commit r15812.
2014-09-26 21:23:32 +00:00
mimo
c069a6555c
prevent js error
...
This was SVN commit r15691.
2014-08-28 08:59:45 +00:00
mimo
b2d07d5e5a
complete 2f1d143dc2 for moveAttack in rallyPoint + some cleaning
...
This was SVN commit r15682.
2014-08-26 19:35:43 +00:00
mimo
2f1d143dc2
give possibility to choose type of targets in moveAttack, fixes #2740
...
This was SVN commit r15671.
2014-08-24 11:51:03 +00:00
Itms
f7e591c9f2
Hide changes to buildings in the fog-of-war.
...
To achieve this, mirage entities are created per player, to replace the
real entities when these ones fall into the fog-of-war. These mirage
entities are created on-the-fly, and destroyed when they get back in
sight.
This depends heavily on the VisibilityChanged message added in
2174eaaeee .
As a temporary adjustment, territories do not explore the map anymore
when their borders change. See #2709 .
Fixes #599
This was SVN commit r15612.
2014-08-04 22:49:19 +00:00
wraitii
00b072ea14
Fix a UnitAI issue where a builder would become idle if, upon completion of a foundation, it was close enough to immediately start working on another foundation. This was particularly infuriating with palisades.
...
This was SVN commit r15580.
2014-07-29 11:34:58 +00:00
sanderd17
4e996de883
Fix UnitAI bug found by FalseVision
...
This was SVN commit r15409.
2014-06-21 21:03:44 +00:00
sanderd17
013ab4bda7
Make the barter panel uniform with the others, clean up more gui code.
...
This was SVN commit r15375.
2014-06-16 18:34:27 +00:00
sanderd17
86aa30e0d9
Remove useless line in UnitAI, found by FalseVision
...
This was SVN commit r15368.
2014-06-15 14:38:25 +00:00
sanderd17
1e38fa7b58
UnitAI fix by FalseVision
...
This was SVN commit r15367.
2014-06-15 14:23:49 +00:00