I THINK this is all that needs to be done to network it...right?

This commit is contained in:
Alex Noir
2017-12-08 14:09:09 +03:00
parent 48fb3d58b9
commit fff8d714fe
2 changed files with 2 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ namespace Barotrauma
bool crouching = msg.ReadBoolean();
keys[(int)InputType.Crouch].Held = crouching;
keys[(int)InputType.Crouch].SetState(false, crouching);
AnimController.GrabLimb = (LimbType)msg.ReadInt16();
}
bool hasAttackLimb = msg.ReadBoolean();

View File

@@ -429,6 +429,7 @@ namespace Barotrauma
if (AnimController is HumanoidAnimController)
{
tempBuffer.Write(((HumanoidAnimController)AnimController).Crouching);
tempBuffer.Write((int)((HumanoidAnimController)AnimController).GrabLimb);
}
bool hasAttackLimb = AnimController.Limbs.Any(l => l != null && l.attack != null);