Skip to content

Commit

Permalink
Invalidate jumpstat if gravityscale isn't 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GameChaos committed Oct 30, 2024
1 parent 1e96de9 commit 9aa11b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kz/jumpstats/kz_jumpstats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9aa11b1

Please sign in to comment.