You can now walk over dead people.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user