You can now walk over dead people.

This commit is contained in:
Pieter-Jan Briers
2019-10-30 16:27:49 +01:00
parent 10ac4418e4
commit e4f3ea7798

View File

@@ -111,6 +111,11 @@ namespace Content.Server.GameObjects
var newState = SharedSpeciesComponent.MobState.Down;
appearance.SetData(SharedSpeciesComponent.MobVisuals.RotationState, newState);
}
if (entity.TryGetComponent(out CollidableComponent collidable))
{
collidable.CollisionEnabled = false;
}
}
public void ExitState(IEntity entity)
@@ -120,6 +125,11 @@ namespace Content.Server.GameObjects
var newState = SharedSpeciesComponent.MobState.Stand;
appearance.SetData(SharedSpeciesComponent.MobVisuals.RotationState, newState);
}
if (entity.TryGetComponent(out CollidableComponent collidable))
{
collidable.CollisionEnabled = true;
}
}
public bool IsConscious => false;