Commit Graph

155 Commits

Author SHA1 Message Date
a3ca29138e Check for all cases. Really fix #1753.
This was SVN commit r12976.
2012-12-10 23:55:16 +00:00
6fd6295644 Check whether the attack/gather target is visible and if not abort. Fixes #1662 and #1753.
This was SVN commit r12975.
2012-12-10 23:35:09 +00:00
2a3f221d11 Check if cmpFormation is set (which should be as we're a formation member)
This was SVN commit r12966.
2012-12-09 17:52:44 +00:00
8c931bfa52 Add animation override to VisualActor to fix carrying resource animations. Patch by Deiz. Fixes #1260, #1741.
This was SVN commit r12949.
2012-12-06 19:46:13 +00:00
c02fca79c6 Adds garrison auto-packing for siege units, refs #1718
This was SVN commit r12935.
2012-12-03 22:00:19 +00:00
6562cbea7e ... Refs #1746.
This was SVN commit r12934.
2012-12-03 21:57:28 +00:00
b06452bf0f Try to fix some warnings. Refs 1746.
This was SVN commit r12933.
2012-12-03 21:53:37 +00:00
9bff9b3b6d Spartan woman defends herself. This is still a work in progress. Not quite right yet.
This was SVN commit r12924.
2012-12-03 00:37:58 +00:00
26a22a7bcb Make hunting units disband earlier.
Fix formation disbanding.

This was SVN commit r12921.
2012-12-02 23:11:55 +00:00
5806ed94e1 Fix bug with gather-near-position.
Use the max range for attacking.

This was SVN commit r12915.
2012-12-02 17:25:23 +00:00
5800be1334 Formation order queueing. Fixes #592, #593 and #1716.
Allow changing the formation, while under attack. Fixes #1624. Patch by
Simikolon.

This was SVN commit r12911.
2012-12-02 01:52:27 +00:00
6fd99e34ce Implements siege packing. Closes #1718.
Adds templates for packed and unpacked siege units - needs stat
tweaking.

This was SVN commit r12904.
2012-12-01 00:34:03 +00:00
10752c798d Prevent attacking yourself (caused by splash damage).
This was SVN commit r12829.
2012-11-06 14:58:34 +00:00
ca4dedbc3e Improve neutral and ally combat handling. Refs #7.
This was SVN commit r12780.
2012-10-23 23:13:39 +00:00
a21e01150a Basic diplomacy. Refs #7.
This was SVN commit r12778.
2012-10-23 16:31:07 +00:00
e72b603cce Implements Vision/Range tech modification
This was SVN commit r12707.
2012-09-24 22:27:32 +00:00
c4c65c02ac Need to explicitly return values to silence warnings.
This was SVN commit r12675.
2012-09-14 20:55:49 +00:00
27c390cdf2 Always abort the FSM transition when failing to enter a state. Fixes #1669.
This was SVN commit r12674.
2012-09-14 20:00:03 +00:00
958fce0438 Prevent naval gatherers from trying to reach land drop sites.
This was SVN commit r12663.
2012-09-11 21:03:08 +00:00
7ff34fedc4 Turn formation Gather orders into GatherNearPosition if necessary.
This was SVN commit r12662.
2012-09-11 00:56:23 +00:00
ef2c9e338d LeaveFoundation should put formation members into a discrete state to avoid prematurely disbanding.
This was SVN commit r12636.
2012-09-04 23:27:06 +00:00
0a0a49eb09 Explicitly store whether whether a unit is moving, as formation members don't finish moving as normal.
This was SVN commit r12624.
2012-09-04 03:57:22 +00:00
9fcb7cc738 Fixed formations so switching formation in-place doesn't leave entities in FORMATIONMEMBER.WALKING and short walk orders bring units into proper formation.
This was SVN commit r12563.
2012-08-31 08:20:36 +00:00
221c7dacde Also try to strip the 'resource|' prefix when handling a GatherNearPosition order.
This was SVN commit r12555.
2012-08-30 08:18:43 +00:00
8968df0554 Only have builders auto-gather if they received a forced order. Patch by picobyte, fixes #1511.
This was SVN commit r12554.
2012-08-30 02:23:36 +00:00
833d79445e Allow immediate re-targeting if an attack target becomes invalid.
This was SVN commit r12549.
2012-08-29 21:13:50 +00:00
781ad7d520 Don't always call FinishOrder when leaving a formation, as they may be in the idle state.
This was SVN commit r12548.
2012-08-29 19:54:29 +00:00
96ee70b75b Enforce attack/heal repeat delay to prevent units from performing actions too often.
This was SVN commit r12542.
2012-08-28 20:02:03 +00:00
2de4786240 UnitAI's CanGather should always return false if the target isn't a resource.
This was SVN commit r12533.
2012-08-27 01:35:53 +00:00
c688f64699 Increased the verbosity of the FinishOrder error and made it generate a stack trace.
This was SVN commit r12527.
2012-08-25 21:55:53 +00:00
cd0802294a Forced chase orders should override stance.
This was SVN commit r12524.
2012-08-24 23:32:26 +00:00
1c06a17e87 EntityRenamed should be ignored if the old entity doesn't match.
This was SVN commit r12523.
2012-08-24 08:22:29 +00:00
89eef72f20 cmpFoundation won't exist when repairing finished buildings.
This was SVN commit r12497.
2012-08-20 19:53:08 +00:00
4136512a90 Scale the build rate as 'builders^0.7' rather than 'builders' (linear).
This was SVN commit r12490.
2012-08-20 07:30:50 +00:00
cebe8bed64 Removed unused 'remain' corpse logic from UnitAI.
This was SVN commit r12487.
2012-08-20 01:41:56 +00:00
66012e2e2c Destroy dying 'remain' entities and replace them with visually-identical resources. Fixes #1600.
This was SVN commit r12486.
2012-08-20 01:38:39 +00:00
77f26c454a Have UnitAI respect the LeaveFoundation order unless in combat. Fixes #1406.
This was SVN commit r12462.
2012-08-18 08:13:47 +00:00
851786b01a Band-aid fix for corpses responding to the stop order.
This was SVN commit r12433.
2012-08-15 02:51:48 +00:00
4138a78c7f Fixes infinite recursion error in UnitAI when hunting an animal with a unit that's standing ground
This was SVN commit r12415.
2012-08-14 00:44:36 +00:00
8c97458de7 Prevent healers from healing themselves.
This was SVN commit r12398.
2012-08-13 02:56:51 +00:00
07ea313ad6 Major update for qBot-xp, with slight changes to unitAI (that broke qBot, and fix for that).
This was SVN commit r12343.
2012-08-10 16:33:58 +00:00
c5ce1b23ae Remove a bit of indirection in UnitAI.
This was SVN commit r12331.
2012-08-09 02:32:56 +00:00
87b2346154 Condensed the sanity checks for the Gaia range query, per leper's suggestion.
This was SVN commit r12328.
2012-08-08 23:29:30 +00:00
1120701351 Substantially rework how Gaia is handled by UnitAI, BuildingAI. Dangerous animals and combat units will be attacked like regular enemies.
This was SVN commit r12317.
2012-08-08 05:32:53 +00:00
0dc1d2139e Make rally points work for trade. Patch from Deiz/F00. Fixes #1173.
This was SVN commit r12191.
2012-07-25 21:38:56 +00:00
659049eb1c Auto-gather all types of treasures. Fixes #1422. Patch by Deiz.
This was SVN commit r11948.
2012-06-07 21:56:29 +00:00
4ee4f16793 Stop rearranging formations for orders carried out individually. Fixes #1476.
This was SVN commit r11934.
2012-06-03 23:00:36 +00:00
636896dd7f Pass template to gather-near-position. Fixes #1454.
Add order_trade sound.

This was SVN commit r11921.
2012-05-27 20:23:08 +00:00
c4d6019599 Add garrison order sound and remove the old garrison sound.
Fix some map errors, tabs in templates and update docs.

This was SVN commit r11891.
2012-05-20 15:44:57 +00:00
68d1cf167e Add repair order queueing to formations. Refs #592.
This was SVN commit r11876.
2012-05-18 21:31:57 +00:00