Skip to content

Commit

Permalink
Merge branch 'accel-yawspeed' into cutting-edge
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Apr 6, 2024
2 parents 67b3095 + ad3577f commit 74c9868
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions BunnymodXT/modules/HwDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct on_tas_playback_frame_data {
std::array<float, 4> prev_predicted_trace_fractions;
std::array<float, 4> prev_predicted_trace_normal_zs;
std::array<float, 3> rendered_viewangles;
std::array<float, 5> accelerated_yawspeed;
};

// Change the variable name if you change the parameters!
Expand Down Expand Up @@ -2490,6 +2491,16 @@ int HwDLL::CallOnTASPlaybackFrame() {
PrevFractions,
PrevNormalzs,
GetRenderedViewangles(),
std::array<float, 5>{
StrafeState.MaxAccelYawOffsetValue,
StrafeState.MaxAccelYawOffsetStart,
StrafeState.MaxAccelYawOffsetTarget,
StrafeState.MaxAccelYawOffsetAccel,
// Eh, meow?
static_cast<float>(
static_cast<unsigned int>(
static_cast<unsigned char>(StrafeState.MaxAccelYawOffsetDir)))
},
});
}

Expand Down
2 changes: 1 addition & 1 deletion hlstrafe
Submodule hlstrafe updated 3 files
+1 −1 hltas
+68 −5 src/hlstrafe.cpp
+16 −1 src/hlstrafe.hpp

0 comments on commit 74c9868

Please sign in to comment.