Unstable 0.14.5.0

This commit is contained in:
Markus Isberg
2021-06-14 17:53:42 +03:00
parent 1f3e588fcd
commit 23a7c37eee
25 changed files with 254 additions and 259 deletions
@@ -2990,11 +2990,14 @@ namespace Barotrauma
Spawner.AddToRemoveQueue(this);
}
public void DespawnNow()
public void DespawnNow(bool createNetworkEvents = true)
{
despawnTimer = GameMain.Config.CorpseDespawnDelay;
UpdateDespawn(1.0f, ignoreThresholds: true);
Spawner.Update();
if (createNetworkEvents)
{
Spawner.Update();
}
}
public static void RemoveByPrefab(CharacterPrefab prefab)