Commit Graph

4640 Commits

Author SHA1 Message Date
Joonas Rikkonen
9334b71939 (d732f31b3) Enable initiative and courage. Implement initiative. 2019-05-16 05:28:59 +03:00
Joonas Rikkonen
eadd063950 (d82a5d3f3) Use the wait delay for all objectives that are not orders (instead of just idle). 2019-05-16 05:28:41 +03:00
Joonas Rikkonen
874bc07cfd (a4af8c68b) Don't try to open doors that are stuck. 2019-05-16 05:28:24 +03:00
Joonas Rikkonen
b628abbf7d (ec7e0c3d1) Take stuck and open doors into account when evaluating path access. 2019-05-16 05:28:07 +03:00
Joonas Rikkonen
3bce90251a (133a5b1da) Merge branch 'dev' into human-ai 2019-05-16 05:27:51 +03:00
Joonas Rikkonen
ab49749f8b (877db615c) Set find safety priority to 100 when the current hull is null. 2019-05-16 05:27:33 +03:00
Joonas Rikkonen
8621d9927e (a21f15055) Merge branch 'dev' into human-ai 2019-05-16 05:27:17 +03:00
Joonas Rikkonen
78b1d8ef8d (d0dd81be0) Rename a method. 2019-05-16 05:26:58 +03:00
Joonas Rikkonen
0325ddf9c6 (8ac0eb1bc) Add the remaining texts. 2019-05-16 05:26:42 +03:00
Joonas Rikkonen
a447a47661 (06129f656) Add some missing texts. Incomplete. 2019-05-16 05:26:25 +03:00
Joonas Rikkonen
268389a128 (c5e44ed94) Take access into account before accepting a path. Fixes bots trying to reach places where they have no access to (#1351). 2019-05-16 05:26:09 +03:00
Joonas Rikkonen
812598774e (24bcea40e) Fix the ai checks about door buttons. Don't aim at targets that cannot be seen. 2019-05-16 05:25:52 +03:00
Joonas Rikkonen
bd4b3bd7f9 (479cebd45) Fix not being able to open partially broken doors with integrated buttons. 2019-05-16 05:25:35 +03:00
Joonas Rikkonen
f46990d539 (d74fee449) Revert "Fix bots not knowing how to use the integrated controllers, effectively failing to use the doors with integrated buttons." 2019-05-16 05:25:20 +03:00
Joonas Rikkonen
e4f41789b0 (143d158cb) Merge branch 'dev' into human-ai 2019-05-16 05:25:02 +03:00
Joonas Rikkonen
9fab69663b (f4fb7a3ad) Rename "automatic orders" to "autonomous objectives". 2019-05-16 05:24:45 +03:00
Joonas Rikkonen
e284e1039a (ee2d498e3) Fix bots ignoring doors when shooting. 2019-05-16 05:24:28 +03:00
Joonas Rikkonen
4c53a56b20 (e25e32b17) Fix bots not knowing how to use the integrated controllers, effectively failing to use the doors with integrated buttons. 2019-05-16 05:24:11 +03:00
Joonas Rikkonen
77f1d0ea8e (a843b19d4) Optimize distance checks. 2019-05-16 05:23:55 +03:00
Joonas Rikkonen
52d25694ed (050157f65) Fix bots not being able to use buttons or ladders because the were aiming. Don't aim when farther than 500 pixels away from the target. 2019-05-16 05:23:39 +03:00
Joonas Rikkonen
053ef60fc4 (deee8cd6d) Merge branch 'dev' into human-ai 2019-05-16 05:23:20 +03:00
Joonas Rikkonen
abd19f614f (913d93c32) Setup new skills: initiative and courage. Not yet implemented. 2019-05-16 05:23:03 +03:00
Joonas Rikkonen
8f8ff7f1a9 (7e5ee2800) Add the job requirement for fight intruders order. 2019-05-16 05:22:47 +03:00
Joonas Rikkonen
cf55de90ba (0ccb08c95) Remove item collision category, since we only want to check the walls and the characters here. 2019-05-16 05:22:30 +03:00
Joonas Rikkonen
ad604a44c4 (0bc1c5f88) Fix bots trying to rescue enemies in single player game. 2019-05-16 05:22:12 +03:00
Joonas Rikkonen
99307f764a (a47ab977d) Allow shooting through platforms. 2019-05-16 05:21:56 +03:00
Joonas Rikkonen
9ec9adb2a7 (cec5cdbcd) Reset steering when an objective is activated. 2019-05-16 05:21:39 +03:00
Joonas Rikkonen
f95a59cc50 (cc14ef57a) Remove the Doing text, because it's not used and because there can be multiple. Remove order names, because they should be defined in EnglishVanilla.xml. Add todo notes about the texts. 2019-05-16 05:21:20 +03:00
Joonas Rikkonen
1e200722ae (81244db07) Implement AIObjectiveFightIntruders. 2019-05-16 05:21:03 +03:00
Joonas Rikkonen
88de435487 (cf495e03c) Check the visibility to the target when engaging (the distance is not enough, if there's something blocking the line of sight). 2019-05-16 05:20:45 +03:00
Joonas Rikkonen
3d7a113d75 (048b753e6) Merge branch 'dev' into human-ai 2019-05-16 05:20:29 +03:00
Joonas Rikkonen
7b6c2f1fa8 (663910402) Unequip weapons when not in combat mode and all items when idling. 2019-05-16 05:20:11 +03:00
Joonas Rikkonen
3b313976c5 (5394332a8) Add a note. 2019-05-16 05:19:52 +03:00
Joonas Rikkonen
bcd18aab4e (8025561da) Implement offensive combat. 2019-05-16 05:19:31 +03:00
Joonas Rikkonen
363eb0540a (a8f2f39bd) The ai now sorts the weapons by the combat priority value, which can be set in xml. Ranged weapons are favored. The required items are also taken into account. 2019-05-16 05:19:14 +03:00
Joonas Rikkonen
9facded24c (2561cb6ea) Tune the priority modifiers. 2019-05-16 05:18:55 +03:00
Joonas Rikkonen
65e284bf7c (0fde6c604) Ignore dangerous targets. 2019-05-16 05:18:37 +03:00
Joonas Rikkonen
fea0c31e85 (27b4fa143) Tune the priority modifiers. 2019-05-16 05:18:18 +03:00
Joonas Rikkonen
f61bff8970 (a1fe45652) Add some margin. 2019-05-16 05:18:01 +03:00
Joonas Rikkonen
cbfef49e9d (d9fd52f40) Change the priority calculations for charge batteries and pump water loops. Tweak the operate item priority calculation. 2019-05-16 05:17:42 +03:00
Joonas Rikkonen
c9bfc21880 (49f837fbb) Fix: operate battery or pump should not be looping objectives. 2019-05-16 05:17:24 +03:00
Joonas Rikkonen
c8160f6e0b (a599eccb0) Expose the ai recharge target ratio and add a property for easy accessing to the recharge ratio. 2019-05-16 05:17:06 +03:00
Joonas Rikkonen
6c777aa91e (d7e59613a) Ignore broken items. 2019-05-16 05:16:47 +03:00
Joonas Rikkonen
6bdd0ab8c0 (83ad1f3d2) Fix a null reference exception. 2019-05-16 05:16:31 +03:00
Joonas Rikkonen
5b3696f7e4 (d16942d30) Simplify. 2019-05-16 05:16:13 +03:00
Joonas Rikkonen
bbce41fab0 (bd2976a16) Add some automatic orders. 2019-05-16 05:15:52 +03:00
Joonas Rikkonen
82d74f7481 (a1ebc2642) Use lazy loading to ensure that the list is assigned when it's needed. Fixes null reference exceptions when pumping water or charging batteries. 2019-05-16 05:15:34 +03:00
Joonas Rikkonen
108e42edb0 (b5250291f) Merge branch 'dev' into human-ai 2019-05-16 05:15:16 +03:00
Joonas Rikkonen
b02565796a (98f1dbf5e) Merge branch 'dev' into human-ai 2019-05-16 05:14:58 +03:00
Joonas Rikkonen
7f72f72ca7 (9c0250ef1) Merge branch 'dev' into human-ai 2019-05-16 05:14:40 +03:00