Joonas Rikkonen
9c964b7843
(7d7010579) Fix ai dialog about not being able to find targets. Use a higher thershold for rescue objectives when it's an order.
2019-05-16 06:14:25 +03:00
Joonas Rikkonen
5f524ddd3f
(457e4ebe5) Fixed: Submarine navigation labels being translated when loading a sub in editor
2019-05-16 06:13:49 +03:00
Joonas Rikkonen
ce7b9c4f52
(94ad97066) Refactor combat objective. The bots should now be able to reload and seek more ammunition. When they run out of ammunition, they first try to use another weapon and only if no other weapon is found, they seek more ammunition. Had to change the contain item and get item objectives a bit. Hopefully doesn't break things too much.
2019-05-16 06:13:15 +03:00
Joonas Rikkonen
cb83984e80
(4ca668169) Fixed: Conflict
2019-05-16 05:58:48 +03:00
Joonas Rikkonen
0a67590572
(21a808335) Added: 4k fixes
2019-05-16 05:58:32 +03:00
Joonas Rikkonen
884360216f
(de60c0961) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-05-16 05:50:56 +03:00
Joonas Rikkonen
fd7dfebd3a
(50c25dbf6) Added a "back" button that closes the credits, minor credits tweaks
2019-05-16 05:50:39 +03:00
Joonas Rikkonen
480bba392c
(20fcd3853) Optimizations.
2019-05-16 05:47:52 +03:00
Joonas Rikkonen
068089ae5c
(d622ac851) Fix double updates of current orders.
2019-05-16 05:47:36 +03:00
Joonas Rikkonen
306cb77167
(6facb21fe) Reminder to self: save before committing
2019-05-16 05:46:29 +03:00
Joonas Rikkonen
ce1aa39a4b
(b1241e3dd) GUIMessageBoxes use relative sizes
2019-05-16 05:46:12 +03:00
Joonas Rikkonen
b9cca44ce2
(8045205b5) Test a velocity based calculation for skipping the nodes in steering.
2019-05-16 05:45:04 +03:00
Joonas Rikkonen
f8090d470e
(5670a7c58) Don't get stuck if cannot use the button.
2019-05-16 05:44:48 +03:00
Joonas Rikkonen
ec7e45e021
(914b4d519) Set Reactor window max size to be slightly larger, fixed ItemInventory text wrapping to work better on different resolutions
2019-05-16 05:43:59 +03:00
Joonas Rikkonen
5ec107bf83
(0d96091e5) Adjusted layout spacing on Reactor to make the warning labels slightly more readable on Brazilian Portugese
2019-05-16 05:43:40 +03:00
Joonas Rikkonen
de2246fe57
(e0d673b0d) Test: Don't calculate the distance to the buttons when seeking path. Instead, check the distance when checking the doors. Allows the bots to access the Remora ballast through the door where the button is a bit farther from the door than usually.
2019-05-16 05:42:51 +03:00
Joonas Rikkonen
828150e0ae
(9d8f050b8) Added text wrapping to ItemInventory titles and changed pump GUI In/Out text to use a smaller font
2019-05-16 05:42:34 +03:00
Joonas Rikkonen
1d5de494cd
(a185ec0cd) Don't report on broken items that have condition above the threshold. Optimize and fix.
2019-05-16 05:41:25 +03:00
Joonas Rikkonen
79d01822d2
(8015dd67d) Show a language selection prompt when launching the game for the first time (WIP)
2019-05-16 05:41:09 +03:00
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
704e0731c9
(a73e09604) Fixed inventory locking up when rewiring items with a Controller component (e.g. periscopes). Don't open the health interface by clicking on the healthbar when using a controller.
2019-05-16 05:39:42 +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
01743eb7e1
(6fe53068b) Add a wait timer at the beginning and a temporal spread on creating the autonomous objectives. Should improve performance, because the find target loops are thus spread a bit.
2019-05-16 05:36:58 +03:00
Joonas Rikkonen
70ffc27667
(e80994d9b) Refactor get item.
2019-05-16 05:34:19 +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
27506eb10f
(2aa8e6b24) Reduce the get item range.
2019-05-16 05:31:15 +03:00
Joonas Rikkonen
65e284bf7c
(0fde6c604) Ignore dangerous targets.
2019-05-16 05:18:37 +03:00
Joonas Rikkonen
2ae54a01a5
(ac7ab10b0) Pass AIObjectiveManager reference in the constructors instead of methods so that we can always access it.
2019-05-16 05:14:20 +03:00
Joonas Rikkonen
d0795791e7
(3bb9485ad) Add automatic orders as objectives instead of orders so that we can take advantage of the existing priority system. Turn the priority values defined in the xml into modifiers.
2019-05-16 05:04:53 +03:00
Joonas Rikkonen
2eaf22683d
(ae643deeb) Added alive checks to a couple of diving gear status effects (don't consume tanks when dead)
2019-04-01 22:47:22 +03:00
Joonas Rikkonen
ec7e23061b
(38b5d9aad) Experimental changes to syncing ragdolled (unconscious/dead) characters: - Higher error tolerance when syncing the positions. It's often hard to get the main limb exactly to the same position as the collider, because the positions of the limbs aren't synced and the pose of the ragdoll may differ between the server and clients. Increasing the tolerance makes it less likely for dead/unconscious characters to "twitch" when the game attempts to force the main limb to the position of the collider. - If the position of the ragdoll differs from the position of the collider so much that CheckDistFromCollider disables limb collisions, apply an additional force to all limbs to force the ragdoll to the correct position. Otherwise the ragdoll can occasionally start "hanging" midair, clipping through solid objects, because the main limb's pull joint doesn't necessarily have enough force to pull the entire ragdoll up to the collider.
2019-04-01 22:47:03 +03:00
Joonas Rikkonen
72e7cb6e99
(b0feecc1f) Use the code that includes wall avoidance for wandering also in AIObjectiveFindSafety and AIObjectiveGetItem when the target is unreachable.
2019-03-28 12:35:01 +02:00
Joonas Rikkonen
080ac78ded
(5c35a640e) Update tutorial-rework with dev
2019-03-27 20:52:47 +02:00
Joonas Rikkonen
3f82c9a2cb
(f417b026f) Fetched: Changes for playing video tutorial from local branch
2019-03-27 20:45:14 +02:00
Joonas Rikkonen
63eb4d64e5
f8b0295...0671290
2019-03-18 23:30:58 +02:00
Joonas Rikkonen
23687fbf2f
aeafa16...4d3cf73
2019-03-18 22:57:05 +02:00
Joonas Rikkonen
3301bed442
409d4d9...aeafa16 (merge human-ai)
2019-03-18 22:52:17 +02:00
Joonas Rikkonen
6c0679c297
38f1ddb...178a853: v0.8.9.1, removed content folder
2019-03-18 20:39:27 +02:00
Joonas Rikkonen
07d3d69040
Equipped items can be swapped by double-clicking, fixed inventories getting messed up when swapping multi-slot items fails (e.g. drag a jumpsuit on an equipped diving suit).
2018-03-02 15:24:54 +02:00
Joonas Rikkonen
b84c965be3
More AI fixes/improvements:
...
- AI characters can refuel the reactor when needed.
- AIObjectiveContainItem.CanBeCompleted returns true if the target item cannot be obtained or if the container cannot be reached.
- AI characters only weld leaks that are part of some submarine (i.e. not ruins).
2017-12-28 19:44:48 +02:00
Joonas Rikkonen
d074d3d443
Crew AI fixes:
...
- Characters can use oxygenite shards (or any other item with an "oxygensource" tag) in diving suits/masks.
- AIObjectiveFindDivingGear doesn't count as being completed if the character has diving gear in their inventory unless the character has equipped the gear.
- AIObjectiveGetItem doesn't count as being completed if equipping the target item is required and the character hasn't equipped it yet.
2017-12-28 12:53:23 +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
575b643c62
Added "user" parameter to Inventory.PutItem and Inventory.TryPutItem. + More descriptive wiring logging: the logs don't list all the wires in a connectionpanel but only the changes a player does to the wiring. Disconnecting wires by picking them up and wiring done by the host are also logged now.
2017-07-17 23:27:31 +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
Joonas Rikkonen
64ad5e5003
Removed unnecessary using directives
2017-07-05 18:35:09 +03:00
juanjp600
4d225c65f2
Updated to MonoGame 3.6 + Directory refactor
...
- Barotrauma's projects are in the Barotrauma directory
- All libraries are in the Libraries directory
- MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?)
- NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred
- Removed Content/effects.mgfx as it didn't seem to be used anywhere
- Removed some references to Subsurface directory
- Renamed Launcher2 to Launcher
2017-06-27 09:52:57 -03:00