Commit Graph

2756 Commits

Author SHA1 Message Date
Joonas Rikkonen
7cb70fa344 (73193fb71) Updated a couple of sound effects 2019-04-01 22:47:36 +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
11f2bf4b38 (f152bbbe1) Servers includes skill identifiers in CharacterInfo data sent to clients. Sending only the levels and assuming the client has the same skills in the same order made it difficult for servers to modify the skills without client-side modifications. Closes #1335 2019-04-01 14:27:11 +03:00
Joonas Rikkonen
3219479774 (f202305e0) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-01 14:26:57 +03:00
Joonas Rikkonen
e154492a05 (a4e1c30c0) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-01 14:26:43 +03:00
Joonas Rikkonen
0ca4a8db06 (169dbd4fd) Increased submarine masses to make it less easy for characters to push them around. 2019-04-01 14:26:29 +03:00
Joonas Rikkonen
7e67c20ccd (b99c0ef39) Fix the enemies not selecting another attack if they cannot reach the target. 2019-04-01 14:26:01 +03:00
Joonas Rikkonen
7971d8d3a7 (f0911ad58) Scale settings menu according to screen resolution, repositioned main menu tabs so that they don't overlap with the menu buttons 2019-04-01 14:25:46 +03:00
Joonas Rikkonen
5cc2806185 (3db48532f) Give joining players "None" permissions by default (so server hosts can automatically give players some permissions if they want to). Save client permissions using the name of the permission preset instead of listing all the permissions given by the preset. Partially implements #1334 2019-04-01 14:25:33 +03:00
Joonas Rikkonen
6ffb28b6fb (b9690c3b8) Improved settings screen layout 2019-04-01 14:25:18 +03:00
Joonas Rikkonen
0d0bf022b0 (20b8797d8) WIP los effect improvements to prevent weird-looking shadows at spots where two wall pieces meet 2019-04-01 14:25:04 +03:00
Joonas Rikkonen
54ad37081d (4ec4fe293) Fixed nullref exception when attempting to speak as a monster in single player. Closes #1374 2019-03-31 20:22:46 +03:00
Joonas Rikkonen
1d766ef349 (b6b2972ea) Fixed linked subs not getting docked correctly when loading a saved game. Closes #1381 2019-03-31 20:22:33 +03:00
Joonas Rikkonen
aeeacf6779 (932f9d67b) Fixed wire connections that have been done mid-round not working properly. Closes #1371 2019-03-31 19:13:39 +03:00
Joonas Rikkonen
9e1a4d8902 (718d22401) Don't attempt to send position updates for items that have no enabled physics body (e.g. attached items). Closes #1376 2019-03-31 19:13:24 +03:00
Joonas Rikkonen
ceb6bf673d (0bab4a8d4) More reliable item wall attaching syncing. The problem was similar as the one fixed in 0835d92: the server occasionally received the unreliable attach inputs after the reliable item drop message, preventing the character from attaching the item server-side because it was not in the character's inventory anymore. 2019-03-31 19:13:08 +03:00
Joonas Rikkonen
848b069ab2 (fc5127152) Fixed inability to select a submarine in the multiplayer campaign setup UI due to the PAX checks 2019-03-31 19:12:52 +03:00
Joonas Rikkonen
08fca479f5 (50d313d01) Fixed spectate button staying visible when a round ends while a client is in the lobby. 2019-03-31 19:12:40 +03:00
Joonas Rikkonen
fa2a338d73 (b8f75ee96) Fixed level inequality errors caused by 866621c. Accessing the level start/end location properties during level generation caused the seed of RandSync.Server to be changed. Now generating a new random location uses a new MTRandom instance and doesn't touch RandSync.Server. 2019-03-31 19:12:27 +03:00
Joonas Rikkonen
8668647049 (866621cd8) Display a warning on the status monitor when docked to an outpost ("Docked to X, undock before attempting to maneuver the submarine"). 2019-03-31 19:12:13 +03:00
Joonas Rikkonen
ea7f5a3b82 (0835d92e6) More reliable throw StatusEffect (= grenade explosion) syncing. Previously the clients would simply apply the statuseffects themselves when a client throws something, which most of the time didn't work because character inputs are sent unreliably and the item may have already been taken out from the character's inventory by a reliable NetEntityEvent by the time the throw input arrives. 2019-03-30 21:44:51 +02:00
Joonas Rikkonen
84121674b1 (050a72bf3) Server resets remote character inputs if no inputs have been received in the past 0.5 seconds. Previously the server would assume the inputs hadn't changed from the last known ones, which works well when there are brief networking hiccups that cause the server to run out of inputs for a few frames, but if it takes longer, we don't want to keep the character firing a welding tool or whatever else they were doing until the kill disconnect timer kicks in. 2019-03-30 21:44:37 +02:00
Joonas Rikkonen
c244b33fe8 (85018077f) HONK: Characters play Entrance of the Gladiators on the guitar when wearing a clown mask. Closes #1333 2019-03-30 15:35:07 +02:00
Joonas Rikkonen
8053f2ec9e (c748c569a) Made looping StatusEffect sounds usable (previously they never stopped or updated their position), moved client-specific StatusEffect code to the client project 2019-03-30 15:34:55 +02:00
Joonas Rikkonen
57a84f4b3d (5e82d9084) PropertyConditionals return a match when checking status tag inequality and the target has no status tags (e.g. checking if a character doesn't have a StatusEffect with a "poison" tag should return true even if the character has no active StatusEffects). 2019-03-30 15:34:42 +02:00
Joonas Rikkonen
7a32e07298 (49c530dbd) Fixed turrets not working if they're placed inside the submarine - a request from a sub builder who couldn't get indoors torpedo tubes to work :) 2019-03-30 15:34:14 +02:00
Joonas Rikkonen
267cdacbb4 (907891b3f) v0.8.9.8 2019-03-29 21:51:36 +02:00
Joonas Rikkonen
854c90c89a (e38a3fef5) Fixed characters not letting go of the character they're grabbing when the health interface is closed with Esc or by clicking outside the window. 2019-03-29 21:51:24 +02:00
Joonas Rikkonen
c9db9ec4ff (1631eb0fc) Added a null check to ContextualTutorial.IsFlooding 2019-03-29 21:51:11 +02:00
Joonas Rikkonen
0b098efbf6 (92a838f87) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-03-29 21:50:58 +02:00
Joonas Rikkonen
6f919a4de0 (f8907b59f) Added: Proper scaling based on resolution for VideoPlayer. Modified: IsFlooding check of contextual tutorial to require water volume 2019-03-29 21:50:44 +02:00
Joonas Rikkonen
140f1894d4 (400cf2cbd) Fixed highlight raster scale changing according to lightmap resolution 2019-03-29 17:39:43 +02:00
Joonas Rikkonen
45e33bca28 (3f574078d) Fixed items emitting light from inside containers in the sub editor. Closes #1365 2019-03-29 17:27:08 +02:00
Joonas Rikkonen
c80a3d1d5d (11190239d) Fixed autointeracting with contained items causing the parent to be selected in MP (e.g. picking up an ammunition box by interacting with the loader caused the loader to be selected) 2019-03-29 17:26:54 +02:00
Joonas Rikkonen
902e5e4493 (797046bbf) Fixed deselecting an item with Esc/E causing the character to interact with whatever the cursor is focused on. TODO: Fix autointeracting causing entities to be selected in MP (e.g. picking up an ammunition box by interacting with the loader causes the loader to be selected) 2019-03-29 17:26:40 +02:00
Joonas Rikkonen
d4d6a2ad30 (f16622a9d) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-03-29 17:26:26 +02:00
Joonas Rikkonen
4eba8faccf (b619092ec) Continue working on the Charybdis. Refactor enemy ai attack limb selection logic. Implement FallBackUntilCanAttack behaviour. 2019-03-29 17:26:12 +02:00
Joonas Rikkonen
a64096b5aa (24cde6cae) Add a static sight range. Considerably increase the hull sight ranges. 2019-03-29 17:25:58 +02:00
Joonas Rikkonen
57f8fe437b (2ae3a8227) Formatting 2019-03-29 17:25:43 +02:00
Joonas Rikkonen
ebe9af92c2 (a9f855db4) Fixed: order of checks in previous commit 2019-03-29 17:25:28 +02:00
Joonas Rikkonen
c1ac2bb5a9 (aa5cc0abe) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-03-29 17:25:14 +02:00
Joonas Rikkonen
ce8501adf3 (b05f3e3d1) Fixed: Flood check logic 2019-03-29 17:25:00 +02:00
Joonas Rikkonen
1e36126544 (ab44f999c) Fixed inability to open the pause menu if the cursor is on any UI element, fixed inability to close item UIs with esc if the cursor is not on the UI 2019-03-29 17:24:45 +02:00
Joonas Rikkonen
b375cd3be1 (db658d442) Keep oxygen percentage at the same level when resizing hulls in the sub editor (otherwise scaling up a hull will cause it to have less oxygen and vice versa) 2019-03-29 17:24:31 +02:00
Joonas Rikkonen
ddfd7274e9 (d5ea3c7d5) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-03-29 17:24:17 +02:00
Joonas Rikkonen
ca08b803dc (891ef87c3) Fixed: CrewManager throwing errors if changing resolutions when a crewmember is dead. Added: Scaling of the objective list when changing resolutions 2019-03-29 17:24:02 +02:00
Joonas Rikkonen
296ec8bab8 (d95fc9893) Fixed crashing when dragging waypoints in the sub editor due to waypoints not being assigned a prefab 2019-03-29 17:23:47 +02:00
Joonas Rikkonen
af1f8be4fa (ad3954bd2) Moved item HUD closing logic to Character.ControlLocal and removed it from ItemInventory. The deselection in ItemInventory was not synced with the server, causing the item to be immediately reselected after the HUD has been closed (and the logic was redundant anyway because it's also handled in Character). 2019-03-29 17:23:33 +02:00
Joonas Rikkonen
ce359f5309 (93669eac9) Fix cannot close pause menu by pressing esc. 2019-03-29 17:23:19 +02:00