- Fixed railgun sounds not playing at the clients' end

- Server sends updates for batteries when their charge changes (not strictly necessary assuming the rest of the electrical grid stays in sync, but just in case)
- Reactor state is synced with clients if modified through the debug console
- Increased maximum item velocity to 64 units/s, all item are clamped to the max vel
This commit is contained in:
Regalis
2017-04-10 20:13:33 +03:00
parent 887735ff32
commit fac31b4892
6 changed files with 45 additions and 33 deletions

View File

@@ -581,6 +581,11 @@ namespace Barotrauma
reactor.ShutDownTemp = power == 0 ? 0 : 7000.0f;
reactor.AutoTemp = true;
reactor.Temperature = power;
if (GameMain.Server != null)
{
reactorItem.CreateServerEvent(reactor);
}
break;
case "shake":
GameMain.GameScreen.Cam.Shake = 10.0f;