Setting ragdoll position without limbs going through walls, rotating entire ragdoll, using combined network messages client->server, fixed fabricators

This commit is contained in:
Regalis
2015-11-08 22:20:29 +02:00
parent 5a21d64b3a
commit cd48d12be6
31 changed files with 551 additions and 313 deletions
@@ -373,6 +373,8 @@ namespace Barotrauma
public override void ReadNetworkData(NetworkEventType type, NetBuffer message)
{
character.ClearInput(InputType.Use);
for (int i = 0; i<5; i++)
{
ushort itemId = message.ReadUInt16();
@@ -391,17 +393,11 @@ namespace Barotrauma
List<ushort> newItemIDs = new List<ushort>();
try
for (int i = 5; i < capacity; i++)
{
while (message.Position <= message.LengthBits - (sizeof(ushort) * 8))
{
newItemIDs.Add(message.ReadUInt16());
}
}
catch
{
return;
newItemIDs.Add(message.ReadUInt16());
}
for (int i = 5; i < capacity; i++)
{