1
0
mirror of synced 2024-11-30 17:34:33 +01:00

Modify default feedback length for Initial D games etc

This commit is contained in:
Aaron M 2020-11-09 17:41:21 +13:00
parent 542ba5f5d2
commit fffe8be168
4 changed files with 13 additions and 13 deletions

View File

@ -216,32 +216,32 @@ EscapeKeyExitViaPlugin=0
[InitialD 4] [InitialD 4]
GameId=16 GameId=16
FeedbackLength=80 FeedbackLength=5000
PowerMode=0 PowerMode=0
[InitialD 4 Japan] [InitialD 4 Japan]
GameId=24 GameId=24
FeedbackLength=80 FeedbackLength=5000
PowerMode=0 PowerMode=0
[InitialD 5] [InitialD 5]
GameId=23 GameId=23
FeedbackLength=80 FeedbackLength=5000
PowerMode=0 PowerMode=0
[InitialD 6] [InitialD 6]
GameId=8 GameId=8
FeedbackLength=80 FeedbackLength=5000
PowerMode=0 PowerMode=0
[InitialD 7] [InitialD 7]
GameId=17 GameId=17
FeedbackLength=80 FeedbackLength=5000
PowerMode=0 PowerMode=0
[InitialD 8] [InitialD 8]
GameId=18 GameId=18
FeedbackLength=80 FeedbackLength=5000
PowerMode=0 PowerMode=0
[Ford Racing] [Ford Racing]
@ -625,7 +625,7 @@ Gear2Device2=99
Gear3Device2=99 Gear3Device2=99
Gear4Device2=99 Gear4Device2=99
PowerModeInitialDDemul=0 PowerModeInitialDDemul=0
FeedbackLengthInitialDDemul=500 FeedbackLengthInitialDDemul=5000
MinForceInitialDDemul=0 MinForceInitialDDemul=0
MaxForceInitialDDemul=100 MaxForceInitialDDemul=100
AlternativeMinForceLeftInitialDDemul=0 AlternativeMinForceLeftInitialDDemul=0

View File

@ -152,14 +152,14 @@ void InitialD6::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTrig
triggers->Friction(percentForce); triggers->Friction(percentForce);
triggers->Rumble(percentForce, percentForce, percentLength); triggers->Rumble(percentForce, percentForce, percentLength);
} }
if ((ff > 0x40037)& (ff < 0x40080)) if ((ff > 0x40037) && (ff < 0x40080))
{ {
double percentForce = (262272 - ff) / 72.0; double percentForce = (262272 - ff) / 72.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(percentForce, 0, percentLength); triggers->Rumble(percentForce, 0, percentLength);
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce); triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);
} }
else if ((ff > 0x40100)& (ff < 0x40149)) else if ((ff > 0x40100) && (ff < 0x40149))
{ {
double percentForce = (ff - 262400) / 72.0; double percentForce = (ff - 262400) / 72.0;
double percentLength = 100; double percentLength = 100;

View File

@ -152,14 +152,14 @@ void InitialD7::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTrig
triggers->Friction(percentForce); triggers->Friction(percentForce);
triggers->Rumble(percentForce, percentForce, percentLength); triggers->Rumble(percentForce, percentForce, percentLength);
} }
if ((ff > 0x40037)& (ff < 0x40080)) if ((ff > 0x40037) && (ff < 0x40080))
{ {
double percentForce = (262272 - ff) / 72.0; double percentForce = (262272 - ff) / 72.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(percentForce, 0, percentLength); triggers->Rumble(percentForce, 0, percentLength);
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce); triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);
} }
else if ((ff > 0x40100)& (ff < 0x40149)) else if ((ff > 0x40100) && (ff < 0x40149))
{ {
double percentForce = (ff - 262400) / 72.0; double percentForce = (ff - 262400) / 72.0;
double percentLength = 100; double percentLength = 100;

View File

@ -152,14 +152,14 @@ void InitialD8::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTrig
triggers->Friction(percentForce); triggers->Friction(percentForce);
triggers->Rumble(percentForce, percentForce, percentLength); triggers->Rumble(percentForce, percentForce, percentLength);
} }
if ((ff > 0x40037)& (ff < 0x40080)) if ((ff > 0x40037) && (ff < 0x40080))
{ {
double percentForce = (262272 - ff) / 72.0; double percentForce = (262272 - ff) / 72.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(percentForce, 0, percentLength); triggers->Rumble(percentForce, 0, percentLength);
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce); triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);
} }
else if ((ff > 0x40100)& (ff < 0x40149)) else if ((ff > 0x40100) && (ff < 0x40149))
{ {
double percentForce = (ff - 262400) / 72.0; double percentForce = (ff - 262400) / 72.0;
double percentLength = 100; double percentLength = 100;