misc stuff, mostly collision

This commit is contained in:
aap 2019-06-28 19:23:28 +02:00
parent bbb8a21fe1
commit 48cf8b6629
16 changed files with 389 additions and 46 deletions

View file

@ -90,6 +90,18 @@ void PrintGameVersion();
RwRGBA gColourTop;
#ifndef DEBUG
// This is the weirdest shit. In Debug this causes my game to crash in CPed::IsPedInControl shortly after level change
void
InitialiseGame(void)
{
LoadingScreen(nil, nil, "loadsc0");
CGame::Initialise("DATA\\GTA3.DAT");
}
#else
WRAPPER void InitialiseGame(void) { EAXJMP(0x48E7E0); }
#endif
void
Idle(void *arg)
{
@ -591,6 +603,25 @@ ResetLoadingScreenBar(void)
NumberOfChunksLoaded = 0.0f;
}
WRAPPER void
LoadingIslandScreen(const char *levelName)
{
EAXJMP(0x48DA50);
}
char*
GetLevelSplashScreen(int level)
{
static char *splashScreens[4] = {
nil,
"splash1",
"splash2",
"splash3",
};
return splashScreens[level];
}
char*
GetRandomSplashScreen(void)
{