Skip to content

Commit fae8126

Browse files
committed
fix checkpoint with no restored velocity accumulating velocity
1 parent 2f0cef6 commit fae8126

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/checkpoint_menu.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ fn go_checkpoint(marker: MainThreadMarker) {
261261
// player.v.v_angle = *viewangles;
262262
unsafe { engine::hudSetViewAngles.get(marker)(viewangles) };
263263

264+
// not moving after go check
265+
// if not set to 0, player velocity will accumulate if BXT_CHECKPOINT_WITH_VEL = 0
266+
player.v.velocity = [0f32; 3];
267+
264268
if BXT_CHECKPOINT_WITH_VEL.as_bool(marker) {
265269
player.v.velocity = *velocity;
266270
}

0 commit comments

Comments
 (0)