Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hook for TAS studio camera view editing mode #520

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading