mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-26 04:12:34 +01:00
Add a very special 'Secret Car Fun' mode ;)
This commit is contained in:
parent
961db40aa3
commit
7073dcfc74
@ -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;
|
||||
|
@ -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 }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user