Networking bugfixes & improvements:

- fixed server not sending kill-events when a monster dies
- some interpolation when correcting character positions
- physicsbody position lerping improvements
- sending AICharacter Dir instead of TargetDir
This commit is contained in:
Regalis
2016-03-09 16:49:56 +02:00
parent 37f70a1028
commit a1c728d207
13 changed files with 126 additions and 95 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ namespace Barotrauma
position.X += Rand.Range(-0.5f, 0.5f, false);
position.Y += Rand.Range(-0.5f, 0.5f, false);
monsters[i] = Character.Create(characterFile, position);
monsters[i] = Character.Create(characterFile, position, null, GameMain.Client != null);
}
}
@@ -29,7 +29,7 @@ namespace Barotrauma
{
Vector2 position = level.GetRandomInterestingPosition(true, true);
monster = Character.Create(monsterFile, position);
monster = Character.Create(monsterFile, position, null, GameMain.Client != null);
monster.Enabled = false;
radarPosition = monster.Position;
}