Skip to content

Commit

Permalink
Add hook for TAS studio camera view editing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Mar 30, 2024
1 parent 76aefb2 commit 38e113b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BunnymodXT/modules/HwDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2487,6 +2487,14 @@ extern "C" DLLEXPORT void bxt_tas_studio_norefresh_override(int stop_frame) {
hw.tas_studio_norefresh_override = stop_frame;
}

extern "C" DLLEXPORT void bxt_tas_studio_freecam_set_origin(std::array<float, 3> origin) {
auto &hw = HwDLL::GetInstance();

hw.cameraOverrideOrigin[0] = origin[0];
hw.cameraOverrideOrigin[1] = origin[1];
hw.cameraOverrideOrigin[2] = origin[2];
}

void HwDLL::ResetTASPlaybackState()
{
CallOnTASPlaybackStopped();
Expand Down

0 comments on commit 38e113b

Please sign in to comment.