This website requires JavaScript.
Explore
Help
Sign In
vlad.os
/
LuaCsForBarotraumaEP
Watch
0
Star
0
Fork
0
You've already forked LuaCsForBarotraumaEP
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
a3e67dd40a6c8b46e8dca6c036fefe4ad8ca7ab8
LuaCsForBarotraumaEP
/
Barotrauma
/
BarotraumaServer
/
Source
/
Items
T
History
Joonas Rikkonen
5c06210265
(c01fdfc22) Attempt to fix items dropping out of the inventory in multiplayer, part 527: Inventory.ServerRead first drops all items that are in incorrect slots from the inventory, and then places the current items into correct slots. I think the problem was that the items were not necessarily dropped at the exact position of the character, because the physics update is run between the item position update and reading the network event. This occasionally caused the item to end up in a position where the character can't pick it again when placing the items into correct slots. Now the position of the item is forced to the position of the character during the dropping, and the CanClientAccess check is not done on items that were already in the character's inventory.
2019-05-23 15:17:55 +03:00
..
Components
(1762f02b3) Merge branch 'dev' into human-ai
2019-05-16 05:08:22 +03:00
Inventory.cs
(c01fdfc22) Attempt to fix items dropping out of the inventory in multiplayer, part 527: Inventory.ServerRead first drops all items that are in incorrect slots from the inventory, and then places the current items into correct slots. I think the problem was that the items were not necessarily dropped at the exact position of the character, because the physics update is run between the item position update and reading the network event. This occasionally caused the item to end up in a position where the character can't pick it again when placing the items into correct slots. Now the position of the item is forced to the position of the character during the dropping, and the CanClientAccess check is not done on items that were already in the character's inventory.
2019-05-23 15:17:55 +03:00
Item.cs
(5c35a640e) Update tutorial-rework with dev
2019-03-27 20:52:47 +02:00