Grid-relative movement (#4327)

* Grid-relative movement

Might add a test for it, but not today as it's obvious when it's on / off.

* Comment
This commit is contained in:
metalgearsloth
2021-07-26 01:48:22 +10:00
committed by GitHub
parent a91f919018
commit d3beadbb38
2 changed files with 32 additions and 9 deletions

View File

@@ -175,6 +175,12 @@ namespace Content.Shared.CCVar
* Physics
*/
/// <summary>
/// When a mob is walking should its X / Y movement be relative to its parent (true) or the map (false).
/// </summary>
public static readonly CVarDef<bool> RelativeMovement =
CVarDef.Create("physics.relative_movement", true, CVar.ARCHIVE | CVar.REPLICATED);
public static readonly CVarDef<float> TileFrictionModifier =
CVarDef.Create("physics.tile_friction", 40.0f);