Commit Graph

1738 Commits

Author SHA1 Message Date
Joonas Rikkonen 9155b404ea (078e3646e) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-18 17:31:02 +03:00
Joonas Rikkonen 1e85abf09d (8cbc4391a) Disable find safety while going somewhere in the sea with an order. 2019-05-18 17:30:46 +03:00
Joonas Rikkonen 7155525d5b (4d2ab0cd2) Reset the find safety priority when a safe hull has been reached or when there is no danger to flee from. Use wandering instead of resetting the steering (unfortunately doesn't work in very small hulls like airlocks). 2019-05-18 17:30:30 +03:00
Joonas Rikkonen 2945d103f9 (f825eae18) Fix follow objective not keeping the distance. 2019-05-18 17:30:12 +03:00
Joonas Rikkonen 3660df1906 (bdf4ed547) Store the last safe hull and use it if cannot find a new. 2019-05-18 17:29:56 +03:00
Joonas Rikkonen 9521f0ae2f (17fdbc9de) New path is also needed if the old becomes unreachable. Ignore the new path if it's unreachable. 2019-05-18 17:29:40 +03:00
Joonas Rikkonen 75640a321f (f4acd46ef) Don't enable the "report leaks" button inside ruins 2019-05-18 17:29:24 +03:00
Joonas Rikkonen 6463face3b (ad01c2907) Don't set the path unreachable if cannot press buttons, because we might just be too far (if the waypoint is so far). Happens when trying to enter Dugong. 2019-05-18 17:29:06 +03:00
Joonas Rikkonen f304dab929 (67f76f467) Ignore submarine in the pathfinder raycasts, because it can prevent the bots to steer into the sub from outside of it. Doesn't seem to have any negative implications. 2019-05-18 17:28:51 +03:00
Joonas Rikkonen 3d91dfa76b (910c0c784) Use squared distance instead of distance. 2019-05-18 17:28:35 +03:00
Joonas Rikkonen d84832296c (cd17ab725) Cleanup. 2019-05-18 17:28:18 +03:00
Joonas Rikkonen c7ceed07c7 (7a7e715ad) Fixed report messages not going through to some clients when there are multiple clients on the server. Happened because the server would reuse the same OrderChatMessage instance for all clients, and it would get assigned the chat message ID according to the last recipient, which may not be the correct ID for other clients. 2019-05-18 17:28:01 +03:00
Joonas Rikkonen 382e05facd (75f4c1e5a) Apparently this case is already handled in the indoorssteering. 2019-05-18 17:27:44 +03:00
Joonas Rikkonen 0b8005f721 (5154265e6) Don't round ItemLabel text positions to the nearest pixel (causes weird looking "jitter" when the sub moves) 2019-05-18 17:27:25 +03:00
Joonas Rikkonen a97e356b0a (fb0c73cf5) Added propeller damage to the shuttle engine 2019-05-18 17:27:09 +03:00
Joonas Rikkonen c07d124315 (337c61e36) Fixed ruin walls being almost impossible to cut from inside the ruins due to the raycasts hitting colliders that prevent the subs from entering the ruins 2019-05-18 17:26:52 +03:00
Joonas Rikkonen e63ffe652e (5e16139ed) Added "OrderGiver" field to AI orders, always show reports from the currently controlled character (even if the report is not targeted for the character's class) 2019-05-18 17:26:34 +03:00
Joonas Rikkonen 4dfd5f6fa2 (4df232b6e) Show the campaign disclaimer also if the player goes directly to the multiplayer tabs. Closes #1468 2019-05-18 17:26:16 +03:00
Joonas Rikkonen ac92260502 (9a949c645) Removed a minute of silence from the end of the "Objective Complete" track. Closes #1460 2019-05-18 17:26:00 +03:00
Joonas Rikkonen b4919df766 (6bf70233b) Fixed invisible directional sonar indicators. Closes #1472 2019-05-18 17:25:43 +03:00
Joonas Rikkonen fb206ee5a3 (71a7f5c3c) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-18 17:25:27 +03:00
Joonas Rikkonen cb519b455d (e7e775e7b) Fixed non-translated "Toggle Battery Output" display text in Orca, increased the size of the docking labels in Bunyip to create more space for translated texts 2019-05-18 17:25:11 +03:00
Joonas Rikkonen 75b88e0c18 (33abbb810) Fixed: Interfaces that were too small on 4k by removing the use of maxsize & adding scale related multipliers to absolute values 2019-05-18 17:24:54 +03:00
Joonas Rikkonen 73bfd8d4a4 (186be436f) Use underwater scooter with LMB 2019-05-18 17:24:37 +03:00
Joonas Rikkonen 5fdc5f65f3 (d9779ffb1) Don't reset the language when resetting settings to defaults 2019-05-18 17:24:20 +03:00
Joonas Rikkonen d5594ee591 (ee3387a0d) Attempted fix for bots occasionally getting stuck between nodes and reversing to a previous node. Only replace the previous path when the cost of it is lower than the current path's cost (or if the target is not at the same place/ not yet assigned). Didn't have enough time to test, not sure if it works. 2019-05-18 17:23:13 +03:00
Joonas Rikkonen f4ed2ed217 (28452a31b) Clean up an add a note. 2019-05-18 17:22:57 +03:00
Joonas Rikkonen 1e0d7daa56 (bfc857b70) Ignore the requirement for being able to interact with a character while following the player. 2019-05-18 17:22:41 +03:00
Joonas Rikkonen 3cc0b65946 (b1fa1d68c) Fix stairs not being properly assigned due to a failing raycast. 2019-05-18 17:22:23 +03:00
Joonas Rikkonen b2c37f4277 (b07aa2ac0) Added all in-game editable ItemComponent property names to EnglishVanilla, added "Light color" to all languages 2019-05-18 17:18:27 +03:00
Joonas Rikkonen 7497fec62a (558678b4c) SerializableProperty names can be translated (the tags are "ClassName.PropertyName", e.g. "LightComponent.LightColor") 2019-05-18 17:18:10 +03:00
Joonas Rikkonen 53cf6c2fef (0dbd7be3d) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-18 17:17:52 +03:00
Joonas Rikkonen f077a92f5e (965abc29d) If the target sub is not the same as the current sub, need to take the difference into account in sim positions. 2019-05-18 17:17:36 +03:00
Joonas Rikkonen 6055f10c5a (0744e6c3f) Use keybinds to AZERTY when language is set to French 2019-05-18 17:17:20 +03:00
Joonas Rikkonen f605651966 (683b11c00) High-res shuttle preview images + merge fix 2019-05-16 08:49:01 +03:00
Joonas Rikkonen 5438a65852 (f2c7469a6) Workarounds to missing label translations: use "High pressure" for the "WARNING: High pressure" label in the tutorial outpost, use "Warning" and "Reactor temp." for "Reactor temp caution". Also made the labels a little larger to accommodate longer words in some of the translations. 2019-05-16 07:04:47 +03:00
Joonas Rikkonen ce05d50a2b (9c4e324eb) Fixed chat messages going slightly off-frame on top of the in-game chat box. 2019-05-16 07:04:27 +03:00
Joonas Rikkonen 851e6f76cd (38baa1f78) Changed tag layout in Workshop screen to prevent overflows 2019-05-16 07:04:08 +03:00
Joonas Rikkonen 48a232533b (217571764) Fixed "No living players on the server and Jouer vous-même" again (TODO: note about this to the translator so it gets fixed at their end as well) 2019-05-16 07:03:50 +03:00
Joonas Rikkonen 5ff09db449 (eff616485) Don't show mission info in the round summary if there's no localized "mission failed" text available and there's nothing else to show. TODO: add the text to localization so this isn't needed 2019-05-16 07:03:32 +03:00
Joonas Rikkonen d03e1995bc (375481a35) Write save times as unix time values and display them using the system's current date format 2019-05-16 07:03:15 +03:00
Joonas Rikkonen e42a0a33a4 (2d9e06198) Attempt to fix incorrectly displayed Chinese capture device names (haven't been able to reproduce) 2019-05-16 07:02:57 +03:00
Joonas Rikkonen e7d1ae2cda (b45ff81a1) Log an error if a client can't find the prefab for an item spawned by the server 2019-05-16 07:02:40 +03:00
Joonas Rikkonen 1be3897197 (68f3eb5ff) Fixed clients reading character events incorrectly if a character has selected another character, but a client doesn't know about the selected character being spawned yet. 2019-05-16 07:02:22 +03:00
Joonas Rikkonen 761726c9b1 (24d02be32) Revert 8e2e2526 ("Spawn multiple monsters using the same spatial and temporal spreading logic as in events". Caused entity IDs to often differ between the server and clients in monster missions, leading to all sorts of syncing issues (the most frequent being IndexOutOfRange exceptions when attempting to read data for an incorrect entity). 2019-05-16 07:02:02 +03:00
Joonas Rikkonen d72187bbd0 (2a25dbfad) Wrap minimap room info texts 2019-05-16 07:01:44 +03:00
Joonas Rikkonen 19b4caa576 (a7fed8657) More punctuation fixes 2019-05-16 07:01:26 +03:00
Joonas Rikkonen c18f72e12e (13b4e32e2) Added a method that can be used to add punctuation between strings, while taking into account special rules in some languages (e.g. a breaking space before a colon in French). Removed colons from a bunch of menu labels where they're not necessary. 2019-05-16 07:01:08 +03:00
Joonas Rikkonen 63af8ddac8 (b207c589d) Translate the "privacy policy" text in the main menu (got the texts from Daedalic's privacy policy page, should be correct even though the didn't come from the translators) 2019-05-16 07:00:50 +03:00
Joonas Rikkonen 674b845e9b (8c44620c0) Optimized dynamic font loading (don't get existing texture date with GetData every time a new symbol needs to be rendered, but save the pixel buffer and add to it as needed) 2019-05-16 07:00:33 +03:00