Use RMC mob collision values (#36851)

Use RMC movement values

General feedback was it's too slow to push through people but this still prevents stacking so.
This commit is contained in:
metalgearsloth
2025-04-28 00:47:18 +10:00
committed by GitHub
parent 0da897947f
commit f29b38c44b
2 changed files with 5 additions and 4 deletions

View File

@@ -284,6 +284,7 @@ public abstract class SharedMobCollisionSystem : EntitySystem
mobMovement *= modifier;
var speedReduction = 1f - entity.Comp1.MinimumSpeedModifier;
speedReduction /= _penCap / penDepth;
var speedModifier = Math.Clamp(
1f - speedReduction * modifier,
entity.Comp1.MinimumSpeedModifier, 1f);