Joonas Rikkonen
7d0d669cdc
(8fd5fa292) Fix a stack overflow issue.
2019-05-16 05:40:19 +03:00
Joonas Rikkonen
ddd84a4f9e
(c45394988) Refactor and fix button interaction and access checks in the indoors steering manager.
2019-05-16 05:40:00 +03:00
Joonas Rikkonen
3575c8df52
(03ab09991) Load chinese fonts dynamically, removed unnecessary duplicate block from DynamicRenderAtlas
2019-05-16 05:39:25 +03:00
Joonas Rikkonen
674f5a656f
(65debb5e8) Remove HasAccessToPath method. Add CanAccessThroughDoor method and use it in GetNodePenalty method. Shouldn't anymore find paths to places where doesn't have access to. TODO: CheckDoorsInPath should ideally use the same code for checking the doors, but since it works ok, I didn't touch it (much). Merely reduced the interact distance.
2019-05-16 05:38:17 +03:00
Joonas Rikkonen
c060c90cba
(e3f599b5d) Go to objective checks the path access only once per second. Add notes.
2019-05-16 05:37:29 +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
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
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
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
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
b02565796a
(98f1dbf5e) Merge branch 'dev' into human-ai
2019-05-16 05:14:58 +03:00
Joonas Rikkonen
ff5a819ad3
(62a89ce6a) Refactor and fix priority calculations. WIP, but should already improve things.
2019-05-16 05:05:53 +03:00
Joonas Rikkonen
039d07f693
(a2943d8b7) Merge branch 'dev' into human-ai
2019-05-16 05:04:10 +03:00
Joonas Rikkonen
60f52375e6
(7788ec72a) Test issuing orders automatically.
2019-05-16 05:03:49 +03:00
Joonas Rikkonen
5af8170ac6
(372c6e60a) More automatic text scaling + merge fix
2019-05-06 14:15:40 +03:00
Joonas Rikkonen
a11e7db190
(78f064b46) Revert "Cherry pick from human-ai: Fix bots not knowing how to use the integrated controllers, effectively failing to use the doors with integrated buttons."
2019-05-03 13:49:23 +03:00
Joonas Rikkonen
bd659383b4
(1aa050263) Cherry pick from human-ai: Fix bots not knowing how to use the integrated controllers, effectively failing to use the doors with integrated buttons.
2019-05-03 13:48:48 +03:00
Joonas Rikkonen
fb21005258
(6f4bea467) Updated doors
2019-05-03 13:43:47 +03:00
Joonas Rikkonen
b551ae7999
(c1468d39d) Overhauled docking interface (WIP)
2019-05-03 13:39:54 +03:00
Joonas Rikkonen
c5452048d7
(d88b2f1f7) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-29 21:08:16 +03:00
Joonas Rikkonen
b3b1d1851d
(eda627512) Fixed MonoKickStart files needed by the dedicated server not being copied to the output directory in release builds
2019-04-29 21:08:00 +03:00
Joonas Rikkonen
46f5bd5b15
(99a5e8cf8) Fix bots not using the ladders when swimming on the water surface. + merge fix
2019-04-26 11:29:14 +03:00
Joonas Rikkonen
2aec2414be
(12d32b875) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-26 11:25:25 +03:00
Joonas Rikkonen
3eb883fbb3
(9253f5b70) Added libvlc.so to LinuxClient
2019-04-26 11:25:10 +03:00
Joonas Rikkonen
8919bf5c10
(2cf47ee24) Cherry pick some steering fixes from the human-ai branch: fix ladder usage while swimming.
2019-04-26 11:18:47 +03:00
Joonas Rikkonen
6262b3ea54
(ce8e185aa) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-16 17:12:09 +03:00
Joonas Rikkonen
bd07acf26d
(052ab6307) Use MonoKickstart on Linux so installing Mono is not required, fixed division by zero if the width of the server console window is 0
2019-04-16 17:11:49 +03:00
Joonas Rikkonen
373554ddfb
(461eade89) Merge branch 'dev' of github.com:Regalis11/Barotrauma-development into dev
2019-04-15 12:09:36 +03:00
Joonas Rikkonen
8a42bb3bbd
(add7a8fe6) Fixed: Error in localization when importing npc conversations. Added: proofread englishvanilla
2019-04-15 12:09:22 +03:00
Joonas Rikkonen
c4c49dfb10
(5f6bab490) Fixed AI characters being unable to open doors w/ the built-in buttons
2019-04-15 12:08:11 +03:00
Joonas Rikkonen
5a9b681c13
(8c99939f6) Fix bots dropping from ladders if there is a non-ladder node in the path (Especially on Typhon). The distance check was incorrect, but after correcting it, I decided that it probably causes more issues than it solves. If there is one node in the path that is not in the current ladder, but the node after that is, we can just follow the path to the node that is on the ladders. Remove an unnecessary IgnorePlatforms assignment. It's handled in the HumanAIController.
2019-04-08 19:17:35 +03:00
Joonas Rikkonen
14d0daf16d
(ccef21f63) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-06 17:49:31 +03:00
Joonas Rikkonen
45c1ed499a
(e326112f5) Increased discharge coil sound range and added camera shake to make it more noticeable when it's used
2019-04-06 17:49:18 +03:00
Joonas Rikkonen
0725e1c4b2
(1d7e76d1f) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-06 17:46:55 +03:00
Joonas Rikkonen
f958f5fb44
(248ac43ed) Added inventory icons for Physicorium items armor, helmet, ammunition box and spear + normal and explosive spear (not yet implemented)
2019-04-06 17:46:42 +03:00
Joonas Rikkonen
69c414dfc9
(34cca982f) Steering tweaks that should fix bots not being able to proceed on ladders when the next waypoint is not on the ladder but the one after that is.
2019-04-05 16:20:58 +03:00
Joonas Rikkonen
63eb4d64e5
f8b0295...0671290
2019-03-18 23:30:58 +02:00
Joonas Rikkonen
3301bed442
409d4d9...aeafa16 (merge human-ai)
2019-03-18 22:52:17 +02:00
Joonas Rikkonen
044fd3344b
2f107db...5202af9
2019-03-18 21:42:26 +02:00
Joonas Rikkonen
6c0679c297
38f1ddb...178a853: v0.8.9.1, removed content folder
2019-03-18 20:39:27 +02:00
Joonas Rikkonen
276798d88b
Fixed null exception in IndoordsSteeringManager. Closes #326
2018-03-10 18:47:59 +02:00
Joonas Rikkonen
b49f47d3d9
Ladder waypoint generation fix: waypoints are not just placed at the top and bottom of the ladders (and at hatches on the ladders), but above every platform along the ladders (-> waypoints work correctly on ladders spanning through multiple floors). + Some ladder climbing fixes in IndoorsSteeringManager.
2018-03-02 17:45:13 +02:00
Joonas Rikkonen
729f850175
Fixed a "sequence contains no elements" exception in IndoorsSteeringManager
2018-01-26 17:28:48 +02:00
Joonas Rikkonen
604fc65154
Human AI improvements & fixes:
...
- Replaced item name comparisons with Prefab.NameMatches (-> item names can be changed without breaking the AIs).
- Having an AIObjective set as the current order of the character doesn't automatically cause it to have a high priority. For example, the order to fix leaks has a low priority if there are no leaks to fix.
- AIObjectiveFixLeaks makes sure the character is wearing a diving suit before going to fix a leak. The characters used to run in and out of flooded rooms because the AIObjectiveFindSafety objective would become active as soon as the character entered the room, causing the character to run out, and then immediately run back because they are no longer in immediate danger of drowning, making the FixLeaks objective the most high-priority one.
- Characters attempt to find a room with no water in AIObjectiveIdle even if the character is wearing a diving suit.
- AIObjectiveFindSafety considers flooded rooms dangerous even if the character is wearing a diving suit (-> the character attempts to go into a more dry room instead of happily idling in the flooded one).
- Distance to a hull doesn't decrease its desirability nearly as much in AIObjectiveFindSafety (-> fixes characters not bothering to move into a non-flooded room if it's far away).
- AIObjectiveOperateItem makes sure the item is equipped before using it (-> characters can't weld leaks with the welder in their inventory).
2017-12-21 19:49:26 +02:00
Joonas Rikkonen
f46dc5da28
Water flow logic tweaking:
...
- Less fluctuation, water doesn't constantly flow back and forth through gaps.
- Flowing water pushes characters around much more heavily, and the force is applied to the collider in addition to the limbs.
- Vertical gaps don't push characters up/down unless the character is roughly above/below the gap.
+ Renamed some fields in the hull and gap classes (Volume -> WaterVolume, FullVolume -> Volume, public fields start with a capital letter)
2017-10-10 21:07:45 +03:00
Joonas Rikkonen
a8ec821382
Handcuffed AICharacters can't climb ladders
2017-08-08 21:17:43 +03:00
Joonas Rikkonen
bf5a0746ad
Merge branch 'master' of https://github.com/Faerdan/Barotrauma into Faerdan-master
...
Conflicts:
Barotrauma/BarotraumaClient/Source/Map/MapEntity.cs
Barotrauma/BarotraumaClient/Source/Screens/GameScreen.cs
Barotrauma/BarotraumaShared/Source/Characters/Character.cs
Barotrauma/BarotraumaShared/Source/Items/Item.cs
2017-07-05 19:32:34 +03:00