1
0
mirror of synced 2025-01-31 11:53:54 +01:00

Update wheel stiffness for DD and H2Overdrive

This commit is contained in:
Aaron M 2019-12-27 14:05:28 +13:00
parent 8666be27e1
commit 933bc3e7c3
3 changed files with 16 additions and 0 deletions

View File

@ -16,12 +16,19 @@ along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
void DirtyDrivin::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers) {
float ffstiffness = helpers->ReadFloat32(0x886EC0, false);
float ff = helpers->ReadFloat32(0x886EC4, false);
helpers->log("got value: ");
std::string ffs = std::to_string(ff);
helpers->log((char*)ffs.c_str());
//if (ffstiffness > 0)
//{
//double percentForce = ffstiffness / 1.25;
//triggers->Spring(percentForce);
//}
if (ff > 0)
{
double percentForce = ff;

View File

@ -16,12 +16,19 @@ along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
void H2Overdrive::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers) {
float ffstiffness = helpers->ReadFloat32(0x392C54, true);
float ff = helpers->ReadFloat32(0x392C58, true);
helpers->log("got value: ");
std::string ffs = std::to_string(ff);
helpers->log((char*)ffs.c_str());
if (ffstiffness > 0)
{
double percentForce = ffstiffness / 1.25;
triggers->Spring(percentForce);
}
if (ff > 0)
{
double percentForce = ff;

View File

@ -115,6 +115,7 @@ extremely generous.
-GTI Club Supermini Festa
-Gun Buster
-House of the dead 4
-Hyperdrive
-Indy 500
-Initial D Zero
-Initial D 4
@ -166,6 +167,7 @@ extremely generous.
-Turbo Outrun
-Turkey Shoot
-Under Fire
-Vapor TRX
-Virtua Racing
-Wacky Races
-Wangan Midnight Maximum Tune 5