(b899f62c0) Server emulates the ragdoll input when clients are stunned, unconscious or dead. Fixes disconnected players appearing in a weird half-crouching pose until they die, and might fix ragdolling in general doing the same (see #1297). The problem apparently appears when not playing locally, haven't tested yet.
This commit is contained in:
@@ -360,7 +360,7 @@ namespace Barotrauma
|
||||
Vector2 relativeCursorPos = cursorPosition - AimRefPosition;
|
||||
tempBuffer.Write((UInt16)(65535.0 * Math.Atan2(relativeCursorPos.Y, relativeCursorPos.X) / (2.0 * Math.PI)));
|
||||
}
|
||||
tempBuffer.Write(IsRagdolled);
|
||||
tempBuffer.Write(IsRagdolled || IsUnconscious || Stun > 0.0f || IsDead);
|
||||
|
||||
tempBuffer.Write(AnimController.Dir > 0.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user