Commit Graph

60 Commits

Author SHA1 Message Date
Steve e4b2bba230 Leader following tweaks: will now face and move in the general direction of leader once in range. 2016-02-24 07:13:48 +00:00
Steve cedbed4dc8 Updated copyright dates. 2016-02-21 15:50:27 +00:00
Steve 6b1e62dd38 Start of replacing grid with quadtree. 2016-02-21 07:48:22 +00:00
Steve 05db32f04a Bug fix for wandering ships. 2015-12-30 18:44:48 +00:00
Steve 568abb25f4 lookForLeader() added to main doAI function. 2015-12-27 18:18:50 +00:00
Steve e2b7576f89 Allow AI to wander. 2015-12-24 21:42:26 +00:00
Steve c3785bcfce Allow the player to select and fire rockets, when using a bomber. 2015-12-23 16:25:25 +00:00
Steve edc6127109 Fix for AI attacking secondary targets. 2015-12-22 17:58:37 +00:00
Steve 05b42f21ce AI evasion updates. 2015-12-20 16:13:49 +00:00
Steve 1849a20831 AI fighers will now attempt to avoid combat if they take too much damage in a short space of time. 2015-12-20 15:13:41 +00:00
Steve 164b35a8c0 AI should only move to leader on same side. 2015-12-19 12:30:17 +00:00
Steve cfc0ed7cc8 AI can now follow leaders. 2015-12-18 12:02:01 +00:00
Steve b5dfab1bd5 Added debug keys. 2015-12-18 10:12:37 +00:00
Steve c4dfb823ef Code clean up. 2015-12-14 08:15:41 +00:00
Steve 05f58e0971 Added SECONDARY_TARGET flag. 2015-12-10 12:40:23 +00:00
Steve a5f8be0586 EF_STATIC now means entity will never move (not even rotate). 2015-12-10 11:46:57 +00:00
Steve deafab786e Separate gun AI. 2015-12-10 10:16:27 +00:00
Steve 91822f1ca3 Further capital ship code updates. Added long range fire flag for cannons. 2015-12-08 22:42:31 +00:00
Steve b3c2313235 Target range fix. 2015-12-02 07:23:56 +00:00
Steve 79608069af Missile boats will fire a little more often. 2015-11-30 11:30:11 +00:00
Steve 2e5207f9c3 Ignore disabled fighters when looking for a target. 2015-11-29 12:56:38 +00:00
Steve 886084f60f Don't let AI fire missiles at point-blank range. 2015-11-28 15:30:07 +00:00
Steve dec3538956 Added AIF_MOVES_TO_PLAYER flag. 2015-11-28 14:33:05 +00:00
Steve ae17d9b422 Longer action timeout when towing to extraction point. 2015-11-27 06:36:48 +00:00
Steve 3ef305686f Allow AI controlled tug to collect disabled fighters, and take them to the extraction point. 2015-11-26 22:48:22 +00:00
Steve d8783cc557 When avoiding enemies, ignore disabled ones. 2015-11-26 21:53:54 +00:00
Steve 223231fb76 AI updates. 2015-11-22 13:06:19 +00:00
Steve bb841db134 Bug fix for following dead player. Increase evasion radius. 2015-11-22 11:42:28 +00:00
Steve f304e8ca5b Allow AI to fire rockets. 2015-11-22 08:17:29 +00:00
Steve 597f6f5cb7 Removed missiles types. Now only homing missiles, and rockets for bombers. 2015-11-21 23:45:22 +00:00
Steve 94e0259953 Added defensive AI flags - only attack sometimes. 2015-11-21 23:27:43 +00:00
Steve 669ce654f2 AI updates for retreating fighters. 2015-11-21 17:37:23 +00:00
Steve 0b9a6f8b1f Misc. bug fixes. 2015-11-20 22:52:48 +00:00
Steve 32885b2111 Tweaked AI, to help balance Epic battles. 2015-11-19 08:30:45 +00:00
Steve 5fda0b1ad8 Further AI tweaks. Allowed AI to select laser cannons. 2015-11-18 18:38:29 +00:00
Steve a776005a65 Reworked AI system, to make it more generic and flexible. 2015-11-18 11:27:05 +00:00
Steve 5aa8e0280e Added EF_MUST_DISABLE, to replace EF_DISABLE. 2015-11-16 16:24:57 +00:00
Steve f62861cfba AI tweaks. ECM means AI can now fire missiles freely at player. 2015-11-15 17:11:11 +00:00
Steve 095e8b65a4 AI updates - allow enemies to flee. 2015-11-15 13:26:34 +00:00
Steve 484afee9ef Consider centering when gathering entities. 2015-11-15 12:28:12 +00:00
Steve c9632613ce Updated EF_DISABLE to EF_DISABLED. Fixed objective logic for disabled craft (fire only once). 2015-11-14 16:14:48 +00:00
Steve 3c9977939d Further AI tweaks. 2015-11-14 13:03:57 +00:00
Steve f4402bfb72 AI tweaks - make the game less frantic, and AI less likely to fire missiles at player. 2015-11-14 11:32:37 +00:00
Steve 83407704c6 Code clean up. 2015-11-13 23:35:51 +00:00
Steve 09761ccd78 Civilians should re-evaluate their fleeing every 1/2 second, so as not to run in to enemies too easily. 2015-11-13 16:54:38 +00:00
Steve 2662076711 Enemies don't chase civilians forever. Civilians will run from enemies at a larger range. 2015-11-13 11:27:11 +00:00
Steve 5fc2bed650 Civilians attempt to evade / runaway from enemies. 2015-11-13 08:45:50 +00:00
Steve 4da58014d5 Rewrote entity candidate for loops. 2015-11-11 19:15:41 +00:00
Steve ad405c57ae Start of civilian ships: will follow player when close and flee in to extraction points. 2015-11-11 06:46:58 +00:00
Steve 2a38221bcf Prevent fighters from magically coming back to life if their target is kill while they are also dying. 2015-11-01 11:37:12 +00:00