Syncinc AICharacter inventories (a husk controlled by the host), clients don't try to read physicsbodyposition messages if the item doesn't have a body, control command works even if the character has spaces in the name
This commit is contained in:
@@ -128,6 +128,8 @@ namespace Barotrauma
|
||||
message.Write(AnimController.RefLimb.SimPosition.Y);
|
||||
|
||||
return true;
|
||||
case NetworkEventType.InventoryUpdate:
|
||||
return base.FillNetworkData(type, message, data);
|
||||
default:
|
||||
#if DEBUG
|
||||
DebugConsole.ThrowError("AICharacter network event had a wrong type ("+type+")");
|
||||
@@ -146,6 +148,9 @@ namespace Barotrauma
|
||||
case NetworkEventType.KillCharacter:
|
||||
Kill(CauseOfDeath.Damage, true);
|
||||
return;
|
||||
case NetworkEventType.InventoryUpdate:
|
||||
base.ReadNetworkData(type, message, sendingTime, out data);
|
||||
return;
|
||||
case NetworkEventType.ImportantEntityUpdate:
|
||||
|
||||
Vector2 limbPos = AnimController.RefLimb.SimPosition;
|
||||
|
||||
Reference in New Issue
Block a user