mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-25 14:14:46 -04:00
You shouldn't be pushed in Enhanced mode
This commit is contained in:
parent
d0006628ec
commit
72b6c8f9e4
@ -266,8 +266,6 @@ namespace ClassicalSharp.Entities {
|
||||
}
|
||||
|
||||
public void DoEntityPush() {
|
||||
//if (!game.ClassicMode || hacks.Noclip) return;
|
||||
|
||||
for (int id = 0; id < EntityList.MaxCount; id++) {
|
||||
Entity other = game.Entities[id];
|
||||
if (other == null || other == entity) continue;
|
||||
|
@ -59,7 +59,8 @@ namespace ClassicalSharp.Entities {
|
||||
bool wasOnGround = onGround;
|
||||
|
||||
HandleInput(ref xMoving, ref zMoving);
|
||||
physics.DoEntityPush();
|
||||
if (game.ClassicMode && !Hacks.Noclip)
|
||||
physics.DoEntityPush();
|
||||
|
||||
// Immediate stop in noclip mode
|
||||
if (!Hacks.NoclipSlide && (Hacks.Noclip && xMoving == 0 && zMoving == 0))
|
||||
@ -129,7 +130,7 @@ namespace ClassicalSharp.Entities {
|
||||
/// <summary> Linearly interpolates position and rotation between the previous and next state. </summary>
|
||||
public void SetInterpPosition(float t) {
|
||||
if (!Hacks.WOMStyleHacks || !Hacks.Noclip)
|
||||
Position = Vector3.Lerp(interp.prev.Pos, interp.next.Pos, t);
|
||||
Position = Vector3.Lerp(interp.prev.Pos, interp.next.Pos, t);
|
||||
interp.LerpAngles(t);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user