Make humans move based on their last grid's angle (#5122)

* Make humans move based on their last grid's angle

* Fix ghost movement, fix weightless grid parenting

* Make sure to init the last grid angle without needing to move
This commit is contained in:
Saphire Lattice
2021-11-02 20:35:02 +07:00
committed by GitHub
parent 5810fdb7ee
commit f5b4e461b3
5 changed files with 28 additions and 11 deletions

View File

@@ -87,6 +87,8 @@ namespace Content.Server.AI.Components
}
}
public Angle LastGridAngle { get => Angle.Zero; set {} }
/// <inheritdoc />
[ViewVariables(VVAccess.ReadWrite)]
public float PushStrength { get; set; } = IMobMoverComponent.PushStrengthDefault;