1
0

CCVars.Physics.cs 1.1 KB

123456789101112131415161718192021222324252627
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// When a mob is walking should its X / Y movement be relative to its parent (true) or the map (false).
  7. /// </summary>
  8. public static readonly CVarDef<bool> RelativeMovement =
  9. CVarDef.Create("physics.relative_movement", true, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
  10. public static readonly CVarDef<float> TileFrictionModifier =
  11. CVarDef.Create("physics.tile_friction", 40.0f, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
  12. public static readonly CVarDef<float> StopSpeed =
  13. CVarDef.Create("physics.stop_speed", 0.1f, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
  14. /// <summary>
  15. /// Whether mobs can push objects like lockers.
  16. /// </summary>
  17. /// <remarks>
  18. /// Technically client doesn't need to know about it but this may prevent a bug in the distant future so it stays.
  19. /// </remarks>
  20. public static readonly CVarDef<bool> MobPushing =
  21. CVarDef.Create("physics.mob_pushing", false, CVar.REPLICATED | CVar.SERVER);
  22. }