v1.4.4.1 (Blood in the Water Update)
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Barotrauma
|
||||
NetConfig.HighPrioCharacterPositionUpdateInterval,
|
||||
priority);
|
||||
|
||||
if (IsDead)
|
||||
if (IsDead && !AnimController.IsDraggedWithRope)
|
||||
{
|
||||
interval = Math.Max(interval * 2, 0.1f);
|
||||
}
|
||||
@@ -590,6 +590,31 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
break;
|
||||
case LatchedOntoTargetEventData latchedOntoTargetEventData:
|
||||
msg.WriteBoolean(latchedOntoTargetEventData.IsLatched);
|
||||
if (latchedOntoTargetEventData.IsLatched)
|
||||
{
|
||||
msg.WriteSingle(SimPosition.X);
|
||||
msg.WriteSingle(SimPosition.Y);
|
||||
msg.WriteSingle(latchedOntoTargetEventData.AttachSurfaceNormal.X);
|
||||
msg.WriteSingle(latchedOntoTargetEventData.AttachSurfaceNormal.Y);
|
||||
msg.WriteSingle(latchedOntoTargetEventData.AttachPos.X);
|
||||
msg.WriteSingle(latchedOntoTargetEventData.AttachPos.Y);
|
||||
msg.WriteInt32(latchedOntoTargetEventData.TargetLevelWallIndex);
|
||||
if (latchedOntoTargetEventData.TargetStructureID != NullEntityID)
|
||||
{
|
||||
msg.WriteUInt16(latchedOntoTargetEventData.TargetStructureID);
|
||||
}
|
||||
else if (latchedOntoTargetEventData.TargetCharacterID != NullEntityID)
|
||||
{
|
||||
msg.WriteUInt16(latchedOntoTargetEventData.TargetCharacterID);
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.WriteUInt16(NullEntityID);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new Exception($"Malformed character event: did not expect {eventData.GetType().Name}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user