Mob collision tweaks (#36296)

* Mob collision tweaks

- Remove the dot product default so moving also pops it.
- Cleanup the cvars so admins can adjust

* Gas canister revert
This commit is contained in:
metalgearsloth
2025-04-05 02:14:04 +11:00
committed by GitHub
parent 593804b517
commit b501026dcd
3 changed files with 10 additions and 27 deletions

View File

@@ -1,24 +0,0 @@
using Content.Server.Administration;
using Content.Shared.Administration;
using Content.Shared.CCVar;
using Robust.Shared.Configuration;
using Robust.Shared.Console;
namespace Content.Server.Movement.Commands;
/// <summary>
/// Temporary command to enable admins to toggle the mob collision cvar.
/// </summary>
[AdminCommand(AdminFlags.VarEdit)]
public sealed class ToggleMobCollisionCommand : IConsoleCommand
{
[Dependency] private readonly IConfigurationManager _cfgManager = default!;
public string Command => "toggle_mob_collision";
public string Description => "Toggles mob collision";
public string Help => Description;
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
_cfgManager.SetCVar(CCVars.MovementMobPushing, !_cfgManager.GetCVar(CCVars.MovementMobPushing));
}
}