Added SnoCross
This commit is contained in:
parent
79ab478629
commit
3c2506d1d7
@ -152,6 +152,10 @@ FeedbackLength=500
|
|||||||
GameId=43
|
GameId=43
|
||||||
FeedbackLength=500
|
FeedbackLength=500
|
||||||
|
|
||||||
|
[Winter X Games SnoCross]
|
||||||
|
GameId=44
|
||||||
|
FeedbackLength=500
|
||||||
|
|
||||||
[Sega Racing Classic]
|
[Sega Racing Classic]
|
||||||
GameId=5
|
GameId=5
|
||||||
FeedbackLength=500
|
FeedbackLength=500
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
<ClCompile Include="Game Files\SegaRacingClassic.cpp" />
|
<ClCompile Include="Game Files\SegaRacingClassic.cpp" />
|
||||||
<ClCompile Include="Game Files\FordRacing.cpp" />
|
<ClCompile Include="Game Files\FordRacing.cpp" />
|
||||||
<ClCompile Include="Game Files\MarioKartGPDX.cpp" />
|
<ClCompile Include="Game Files\MarioKartGPDX.cpp" />
|
||||||
|
<ClCompile Include="Game Files\SnoCross.cpp" />
|
||||||
<ClCompile Include="Game Files\SonicSegaAllStarsRacing.cpp" />
|
<ClCompile Include="Game Files\SonicSegaAllStarsRacing.cpp" />
|
||||||
<ClCompile Include="Game Files\TestGame.cpp" />
|
<ClCompile Include="Game Files\TestGame.cpp" />
|
||||||
<ClCompile Include="Game Files\Transformers.cpp" />
|
<ClCompile Include="Game Files\Transformers.cpp" />
|
||||||
@ -117,6 +118,7 @@
|
|||||||
<ClInclude Include="Game Files\SegaRacingClassic.h" />
|
<ClInclude Include="Game Files\SegaRacingClassic.h" />
|
||||||
<ClInclude Include="Game Files\FordRacing.h" />
|
<ClInclude Include="Game Files\FordRacing.h" />
|
||||||
<ClInclude Include="Game Files\MarioKartGPDX.h" />
|
<ClInclude Include="Game Files\MarioKartGPDX.h" />
|
||||||
|
<ClInclude Include="Game Files\SnoCross.h" />
|
||||||
<ClInclude Include="Game Files\SonicSegaAllStarsRacing.h" />
|
<ClInclude Include="Game Files\SonicSegaAllStarsRacing.h" />
|
||||||
<ClInclude Include="Game Files\TestGame.h" />
|
<ClInclude Include="Game Files\TestGame.h" />
|
||||||
<ClInclude Include="Game Files\Transformers.h" />
|
<ClInclude Include="Game Files\Transformers.h" />
|
||||||
|
@ -122,6 +122,7 @@
|
|||||||
<ClCompile Include="Game Files\GoldenGun.cpp" />
|
<ClCompile Include="Game Files\GoldenGun.cpp" />
|
||||||
<ClCompile Include="Game Files\DirtyDrivin.cpp" />
|
<ClCompile Include="Game Files\DirtyDrivin.cpp" />
|
||||||
<ClCompile Include="Game Files\H2Overdrive.cpp" />
|
<ClCompile Include="Game Files\H2Overdrive.cpp" />
|
||||||
|
<ClCompile Include="Game Files\SnoCross.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="Game Files\Daytona3.h">
|
<ClInclude Include="Game Files\Daytona3.h">
|
||||||
@ -263,6 +264,9 @@
|
|||||||
<ClInclude Include="Game Files\H2Overdrive.h">
|
<ClInclude Include="Game Files\H2Overdrive.h">
|
||||||
<Filter>Common Header Files</Filter>
|
<Filter>Common Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Game Files\SnoCross.h">
|
||||||
|
<Filter>Common Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<MASM Include="DLLWrapper.asm" />
|
<MASM Include="DLLWrapper.asm" />
|
||||||
|
@ -49,6 +49,7 @@ along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
|
|||||||
#include "Game Files/OutRun2Real.h"
|
#include "Game Files/OutRun2Real.h"
|
||||||
#include "Game Files/SegaRacingClassic.h"
|
#include "Game Files/SegaRacingClassic.h"
|
||||||
#include "Game Files/SegaRally3.h"
|
#include "Game Files/SegaRally3.h"
|
||||||
|
#include "Game Files/SnoCross.h"
|
||||||
#include "Game Files/OldMame.h"
|
#include "Game Files/OldMame.h"
|
||||||
#include "Game Files/WackyRaces.h"
|
#include "Game Files/WackyRaces.h"
|
||||||
#include "Game Files/WMMT5.h"
|
#include "Game Files/WMMT5.h"
|
||||||
@ -957,6 +958,7 @@ const int Transformers_ = 40;
|
|||||||
const int Golden_Gun = 41;
|
const int Golden_Gun = 41;
|
||||||
const int Dirty_Drivin = 42;
|
const int Dirty_Drivin = 42;
|
||||||
const int H2_Overdrive = 43;
|
const int H2_Overdrive = 43;
|
||||||
|
const int Sno_Cross = 44;
|
||||||
|
|
||||||
HINSTANCE Get_hInstance()
|
HINSTANCE Get_hInstance()
|
||||||
{
|
{
|
||||||
@ -2087,6 +2089,9 @@ DWORD WINAPI FFBLoop(LPVOID lpParam)
|
|||||||
case H2_Overdrive:
|
case H2_Overdrive:
|
||||||
game = new H2Overdrive;
|
game = new H2Overdrive;
|
||||||
break;
|
break;
|
||||||
|
case Sno_Cross:
|
||||||
|
game = new SnoCross;
|
||||||
|
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:
|
||||||
|
39
Game Files/SnoCross.cpp
Normal file
39
Game Files/SnoCross.cpp
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/*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 "SnoCross.h"
|
||||||
|
|
||||||
|
void SnoCross::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers) {
|
||||||
|
|
||||||
|
float ff = helpers->ReadFloat32(0x99AB6C, false);
|
||||||
|
|
||||||
|
helpers->log("got value: ");
|
||||||
|
std::string ffs = std::to_string(ff);
|
||||||
|
helpers->log((char*)ffs.c_str());
|
||||||
|
|
||||||
|
if (ff > 0)
|
||||||
|
{
|
||||||
|
double percentForce = ff / 1.24;
|
||||||
|
double percentLength = 100;
|
||||||
|
triggers->Rumble(percentForce, 0, percentLength);
|
||||||
|
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);
|
||||||
|
}
|
||||||
|
else if (ff < 0)
|
||||||
|
{
|
||||||
|
double percentForce = -ff / 1.24;
|
||||||
|
double percentLength = 100;
|
||||||
|
triggers->Rumble(0, percentForce, percentLength);
|
||||||
|
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
|
||||||
|
}
|
||||||
|
}
|
20
Game Files/SnoCross.h
Normal file
20
Game Files/SnoCross.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*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/Game.h"
|
||||||
|
class SnoCross : public Game {
|
||||||
|
|
||||||
|
public:
|
||||||
|
void FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers);
|
||||||
|
};
|
@ -1,6 +1,6 @@
|
|||||||
***FFB Arcade Plugin***
|
***FFB Arcade Plugin***
|
||||||
|
|
||||||
Version 1.6
|
Version 1.7
|
||||||
|
|
||||||
Brought to you by Boomslangnz, Ducon2016, Spazzy & pinkimo.
|
Brought to you by Boomslangnz, Ducon2016, Spazzy & pinkimo.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user