4811ec796f767ada562b0fd09697883aa8de8272
(50447ac17) Inventory syncing fixes. Could be related to #768. - When moving an item from an inventory to another, create the event for the target inventory first, then for the inventory the item is being removed from. Otherwise clients would first drop the item, and then put it in the container with the next event, which works most of the time, but if the second event is delayed enough that the item is not within the character's reach by the time it arrives, the client will be unable to put it in the container and the item will just be dropped. - Fixed item velocities not being reset when they're dropped from a character's inventory. I'm not exactly sure why, but sometimes they had very high downwards velocities (even though the body was previously inactive), which caused them to launch through floors and made the previous inventory syncing issue much worse (because a delay of just a couple of frames was enough to move the item out of the character's reach).
Barotrauma
Copyright © Undertow Games 2017-2019
Before downloading the source code, please read the EULA.
If you have a question or an issue to report, please check our Contribution Guideline.
If you're interested in working on the code, either to develop mods or to contribute something to the repository, you will also find instructions in the Contribution Guideline.
Links:
Official Website: www.barotraumagame.com
Forums: http://undertowgames.com/forum/
Wiki: http://barotrauma.gamepedia.com/Barotrauma_Wiki
Prerequisities:
Windows
- Visual Studio with C# 7.0 support (VS 2017 or later recommended)
Linux
macOS
Description
Languages
C#
63.2%
C
26.8%
C++
5.9%
Shell
1.1%
Makefile
0.8%
Other
1.9%