From e99edaf28c16bb6461aa7484bc0bd6cc316c94ec Mon Sep 17 00:00:00 2001 From: khang Date: Tue, 2 Apr 2024 01:32:39 -0400 Subject: [PATCH] Add bxt-rs accelerated yawspeed related hooks --- BunnymodXT/modules/HwDLL.cpp | 11 +++++++++++ hlstrafe | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/BunnymodXT/modules/HwDLL.cpp b/BunnymodXT/modules/HwDLL.cpp index 92e1a776..6fb11b21 100644 --- a/BunnymodXT/modules/HwDLL.cpp +++ b/BunnymodXT/modules/HwDLL.cpp @@ -32,6 +32,7 @@ struct on_tas_playback_frame_data { unsigned strafe_cycle_frame_count; std::array prev_predicted_trace_fractions; std::array prev_predicted_trace_normal_zs; + std::array accelerated_yawspeed; }; // Change the variable name if you change the parameters! @@ -2468,6 +2469,16 @@ int HwDLL::CallOnTASPlaybackFrame() { StrafeState.StrafeCycleFrameCount, PrevFractions, PrevNormalzs, + std::array{ + StrafeState.AcceleratedYawSpeedValue, + StrafeState.AcceleratedYawSpeedStart, + StrafeState.AcceleratedYawSpeedTarget, + StrafeState.AcceleratedYawSpeedAccel, + // Eh, meow? + static_cast( + static_cast( + static_cast(StrafeState.AcceleratedYawSpeedDir))) + }, }); } diff --git a/hlstrafe b/hlstrafe index 9e657a86..433a89d0 160000 --- a/hlstrafe +++ b/hlstrafe @@ -1 +1 @@ -Subproject commit 9e657a862344867fb1e1df17f769267542dd7870 +Subproject commit 433a89d045316b5626fcbdf107f068ee646d6511