Add a very special 'Secret Car Fun' mode ;)

This commit is contained in:
Fireboyd78 2020-08-21 23:46:41 -07:00
parent 961db40aa3
commit 7073dcfc74
2 changed files with 22 additions and 0 deletions

View File

@ -310,6 +310,18 @@ void FixCarCos(CAR_COSMETICS *carCos, int externalModelNumber)
UpdateCarPoints(carCos);
if (ActiveCheats.cheat10)
{
if ((carCos == &car_cosmetics[4]) && (externalModelNumber == 12))
{
carCos->powerRatio += (carCos->powerRatio / 2);
carCos->mass *= 3;
carCos->traction *= 2;
carCos->wheelSize += (carCos->wheelSize / 4);
carCos->cog.vy -= 20;
}
}
if (carCos == &car_cosmetics[2] && gCurrentMissionNumber == 7)
{
car_cosmetics[2].mass *= 3;

View File

@ -12,6 +12,7 @@
#include "CUTSCENE.H"
#include "REPLAYS.H"
#include "OVERMAP.H"
#include "HANDLING.H"
static int gScoreEntered = 0;
static char EnterNameText[32] = { 0 };
@ -70,6 +71,14 @@ void TogglePlayerGhost(int direction)
playerghost ^= 1;
}
void ToggleSecretCarFun(int direction)
{
extern CAR_COSMETICS car_cosmetics[5];
ActiveCheats.cheat10 ^= 1;
FixCarCos(&car_cosmetics[4], 12);
}
extern void LoadSky(void);
void DebugTimeOfDayDay(int direction)
@ -135,6 +144,7 @@ MENU_ITEM DebugOptionsItems[] =
{ "Immunity", 3, 2, ToggleImmune, MENU_QUIT_NONE, NULL },
{ "Ghost mode", 3, 2, TogglePlayerGhost, MENU_QUIT_NONE, NULL },
{ "Next mission", 1, 2, NULL, MENU_QUIT_NEXTMISSION, NULL },
{ "Secret Car Fun", 3, 2, ToggleSecretCarFun, MENU_QUIT_RESTART, NULL },
{ NULL, 128u, 0u, NULL, MENU_QUIT_NONE, NULL }
};