(4ceb463a2) Fixed medic tutorial crashing on languages other than English due to RoomNames being used to find specific hulls (now uses cargo spawnpoints)

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:44:27 +03:00
parent 38b7d326d6
commit ff83e3fe38
12 changed files with 149 additions and 374 deletions
@@ -1158,6 +1158,19 @@ namespace Barotrauma
SmoothedCursorPosition = cursorPosition - smoothedCursorDiff;
}
if (!(this is AICharacter) || Controlled == this || IsRemotePlayer)
{
SmoothedCursorPosition = cursorPosition;
}
else
{
//apply some smoothing to the cursor positions of remote players when playing as a client
//to make aiming look a little less choppy
Vector2 smoothedCursorDiff = cursorPosition - SmoothedCursorPosition;
smoothedCursorDiff = NetConfig.InterpolateCursorPositionError(smoothedCursorDiff);
SmoothedCursorPosition = cursorPosition - smoothedCursorDiff;
}
if (!(this is AICharacter) || Controlled == this || IsRemotePlayer)
{
if (speedMultipliers.Count == 0) return 1f;