Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Adding more settings that will help a lot (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
SolsticeSpectrum authored Mar 11, 2023
1 parent b80ff90 commit 963d80c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions user/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ void Settings::Load() {
JSON_TRYGET("ShowDebug", this->showDebugTab);
#endif

JSON_TRYGET("PlayerSpeed", this->PlayerSpeed);
JSON_TRYGET("CameraHeight", this->CameraHeight);
JSON_TRYGET("FreeCamSpeed", this->FreeCamSpeed);
JSON_TRYGET("UserName", this->userName);
JSON_TRYGET("ShowGhosts", this->ShowGhosts);
JSON_TRYGET("ShowRadar", this->ShowRadar);
JSON_TRYGET("ShowRadar_DeadBodies", this->ShowRadar_DeadBodies);
Expand Down Expand Up @@ -105,6 +109,10 @@ void Settings::Save() {
{"ShowDebug", this->showDebugTab},
#endif

{"PlayerSpeed", this->PlayerSpeed},
{"CameraHeight", this->CameraHeight},
{"FreeCamSpeed", this->FreeCamSpeed},
{"UserName", this->userName},
{"ShowGhosts", this->ShowGhosts},
{"ShowRadar", this->ShowRadar},
{"ShowRadar_DeadBodies", this->ShowRadar_DeadBodies},
Expand Down

0 comments on commit 963d80c

Please sign in to comment.