1
0
mirror of synced 2024-12-18 09:15:58 +01:00

push Arctic Thunder code i never added

This commit is contained in:
Boomslangnz 2024-03-20 14:02:55 +13:00
parent d06a8c8fb2
commit bd235cd2dc
10 changed files with 101 additions and 1 deletions

View File

@ -42,6 +42,9 @@ cd..
cd Aliens Extermination cd Aliens Extermination
rename dinput8.dll opengl32.dll rename dinput8.dll opengl32.dll
cd.. cd..
cd Arctic Thunder
rename dinput8.dll d3d9.dll
cd..
cd Batman cd Batman
rename dinput8.dll d3d11.dll rename dinput8.dll d3d11.dll
cd.. cd..

View File

@ -779,6 +779,15 @@ DoubleConstant=0
DoubleSpring=0 DoubleSpring=0
DoubleFriction=0 DoubleFriction=0
[Arctic Thunder]
GameId=75
FeedbackLength=500
EnableDamper=0
DamperStrength=100
PowerMode=1
EnableForceSpringEffect = 1;
ForceSpringStrength = 100;
[WMMT5] [WMMT5]
GameId=9 GameId=9
DefaultCentering=0 DefaultCentering=0

Binary file not shown.

Binary file not shown.

View File

@ -24,6 +24,7 @@
<ClInclude Include="Common Files\SignatureScanning.h" /> <ClInclude Include="Common Files\SignatureScanning.h" />
<ClInclude Include="Config\PersistentValues.h" /> <ClInclude Include="Config\PersistentValues.h" />
<ClInclude Include="Game Files\AliensExtermination.h" /> <ClInclude Include="Game Files\AliensExtermination.h" />
<ClInclude Include="Game Files\ArcticThunder.h" />
<ClInclude Include="Game Files\Batman.h" /> <ClInclude Include="Game Files\Batman.h" />
<ClInclude Include="Game Files\CrazyTaxi.h" /> <ClInclude Include="Game Files\CrazyTaxi.h" />
<ClInclude Include="Game Files\D1GP.h" /> <ClInclude Include="Game Files\D1GP.h" />
@ -83,6 +84,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="Game Files\AliensExtermination.cpp" /> <ClCompile Include="Game Files\AliensExtermination.cpp" />
<ClCompile Include="Game Files\ArcticThunder.cpp" />
<ClCompile Include="Game Files\Batman.cpp" /> <ClCompile Include="Game Files\Batman.cpp" />
<ClCompile Include="Game Files\CrazyTaxi.cpp" /> <ClCompile Include="Game Files\CrazyTaxi.cpp" />
<ClCompile Include="Game Files\D1GP.cpp" /> <ClCompile Include="Game Files\D1GP.cpp" />

View File

@ -159,6 +159,7 @@
<ClCompile Include="Game Files\MarioKartGPDX1.18Custom.cpp" /> <ClCompile Include="Game Files\MarioKartGPDX1.18Custom.cpp" />
<ClCompile Include="Game Files\Showdown.cpp" /> <ClCompile Include="Game Files\Showdown.cpp" />
<ClCompile Include="Game Files\SpringEffect.cpp" /> <ClCompile Include="Game Files\SpringEffect.cpp" />
<ClCompile Include="Game Files\ArcticThunder.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="Game Files\Daytona3.h"> <ClInclude Include="Game Files\Daytona3.h">
@ -399,6 +400,9 @@
<ClInclude Include="Game Files\SpringEffect.h"> <ClInclude Include="Game Files\SpringEffect.h">
<Filter>Common Header Files</Filter> <Filter>Common Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="Game Files\ArcticThunder.h">
<Filter>Common Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MASM Include="DLLWrapper.asm" /> <MASM Include="DLLWrapper.asm" />

View File

@ -102,6 +102,7 @@ along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
#include "Game Files/Transformers.h" #include "Game Files/Transformers.h"
#include "Game Files/H2Overdrive.h" #include "Game Files/H2Overdrive.h"
#include "Game Files/StormRacerG.h" #include "Game Files/StormRacerG.h"
#include "Game Files/ArcticThunder.h"
// typedefs // typedefs
typedef unsigned char U8; typedef unsigned char U8;
@ -1066,6 +1067,7 @@ const int GRID_Custom = 71;
const int MARIO_KART_GPDX_118_CUSTOM = 72; const int MARIO_KART_GPDX_118_CUSTOM = 72;
const int SEGA_SHOWDOWN = 73; const int SEGA_SHOWDOWN = 73;
const int SPRING_EFFECT = 74; const int SPRING_EFFECT = 74;
const int ARCTIC_THUNDER = 75;
HINSTANCE Get_hInstance() HINSTANCE Get_hInstance()
{ {
@ -2590,6 +2592,9 @@ DWORD WINAPI FFBLoop(LPVOID lpParam)
case SPRING_EFFECT: case SPRING_EFFECT:
game = new SpringEffect; game = new SpringEffect;
break; break;
case ARCTIC_THUNDER:
game = new ArcticThunder;
break;
case TEST_GAME_CONST: case TEST_GAME_CONST:
case TEST_GAME_FRICTION: case TEST_GAME_FRICTION:
case TEST_GAME_SINE: case TEST_GAME_SINE:

View File

@ -0,0 +1,56 @@
/*This file is part of FFB Arcade Plugin.
FFB Arcade Plugin is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FFB Arcade Plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
*/
#include <string>
#include "ArcticThunder.h"
extern int EnableDamper;
extern int DamperStrength;
extern int EnableForceSpringEffect;
extern int ForceSpringStrength;
void ArcticThunder::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers) {
if (EnableDamper)
triggers->Damper(DamperStrength / 100.0);
if (EnableForceSpringEffect)
triggers->Springi(ForceSpringStrength / 100.0);
if (GetTeknoParrotFFB2() != 0xFF && GetTeknoParrotFFB2())
{
float FFBSine = (GetTeknoParrotFFB2() / 255.0);
triggers->Sine(50, 0, FFBSine);
triggers->Rumble(0, FFBSine, 100.0);
}
int FFB = GetTeknoParrotFFB3();
if (FFB)
{
if (FFB > 0x80)
{
double percentForce = ((FFB - 128.0) / 127.0);
triggers->Rumble(0, percentForce, 100.0);
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);
}
else if (FFB < 0x80)
{
double percentForce = ((128.0 - FFB) / 127.0);
triggers->Rumble(percentForce, 0, 100.0);
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
}
}
}

View File

@ -0,0 +1,21 @@
/*This file is part of FFB Arcade Plugin.
FFB Arcade Plugin is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FFB Arcade Plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
*/
#pragma once
#include "../Common Files/TeknoParrotGame.h"
class ArcticThunder : public TeknoParrotGame {
public:
ArcticThunder() : TeknoParrotGame() { }
void FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers);
};

View File

@ -1 +1 @@
v2.0.0.37 v2.0.0.38