From 9aa11b10d3f26fce44b12705e395b9f981745220 Mon Sep 17 00:00:00 2001 From: GameChaos Date: Wed, 30 Oct 2024 16:36:51 +0200 Subject: [PATCH] Invalidate jumpstat if gravityscale isn't 1 --- src/kz/jumpstats/kz_jumpstats.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kz/jumpstats/kz_jumpstats.cpp b/src/kz/jumpstats/kz_jumpstats.cpp index 7fd14999..ccf5eed2 100644 --- a/src/kz/jumpstats/kz_jumpstats.cpp +++ b/src/kz/jumpstats/kz_jumpstats.cpp @@ -999,6 +999,10 @@ void KZJumpstatsService::DetectExternalModifications() { this->InvalidateJumpstats("Base velocity detected"); } + if (this->player->GetPlayerPawn()->m_flGravityScale() != 1) + { + this->InvalidateJumpstats("Player gravity scale changed"); + } } void KZJumpstatsService::DetectWater()