Skip to content

Commit

Permalink
Freecam: disable camera smoothing when active
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Jan 9, 2023
1 parent c5ad012 commit ae8192f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dllmain/Trainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,10 @@ void Trainer_Update()
ashley->atari_2B4.m_flag_1A &= ~(SAT_SCA_ENABLE | SAT_OBA_ENABLE); // map collision | em collision
}

// Override camera smoothness
// (users will be able to override this if they change smoothness in cfgMenu tho... oh well, it's not a bug, it's a feature :)
Game_SetCameraSmoothness(0);

// Set pl stop flag
FlagSet(GlobalPtr()->flags_STOP_0_170, uint32_t(Flags_STOP::SPF_PL), true);
stopPlFlagSet = true;
Expand Down Expand Up @@ -1400,6 +1404,9 @@ void Trainer_Update()
CamCtrl->m_QuasiFPS_278.m_pl_mat_178[1][3] = CamXYZbackup[1];
CamCtrl->m_QuasiFPS_278.m_pl_mat_178[2][3] = CamXYZbackup[2];

// Restore camera smoothness to users setting...
Game_SetCameraSmoothness(re4t::cfg->fCameraSmoothing / 100.0f);

FlagSet(GlobalPtr()->flags_STOP_0_170, uint32_t(Flags_STOP::SPF_PL), false);
stopPlFlagSet = false;
}
Expand Down

0 comments on commit ae8192f

Please sign in to comment.