few game tweaks
This commit is contained in:
parent
78e61e9cdf
commit
ee7208b3b3
@ -27,16 +27,18 @@ void AfterburnerClimax::FFBLoop(EffectConstants *constants, Helpers *helpers, Ef
|
||||
int Rumble1Length = GetPrivateProfileInt(TEXT("Settings"), TEXT("Rumble1Length"), 0, settingsFilename);
|
||||
int Rumble2Length = GetPrivateProfileInt(TEXT("Settings"), TEXT("Rumble2Length"), 0, settingsFilename);
|
||||
|
||||
if (ff == 64)
|
||||
{
|
||||
double percentForce = ((Rumble1Strength) / 100.0);
|
||||
double percentLength = (Rumble1Length);
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (ff == 80)
|
||||
{
|
||||
double percentForce = ((Rumble2Strength) / 100.0);
|
||||
double percentLength = (Rumble2Length);
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
}
|
||||
if (ff == 0x40)
|
||||
{
|
||||
double percentForce = ((Rumble1Strength) / 100.0);
|
||||
double percentLength = (Rumble1Length);
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
}
|
||||
|
||||
if (ff == 0x50)
|
||||
{
|
||||
double percentForce = ((Rumble2Strength) / 100.0);
|
||||
double percentLength = (Rumble2Length);
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
}
|
||||
|
||||
}
|
@ -35,7 +35,6 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
|
||||
// Large Shake when hitting walls, other karts or getting hit by items
|
||||
if ((4194308 == ff1) & (ff10 == 1))
|
||||
|
||||
{
|
||||
double percentForce = 1.0;
|
||||
double percentForce1 = 3.5;
|
||||
@ -45,7 +44,7 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
}
|
||||
|
||||
// small friction when driving on dirt while moving
|
||||
else if ((3 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
if ((3 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = (0.3);
|
||||
double percentLength = (100);
|
||||
@ -53,7 +52,7 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
// Small constant when hitting bumps
|
||||
else if ((10 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
if ((10 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = (0.2);
|
||||
double percentLength = (50);
|
||||
@ -62,8 +61,7 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
|
||||
}
|
||||
// Wheel rumbles while driving on grass
|
||||
else if ((4 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
|
||||
if ((4 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = 0.2;
|
||||
double percentLength = (50);
|
||||
@ -71,14 +69,13 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Sine(50, 50, percentForce);
|
||||
}
|
||||
//wheel hard to turn while driving through water
|
||||
else if ((7 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
if ((7 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = (0.65);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
//Wheel rumbles lightly when driving over tiles
|
||||
else if ((12 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
|
||||
if ((12 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = 0.1;
|
||||
double percentForce1 = 0.2;
|
||||
@ -87,8 +84,7 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Sine(70, 70, percentForce);
|
||||
}
|
||||
//Wheel rumbles lightly when driving over sand
|
||||
else if ((14 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
|
||||
if ((14 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = 0.1;
|
||||
double percentForce1 = 0.2;
|
||||
@ -97,8 +93,7 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Sine(70, 70, percentForce);
|
||||
}
|
||||
//Wheel rumbles lightly when driving over rough part of track
|
||||
else if ((11 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
|
||||
if ((11 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = 0.1;
|
||||
double percentForce1 = 0.2;
|
||||
@ -107,8 +102,7 @@ void MarioKartGPDX100::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Sine(40, 50, percentForce);
|
||||
}
|
||||
//Wheel rumbles moderately when driving over wooden bridges
|
||||
else if ((8 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
|
||||
if ((8 == ff3) & (ff10 == 1) & (ff5 == 1) & (ff11 == 1065353216))
|
||||
{
|
||||
double percentForce = 0.4;
|
||||
double percentLength = (100);
|
||||
|
@ -104,7 +104,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
triggers->Sine(200, 200, percentForce);
|
||||
}
|
||||
else if ((BoostRumble == 1) & (ff18 == 1) & (ff11 == 1))
|
||||
|
||||
if ((BoostRumble == 1) & (ff18 == 1) & (ff11 == 1))
|
||||
{
|
||||
// Shake when Boost
|
||||
double percentForce = ((BoostRumbleStrength) / 100.0);
|
||||
@ -112,7 +113,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
triggers->Sine(60, 60, percentForce);
|
||||
}
|
||||
else if ((DriftRumble == 1) & (ff17 == 1) & (Wheel >= 0) & (Wheel < 128) & (ff11 == 1))
|
||||
|
||||
if ((DriftRumble == 1) & (ff17 == 1) & (Wheel >= 0) & (Wheel < 128) & (ff11 == 1))
|
||||
{
|
||||
// Drift Effect including steering left
|
||||
double percentForce = (((128 - Wheel) / 128.0) * (DriftRumbleControllerStrengthMultiplier / 100.0));
|
||||
@ -120,7 +122,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, 0, percentLength);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
else if ((DriftRumble == 1) & (ff17 == 1) & (Wheel > 127) & (Wheel < 256) & (ff11 == 1))
|
||||
|
||||
if ((DriftRumble == 1) & (ff17 == 1) & (Wheel > 127) & (Wheel < 256) & (ff11 == 1))
|
||||
{
|
||||
// Drift Effect including steering right
|
||||
double percentForce = (((Wheel - 127) / 128.0) * (DriftRumbleControllerStrengthMultiplier / 100.0));
|
||||
@ -128,7 +131,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(0, percentForce, percentLength);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
else if ((HitGroundRumble == 1) & (oldhitground != newhitground) & (ff5 == 1) & (ff11 == 1))
|
||||
|
||||
if ((HitGroundRumble == 1) & (oldhitground != newhitground) & (ff5 == 1) & (ff11 == 1))
|
||||
{
|
||||
// Shake when hitting ground
|
||||
double percentForce = ((HitGroundRumbleStrength) / 100.0);
|
||||
@ -138,7 +142,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
Sleep(50);
|
||||
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
|
||||
}
|
||||
else if ((WeaponRumble == 1) & (oldweapon != newweapon) & (ff11 == 1))
|
||||
|
||||
if ((WeaponRumble == 1) & (oldweapon != newweapon) & (ff11 == 1))
|
||||
{
|
||||
// Shake when picking up new weapons or using them
|
||||
double percentForce = ((WeaponRumbleStrength) / 100.0);
|
||||
@ -146,7 +151,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
triggers->Sine(80, 50, percentForce);
|
||||
}
|
||||
else if ((CoinRumble == 1) & (oldcoins != newcoins) & (ff11 == 1))
|
||||
|
||||
if ((CoinRumble == 1) & (oldcoins != newcoins) & (ff11 == 1))
|
||||
{
|
||||
// Shake when picking up coins
|
||||
double percentForce = ((CoinRumbleStrength) / 100.0);
|
||||
@ -154,7 +160,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, percentForce, percentLength);
|
||||
triggers->Sine(50, 50, percentForce);
|
||||
}
|
||||
else if ((DirtRumble == 1) & (3 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((DirtRumble == 1) & (3 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
// small friction when driving on dirt while moving
|
||||
double percentForce = ((DirtRumbleStrength) / 100.0);
|
||||
@ -162,7 +169,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, 0, percentLength);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
else if ((SpeedBumpRumble == 1) & (10 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((SpeedBumpRumble == 1) & (10 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
// Small constant when hitting bumps
|
||||
double percentForce = ((SpeedBumpRumbleStrength) / 100.0);
|
||||
@ -171,7 +179,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
|
||||
triggers->Constant(constants->DIRECTION_FROM_RIGHT, 0);
|
||||
}
|
||||
else if ((GrassRumble == 1) & (4 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((GrassRumble == 1) & (4 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
// Wheel rumbles while driving on grass
|
||||
double percentForce = ((GrassRumbleStrength) / 100.0);
|
||||
@ -179,7 +188,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(0, percentForce, percentLength);
|
||||
triggers->Sine(50, 50, percentForce);
|
||||
}
|
||||
else if ((CarpetRumble == 1) & (9 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((CarpetRumble == 1) & (9 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
// Wheel rumbles while driving on carpet
|
||||
double percentForce = ((CarpetRumbleStrength) / 100.0);
|
||||
@ -187,7 +197,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(0, percentForce, percentLength);
|
||||
triggers->Sine(50, 50, percentForce);
|
||||
}
|
||||
else if ((WaterRumble == 1) & (7 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1) & (Wheel >= 0) & (Wheel < 128))
|
||||
|
||||
if ((WaterRumble == 1) & (7 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1) & (Wheel >= 0) & (Wheel < 128))
|
||||
{
|
||||
//wheel hard to turn while driving through water
|
||||
double percentForce = ((WaterRumbleWheelStrength) / 100.0);
|
||||
@ -196,7 +207,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce1, 0, percentLength);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
else if ((WaterRumble == 1) & (7 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1) & (Wheel > 127))
|
||||
|
||||
if ((WaterRumble == 1) & (7 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1) & (Wheel > 127))
|
||||
{
|
||||
double percentForce = ((WaterRumbleWheelStrength) / 100.0);
|
||||
double percentForce1 = ((Wheel - 127 / 128.0) * (WaterRumbleControllerStrengthMultiplier / 100.0));
|
||||
@ -204,7 +216,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(0, percentForce1, percentLength);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
else if ((TileRumble == 1) & (12 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((TileRumble == 1) & (12 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
//Wheel rumbles lightly when driving over tiles
|
||||
double percentForce = ((TileRumbleStrength) / 100.0);
|
||||
@ -212,7 +225,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(0, percentForce, percentLength);
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
else if ((SandRumble == 1) & (14 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((SandRumble == 1) & (14 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
//Wheel rumbles lightly when driving over sand
|
||||
double percentForce = ((SandRumbleStrength) / 100.0);
|
||||
@ -220,7 +234,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(percentForce, 0, percentLength);
|
||||
triggers->Sine(70, 70, percentForce);
|
||||
}
|
||||
else if ((RoughTrackRumble == 1) & (11 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((RoughTrackRumble == 1) & (11 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
//Wheel rumbles lightly when driving over rough part of track
|
||||
double percentForce = ((RoughTrackRumbleStrength) / 100.0);
|
||||
@ -228,7 +243,8 @@ void MarioKartGPDX110::FFBLoop(EffectConstants *constants, Helpers *helpers, Eff
|
||||
triggers->Rumble(0, percentForce, percentLength);
|
||||
triggers->Sine(40, 50, percentForce);
|
||||
}
|
||||
else if ((BridgeRumble == 1) & (8 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
|
||||
if ((BridgeRumble == 1) & (8 == ff3) & (ff11 == 1) & (ff5 == 1) & (Speed > 0.1))
|
||||
{
|
||||
//Wheel rumbles moderately when driving over wooden bridges
|
||||
double percentForce = ((BridgeRumbleStrength) / 100.0);
|
||||
|
@ -2086,21 +2086,21 @@ void OutputReading::FFBLoop(EffectConstants* constants, Helpers* helpers, Effect
|
||||
triggers->Spring(percentForce);
|
||||
}
|
||||
|
||||
else if ((stateFFB == 0x20) || (stateFFB == 0x28))
|
||||
if ((stateFFB == 0x20) || (stateFFB == 0x28))
|
||||
{
|
||||
//Clutch
|
||||
double percentForce = 0.4;
|
||||
triggers->Friction(percentForce);
|
||||
}
|
||||
|
||||
else if ((stateFFB > 0x2F) && (stateFFB < 0x40))
|
||||
if ((stateFFB > 0x2F) && (stateFFB < 0x40))
|
||||
{
|
||||
//Centering
|
||||
double percentForce = (stateFFB - 47) / 11.0;
|
||||
triggers->Spring(percentForce);
|
||||
}
|
||||
|
||||
else if ((stateFFB == 0x40) || (stateFFB == 0x46) || (stateFFB == 0x4A))
|
||||
if ((stateFFB == 0x40) || (stateFFB == 0x46) || (stateFFB == 0x4A))
|
||||
{
|
||||
if (stateFFB == 0x40)
|
||||
{
|
||||
@ -2121,7 +2121,7 @@ void OutputReading::FFBLoop(EffectConstants* constants, Helpers* helpers, Effect
|
||||
}
|
||||
}
|
||||
|
||||
else if ((stateFFB == 0x50) || (stateFFB == 0x5F))
|
||||
if ((stateFFB == 0x50) || (stateFFB == 0x5F))
|
||||
{
|
||||
//Roll Left
|
||||
double percentForce = 0.5;
|
||||
|
Loading…
Reference in New Issue
Block a user