Joonas Rikkonen
|
0ca644a559
|
(4aad704b7) Simplify.
|
2019-05-16 05:36:42 +03:00 |
|
Joonas Rikkonen
|
28eef39b64
|
(97c11681e) Abandon the operate item objective if the controller is not found.
|
2019-05-16 05:36:23 +03:00 |
|
Joonas Rikkonen
|
8280ed9c1a
|
(3b137aa1a) Merge remote-tracking branch 'origin/dev' into human-ai
|
2019-05-16 05:36:05 +03:00 |
|
Joonas Rikkonen
|
5ba3c802ea
|
(d4abdd937) Fix security officers fleeing from the enemy and others ignoring them until attacked :D
|
2019-05-16 05:35:47 +03:00 |
|
Joonas Rikkonen
|
14e894cbc8
|
(82dc10a74) Some margin.
|
2019-05-16 05:35:30 +03:00 |
|
Joonas Rikkonen
|
9fba7b1d7a
|
(1136677c2) Fix Extinguish fire objective. Implement ConcurrentObjectives property (should use this for Combat).
|
2019-05-16 05:35:12 +03:00 |
|
Joonas Rikkonen
|
e1584be2f7
|
(bfd095a0a) Fix a bunch of bugs related to the recent refactoring.
|
2019-05-16 05:34:56 +03:00 |
|
Joonas Rikkonen
|
6bb7f5f0f1
|
(5dc7f59e5) Remove an unnecessary check. The priority system should take care of this.
|
2019-05-16 05:34:37 +03:00 |
|
Joonas Rikkonen
|
70ffc27667
|
(e80994d9b) Refactor get item.
|
2019-05-16 05:34:19 +03:00 |
|
Joonas Rikkonen
|
f667ed8e12
|
(3f4e69c0d) Only unequip items when idling. Fixes bots not being able to repair, because the tools were unequipped (if they were weapons).
|
2019-05-16 05:34:03 +03:00 |
|
Joonas Rikkonen
|
155cb83f91
|
(f0f961ac3) Fix some priority related issues.
|
2019-05-16 05:33:46 +03:00 |
|
Joonas Rikkonen
|
3b72edfe94
|
(227a6e696) Improve readability.
|
2019-05-16 05:33:29 +03:00 |
|
Joonas Rikkonen
|
e367f900b8
|
(2a4bd39c2) Merge branch 'dev' into human-ai
|
2019-05-16 05:33:13 +03:00 |
|
Joonas Rikkonen
|
a3db11876b
|
(d34fb2097) Major refactoring: - Replace custom logic regarding subobjectives with generic logic. - Ensure that all the objectives follow the same logic, reduce duplicate code where possible.
|
2019-05-16 05:32:56 +03:00 |
|
Joonas Rikkonen
|
05270aa165
|
(d9e651e1c) Add a generic method for handling subobjectives, when we don't use a collection but individual references instead.
|
2019-05-16 05:32:37 +03:00 |
|
Joonas Rikkonen
|
0714599f05
|
(10a11fd09) Rename a variable.
|
2019-05-16 05:32:20 +03:00 |
|
Joonas Rikkonen
|
2b029fc61a
|
(0c17563ce) Temporarily disable the initiative.
|
2019-05-16 05:32:04 +03:00 |
|
Joonas Rikkonen
|
5f610caadd
|
(f0837188e) Bots now target only reported targets when the objective is not an order.
|
2019-05-16 05:31:48 +03:00 |
|
Joonas Rikkonen
|
4f825ce309
|
(dabdac1a8) Fix bots waiting where they should not wait.
|
2019-05-16 05:31:31 +03:00 |
|
Joonas Rikkonen
|
27506eb10f
|
(2aa8e6b24) Reduce the get item range.
|
2019-05-16 05:31:15 +03:00 |
|
Joonas Rikkonen
|
ddd61a9243
|
(6d28a11e5) Ignore platforms in pathfinder raycasts. Should fix #1450.
|
2019-05-16 05:30:58 +03:00 |
|
Joonas Rikkonen
|
7614642d93
|
(e7b2add9d) Merge branch 'human-ai' of https://github.com/Regalis11/Barotrauma-development into human-ai
|
2019-05-16 05:30:39 +03:00 |
|
Joonas Rikkonen
|
54a0164f89
|
(98501b696) Reduce the max accepted distance for repair tool ai operate.
|
2019-05-16 05:30:23 +03:00 |
|
Joonas Rikkonen
|
348f21598e
|
(439481a07) Set the random factor for initiative each time the objective changes and once per 5 secs when the idle is active. Change the formula. Fix the waiting after character has been unselected.
|
2019-05-16 05:30:06 +03:00 |
|
Joonas Rikkonen
|
ca3b5ae04b
|
(0976ef4d1) Fix repair hint text being displayed even when the item condition is not below the threshold. Move the GetHUDText method from shared to client project.
|
2019-05-16 05:29:50 +03:00 |
|
Joonas Rikkonen
|
32fe6e24de
|
(991f75225) Change the welding progress bar size.
|
2019-05-16 05:29:33 +03:00 |
|
Joonas Rikkonen
|
49ad45f34d
|
(0f4d3b087) Merge branch 'dev' into human-ai
|
2019-05-16 05:29:17 +03:00 |
|
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 |
|