From e99edaf28c16bb6461aa7484bc0bd6cc316c94ec Mon Sep 17 00:00:00 2001 From: khang Date: Tue, 2 Apr 2024 01:32:39 -0400 Subject: [PATCH 1/3] 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 From 0bfd46620ac76987149c6200b2cf0b966b256df4 Mon Sep 17 00:00:00 2001 From: khang Date: Wed, 3 Apr 2024 12:46:08 -0400 Subject: [PATCH 2/3] change to Max Acceleration Yaw Offset --- BunnymodXT/modules/HwDLL.cpp | 10 +++++----- hlstrafe | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BunnymodXT/modules/HwDLL.cpp b/BunnymodXT/modules/HwDLL.cpp index 6fb11b21..4997c534 100644 --- a/BunnymodXT/modules/HwDLL.cpp +++ b/BunnymodXT/modules/HwDLL.cpp @@ -2470,14 +2470,14 @@ int HwDLL::CallOnTASPlaybackFrame() { PrevFractions, PrevNormalzs, std::array{ - StrafeState.AcceleratedYawSpeedValue, - StrafeState.AcceleratedYawSpeedStart, - StrafeState.AcceleratedYawSpeedTarget, - StrafeState.AcceleratedYawSpeedAccel, + StrafeState.MaxAccelYawOffsetValue, + StrafeState.MaxAccelYawOffsetStart, + StrafeState.MaxAccelYawOffsetTarget, + StrafeState.MaxAccelYawOffsetAccel, // Eh, meow? static_cast( static_cast( - static_cast(StrafeState.AcceleratedYawSpeedDir))) + static_cast(StrafeState.MaxAccelYawOffsetDir))) }, }); } diff --git a/hlstrafe b/hlstrafe index 433a89d0..00f360e8 160000 --- a/hlstrafe +++ b/hlstrafe @@ -1 +1 @@ -Subproject commit 433a89d045316b5626fcbdf107f068ee646d6511 +Subproject commit 00f360e8709745fe9574ae524d38d7a6351bf3dd From ad3577f41cf54f1c55d8bfc6b85ca6a87ca8fe78 Mon Sep 17 00:00:00 2001 From: khang Date: Thu, 4 Apr 2024 02:27:35 -0400 Subject: [PATCH 3/3] update hlstrafe --- hlstrafe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlstrafe b/hlstrafe index 00f360e8..7ffc9ab3 160000 --- a/hlstrafe +++ b/hlstrafe @@ -1 +1 @@ -Subproject commit 00f360e8709745fe9574ae524d38d7a6351bf3dd +Subproject commit 7ffc9ab3e54aff8e3ccca0f3fa8d009c003181ca