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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user