a3eabfabac
(2400ab447) Revert "Improved New Game panel" (easier to do the columns with layoutgroups than by setting the contents to half the width)
Joonas Rikkonen
2019-04-01 22:51:50 +03:00
8b12f85f48
(b6f451292) Moved crafting recipes from the fabricator xml to the xmls of the items. Makes it possible for modders to add new craftable items without having to modify the fabricators. Closes#1001
Joonas Rikkonen
2019-04-01 22:51:37 +03:00
508bd960be
(b378675eb) Improved New Game panel
Joonas Rikkonen
2019-04-01 22:51:21 +03:00
8cb4702a5a
(cda6af1ad) Increase the steering speed when going to eat. TODO: Adjusting the weight shouldn't have any effect on character speed. The steering vector should be normal until multiplied by the movement speed in the Update function.
Joonas Rikkonen
2019-04-01 22:50:53 +03:00
5d6cbb5898
(b522c4551) Don't assign the attackinglimb if we shouldn't be attacking. Fixes Hammerhead not falling back after hitting the sub.
Joonas Rikkonen
2019-04-01 22:50:39 +03:00
d511ecd4e3
(5218c43a0) Server sends the IDs of both selected characters and selected items to the clients. Previously this wasn't needed, because it wasn't possible to have both a character and an item selected at the same time. Fixes characters floating mid-air client-side when dragging others up stairs, and probably some other undiscovered bugs as well.
Joonas Rikkonen
2019-04-01 22:50:11 +03:00
ae6b797d73
(c2e1b24e2) Fixed remote characters sliding slowly to the left in multiplayer. Happened because linear velocity was written with an accuracy of 12 bits, causing the lowest possible value to be about 1.5 cm/s. Now extremely low velocity values are rounded down to zero. The server also now quantizes the LinearVelocity/AngularVelocity values, which should make position syncing a little more reliable because the server runs the physics using the same rounded values as the clients.
Joonas Rikkonen
2019-04-01 22:49:58 +03:00
9fffb05625
(9db186429) Double the wall priorioties for crawlers and mudraptors, so that they remain effectively the same after the code changes.
Joonas Rikkonen
2019-04-01 22:49:28 +03:00
3062e4c705
(1a1137b26) Charybdis now also targets the walls. Tweak Charybdis' attacks and priorities. Fix targeting walls for non-aggressiveboarders. Don't double the wall priority.
Joonas Rikkonen
2019-04-01 22:49:15 +03:00
fc9a3893f6
(b9babfcf6) Merge branch 'ragdoll-syncing-improvements' into dev
Joonas Rikkonen
2019-04-01 22:49:01 +03:00
a0e1ba52eb
(0bd92547e) Show ping direction when adjusting the direction slider even if directional ping is not enabled. Closes#1298
Joonas Rikkonen
2019-04-01 22:48:47 +03:00
885c30f70d
(10a8ba8fc) Fix reversing getting reset when the target is not in range causing issues in steering.
Joonas Rikkonen
2019-04-01 22:48:33 +03:00
ed3d5fadeb
(f46ddf83f) Fixed calyxanide not being usable in syringe guns
Joonas Rikkonen
2019-04-01 22:48:20 +03:00
cbb3216466
(633f44200) Emptying the "required items" field of an item in the sub editor now removes the item requirements (instead of using the default ones)
Joonas Rikkonen
2019-04-01 22:48:03 +03:00
4558d8b919
(f17acef79) Added the new electrical discharge sound to the project file
Joonas Rikkonen
2019-04-01 22:47:50 +03:00
7cb70fa344
(73193fb71) Updated a couple of sound effects
Joonas Rikkonen
2019-04-01 22:47:36 +03:00
2eaf22683d
(ae643deeb) Added alive checks to a couple of diving gear status effects (don't consume tanks when dead)
Joonas Rikkonen
2019-04-01 22:47:22 +03:00
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.
Joonas Rikkonen
2019-04-01 22:47:03 +03:00
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
Joonas Rikkonen
2019-04-01 14:27:11 +03:00
0ca4a8db06
(169dbd4fd) Increased submarine masses to make it less easy for characters to push them around.
Joonas Rikkonen
2019-04-01 14:26:29 +03:00
7e67c20ccd
(b99c0ef39) Fix the enemies not selecting another attack if they cannot reach the target.
Joonas Rikkonen
2019-04-01 14:26:01 +03:00
7971d8d3a7
(f0911ad58) Scale settings menu according to screen resolution, repositioned main menu tabs so that they don't overlap with the menu buttons
Joonas Rikkonen
2019-04-01 14:25:46 +03:00
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
Joonas Rikkonen
2019-04-01 14:25:33 +03:00
0d0bf022b0
(20b8797d8) WIP los effect improvements to prevent weird-looking shadows at spots where two wall pieces meet
Joonas Rikkonen
2019-04-01 14:25:04 +03:00
54ad37081d
(4ec4fe293) Fixed nullref exception when attempting to speak as a monster in single player. Closes#1374
Joonas Rikkonen
2019-03-31 20:22:46 +03:00
1d766ef349
(b6b2972ea) Fixed linked subs not getting docked correctly when loading a saved game. Closes#1381
Joonas Rikkonen
2019-03-31 20:22:33 +03:00
aeeacf6779
(932f9d67b) Fixed wire connections that have been done mid-round not working properly. Closes#1371
Joonas Rikkonen
2019-03-31 19:13:39 +03:00
9e1a4d8902
(718d22401) Don't attempt to send position updates for items that have no enabled physics body (e.g. attached items). Closes#1376
Joonas Rikkonen
2019-03-31 19:13:24 +03:00
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.
Joonas Rikkonen
2019-03-31 19:13:08 +03:00
848b069ab2
(fc5127152) Fixed inability to select a submarine in the multiplayer campaign setup UI due to the PAX checks
Joonas Rikkonen
2019-03-31 19:12:52 +03:00
08fca479f5
(50d313d01) Fixed spectate button staying visible when a round ends while a client is in the lobby.
Joonas Rikkonen
2019-03-31 19:12:40 +03:00
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.
Joonas Rikkonen
2019-03-31 19:12:27 +03:00
8668647049
(866621cd8) Display a warning on the status monitor when docked to an outpost ("Docked to X, undock before attempting to maneuver the submarine").
Joonas Rikkonen
2019-03-31 19:12:13 +03:00
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.
Joonas Rikkonen
2019-03-30 21:44:51 +02:00
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.
Joonas Rikkonen
2019-03-30 21:44:37 +02:00
c244b33fe8
(85018077f) HONK: Characters play Entrance of the Gladiators on the guitar when wearing a clown mask. Closes#1333
Joonas Rikkonen
2019-03-30 15:35:07 +02:00
8053f2ec9e
(c748c569a) Made looping StatusEffect sounds usable (previously they never stopped or updated their position), moved client-specific StatusEffect code to the client project
Joonas Rikkonen
2019-03-30 15:34:55 +02:00
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).
Joonas Rikkonen
2019-03-30 15:34:42 +02:00
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 :)
Joonas Rikkonen
2019-03-30 15:34:14 +02:00
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.
Joonas Rikkonen
2019-03-29 21:51:24 +02:00
c9db9ec4ff
(1631eb0fc) Added a null check to ContextualTutorial.IsFlooding
Joonas Rikkonen
2019-03-29 21:51:11 +02:00
6f919a4de0
(f8907b59f) Added: Proper scaling based on resolution for VideoPlayer. Modified: IsFlooding check of contextual tutorial to require water volume
Joonas Rikkonen
2019-03-29 21:50:44 +02:00
140f1894d4
(400cf2cbd) Fixed highlight raster scale changing according to lightmap resolution
Joonas Rikkonen
2019-03-29 17:27:23 +02:00
45e33bca28
(3f574078d) Fixed items emitting light from inside containers in the sub editor. Closes#1365
Joonas Rikkonen
2019-03-29 17:27:08 +02:00
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)
Joonas Rikkonen
2019-03-29 17:26:54 +02:00
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)
Joonas Rikkonen
2019-03-29 17:26:40 +02:00
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
Joonas Rikkonen
2019-03-29 17:24:45 +02:00
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)
Joonas Rikkonen
2019-03-29 17:24:31 +02:00
ca08b803dc
(891ef87c3) Fixed: CrewManager throwing errors if changing resolutions when a crewmember is dead. Added: Scaling of the objective list when changing resolutions
Joonas Rikkonen
2019-03-29 17:24:02 +02:00
296ec8bab8
(d95fc9893) Fixed crashing when dragging waypoints in the sub editor due to waypoints not being assigned a prefab
Joonas Rikkonen
2019-03-29 17:23:47 +02:00
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).
Joonas Rikkonen
2019-03-29 17:23:33 +02:00
ce359f5309
(93669eac9) Fix cannot close pause menu by pressing esc.
Joonas Rikkonen
2019-03-29 17:23:19 +02:00
ce2131df42
(e4064088d) Close in-game interfaces when pressing esc. Currently only registered when the mouse is over the interface. Originally I intended to make it so that pressing esc always closes the open interface. But let's test this.
Joonas Rikkonen
2019-03-29 17:23:05 +02:00
817a6100d7
(f4680f78f) Made AI characters less eager to load extra fuel to the reactor (the load needs to be 2x higher than the theoretical max output of the reactor). In some subs the reactor's max output is so low that extra fuel is frequently needed, causing AI characters to constantly put in and take out rods as the load fluctuates. + The AI characters now put the excess rods in their inventory instead of dropping them.
Joonas Rikkonen
2019-03-29 17:22:36 +02:00
c7b89aa333
(505161632) Added PAX to the vanilla content package
Joonas Rikkonen
2019-03-29 17:22:22 +02:00
4c1726ed63
(ad2b7c007) Disable editing the vanilla subs in release builds (The subs can still be saved with another name -> can create copies). Change and and add some texts.
Joonas Rikkonen
2019-03-29 17:22:07 +02:00
db1d0acac9
(4d569f38c) AI characters can take out excess fuel rods from the reactor, and calculate if more fuel is needed to keep the output at a suitable level instead of only adding more fuel when the reactor is completely empty.
Joonas Rikkonen
2019-03-29 17:21:52 +02:00
c0cf060526
(7d7e17231) Implement reversing and make it as an option for attacks. Detach latching with "F" (debug feature).
Joonas Rikkonen
2019-03-29 17:20:54 +02:00
b9574dde2d
(361a8d556) LevelResource fixes: - If collecting the resource doesn't require any items, allow it to be picked up withour a repair tool. Closes#1325 - Fixed deattach timer not being synced (the methods were implemented, but the server never sent any events). Closes#1292 - Fixed ridiculously small mineral colliders that made it hard to hit them with the plasma cutter (body size was not updated when the sprites were changed?).
Joonas Rikkonen
2019-03-28 18:12:37 +02:00
c76fb32e15
(5bab406f1) Fixed "allowInsideFixture" raycasts not working correctly - checking if the ray is inside the AABB is not enough, we also need to take the shape and rotation of the fixture into account.
Joonas Rikkonen
2019-03-28 18:12:23 +02:00
f51c9c14df
(54ae135f5) Items can be dragged and dropped directly from the inventory into containers without having to select the container first.
Joonas Rikkonen
2019-03-28 18:11:40 +02:00
4ce2316cb2
(8339ae744) Don't allow autointeracting with contained items (e.g. picking up an ammunition box from a loader) if another item is currently selected. Makes it less likely for players to accidentally pick up items from containers when they deselect another item.
Joonas Rikkonen
2019-03-28 18:10:13 +02:00
b9556280fa
(1f3241833) Fixed chatmessage "popups" overlapping with the report buttons when the chatbox is hidden, color the name of the speaker according to their job
Joonas Rikkonen
2019-03-28 18:09:59 +02:00
3ef9374314
(2464ca95d) Implement random factor (0-100%) for the cooldowns. Add some randomness to the attacks of all new characters.
Joonas Rikkonen
2019-03-28 18:09:32 +02:00
44a8bfce08
(808e7257d) Attempt to fix the issue where bots are not avoiding walls properly while wandering around.
Joonas Rikkonen
2019-03-28 18:09:05 +02:00
0c15748429
(8bea0a96b) Removed minimum conditions from battery deconstruction output (= deconstructing an empty battery still gives the materials used to craft the battery). Closes#1356
Joonas Rikkonen
2019-03-28 12:40:22 +02:00
bcd779fe78
(519124ad1) Fixed items with no sprite crashing the game. Closes#1153
Joonas Rikkonen
2019-03-28 12:40:08 +02:00
a8222e429f
(edb24c37f) Fixed ItemComponents overwriting the Msg-tags ("ItemMsgPressSelect" etc) with the text fetched from the text xml, preventing the texts from being translated after the sub has been saved.
Joonas Rikkonen
2019-03-28 12:36:11 +02:00
d7526934e6
(f7209b813) Draw the sprites of the entities that are being dragged in the sub editor (instead of just a red rectangle).
Joonas Rikkonen
2019-03-28 12:35:57 +02:00
13870a31c4
(962c58b6d) Hide very small resolution options from the settings menu. Addresses (but doesn't fully fix) #1253
Joonas Rikkonen
2019-03-28 12:35:43 +02:00
9849e76f76
(5d39bdb07) Disabled reactors cooling down when underwater. If we want to include this, we need to explain to the player that they may need extra fuel to keep the reactor running when the reactor room is flooded.
Joonas Rikkonen
2019-03-28 12:35:15 +02:00
72e7cb6e99
(b0feecc1f) Use the code that includes wall avoidance for wandering also in AIObjectiveFindSafety and AIObjectiveGetItem when the target is unreachable.
Joonas Rikkonen
2019-03-28 12:35:01 +02:00
05f12a144b
(afed4e8fa) Check that the container is in the same hull than the character before allowing to contain items. Might solve the floating diving suit mentioned in #1362.
Joonas Rikkonen
2019-03-28 12:34:47 +02:00
e09740d31e
(371088346) Merge branch 'dev' of github.com:Regalis11/Barotrauma-development into dev
Joonas Rikkonen
2019-03-28 12:34:18 +02:00