Server can inflict impact damage on clients, character oxygen level syncing bugfix, hulls send a networkevent when oxygen level changes by >=5%, limb velocities aren't reset when receiving a network update
This commit is contained in:
@@ -407,7 +407,7 @@ namespace Barotrauma
|
||||
|
||||
if (impact > l.impactTolerance)
|
||||
{
|
||||
if (!character.IsNetworkPlayer)
|
||||
if (!character.IsNetworkPlayer || GameMain.Server != null)
|
||||
{
|
||||
character.AddDamage(CauseOfDeath.Damage, impact - l.impactTolerance * 0.1f, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user