Commit Graph

112 Commits

Author SHA1 Message Date
Steve 54920dc9b3 Flee immediately when surrendering. 2016-06-02 09:49:28 +01:00
Steve 4e36f0731f Check surrender chance earlier in ai call. 2016-05-25 12:26:25 +01:00
Steve 997574dbf3 3 second leeway for killing a surrendering target. 2016-05-25 09:43:39 +01:00
Steve b36b35834d Move away from targets that you're not allowed to kill, but are still aggressive. 2016-05-25 08:20:53 +01:00
Steve 0088dfdee3 Added AIF_SURRENDERING, to better handle surrendering targets and prevent race conditions. 2016-05-25 07:56:48 +01:00
Steve 4092ae6a10 Increased surrender chance. 2016-05-24 09:09:58 +01:00
Steve 2a725471c7 If at edge of battle area when fleeing, turn around. 2016-05-22 16:50:11 +01:00
Steve e2744cd4d5 Script to call is "ENEMIES_SURRENDERED %d". 2016-05-22 12:17:01 +01:00
Steve 41aff3ee3c Added ability for enemy fighters to surrender, if AIF_SURRENDERS is set. 2016-05-22 12:08:19 +01:00
Steve 7e7b8c5454 Moved max suspicion reaction to scripts in missions. 2016-05-20 10:51:35 +01:00
Steve c17f1af851 Added AIF_ZAK_SUSPICIOUS. 2016-05-20 09:51:34 +01:00
Steve ebf95cb631 Only raise suspicion level if the battle is in progress. 2016-05-19 09:31:37 +01:00
Steve 8f438c4467 Deactivate jumpgate if Pandoran choose to attack the player. 2016-05-18 09:47:27 +01:00
Steve e7bfeef2cd Suspicion tweaks. 2016-05-17 13:49:21 +01:00
Steve 60d477b754 Don't become suspicious of the player immediately after combat ends. 2016-05-17 11:34:32 +01:00
Steve d3091caed5 Don't circle your destination if you're near it. 2016-05-17 11:34:08 +01:00
Steve 6794a3c268 Entities with SIDE_NONE don't count as enemies. 2016-05-17 11:32:48 +01:00
Steve 2af1fa6476 Summon backup when player's cover is blown. 2016-05-16 17:03:02 +01:00
Steve 13253ee1e8 Suspicion related updates. 2016-05-16 11:40:39 +01:00
Steve ee4e88668e Added suspicion level, for optional missions. 2016-05-16 10:54:46 +01:00
Steve 50883125e1 Merge. 2016-05-15 08:19:26 +01:00
Steve 6d8856deae Don't exceed your own speed when following a leader. 2016-04-20 13:53:06 +01:00
Steve a3be44a000 Mine deployment fix. 2016-04-20 09:38:29 +01:00
Steve d871e48144 AIF_ASSASSIN check fix. 2016-04-19 12:50:27 +01:00
Steve c395ee25e5 Allow AIF_ASSASSIN flag to be set, to always attack a target. 2016-04-19 11:13:43 +01:00
Steve 344b2d27b8 Give AIF_TARGET_FOCUS fighters a low chance of targetting something else. 2016-04-16 10:59:42 +01:00
Steve a49817ba2e Leader following AI bug fix. 2016-04-15 11:31:11 +01:00
Steve d976c7d3c8 Don't fire missiles at things flagged with EF_NO_KILL. 2016-04-13 11:46:42 +01:00
Steve 61b3ede526 Wander takes priority over moving to leaders. Don't suddenly stop when close to leader during flocking. 2016-04-10 08:36:27 +01:00
Steve bea850f755 Wander fixes. 2016-04-09 17:40:34 +01:00
Steve a5676b9b49 Added EF_AI_IGNORE, to tell AI to ignore entities. 2016-04-09 13:23:10 +01:00
Steve 648ea2e0a7 Further flocking tweaks. 2016-04-08 18:41:51 +01:00
Steve f983b7e2f2 Player / Leader following tweaks. 2016-04-08 10:58:22 +01:00
Steve 505fbb2547 Don't update target location, unless there are enemies nearby. 2016-04-06 16:49:47 +01:00
Steve d329fbaf2f Only deploy mines if you're moving. 2016-04-01 17:02:56 +01:00
Steve d178134a00 Allow AI to drop mines. 2016-04-01 14:19:03 +01:00
Steve 58fb3e911b Tell AI to avoid mines. 2016-04-01 11:40:09 +01:00
Steve 52691f7be5 Enable AI flags to focus on targets. 2016-03-29 22:45:46 +01:00
Steve e6ea4bff06 Reworked canAttack logic. 2016-03-29 07:09:26 +01:00
Steve bd8e88b3ac Don't allow tugs to take ownership of something that is already owned. 2016-03-28 10:39:52 +01:00
Steve 604526611a Increased flock leading distance. 2016-03-16 06:53:20 +00:00
Steve 35b5e4a1c6 Misc cleanup. 2016-03-13 10:52:12 +00:00
Steve e9c43f3d60 Flocking tweak. 2016-03-12 12:11:30 +00:00
Steve 108dfa44d7 Allow tugs with AIF_UNLIMITED_RANGE to find targets anywhere. 2016-03-10 11:57:05 +00:00
Steve 1a4b5c679c Don't attach rope to vessel with rope already attached. 2016-03-09 23:25:12 +00:00
Steve bc1c5d09a8 Replaced extraction point with jumpgate. 2016-03-07 17:12:21 +00:00
Steve 6ef07a65e2 Craft marked as EF_AI_TARGET will be attacked even if they are dodging and avoiding combat. 2016-03-07 12:31:22 +00:00
Steve 922b39c0ea Challenge #8, defend extraction point. Added flag to allow AI to sometimes ignore extraction point. 2016-03-06 09:47:44 +00:00
Steve f55a4e57c8 Pressing ESCAPE blocks when awaiting widget input. 2016-03-05 13:49:07 +00:00
Steve 211df6d8ec i18n updates. 2016-02-28 13:45:17 +00:00