mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-30 13:04:15 +01:00
Merge pull request #617 from majesticCoding/miami
some original VC's cheats and comparator for them
This commit is contained in:
commit
68caac1abd
219
src/core/Pad.cpp
219
src/core/Pad.cpp
@ -323,6 +323,12 @@ void CloudyWeatherCheat()
|
|||||||
CWeather::ForceWeatherNow(WEATHER_CLOUDY);
|
CWeather::ForceWeatherNow(WEATHER_CLOUDY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void StormyWeatherCheat()
|
||||||
|
{
|
||||||
|
CHud::SetHelpMessage(TheText.Get("CHEAT7"), true);
|
||||||
|
CWeather::ForceWeatherNow(WEATHER_HURRICANE);
|
||||||
|
}
|
||||||
|
|
||||||
void RainyWeatherCheat()
|
void RainyWeatherCheat()
|
||||||
{
|
{
|
||||||
CHud::SetHelpMessage(TheText.Get("CHEAT7"), true);
|
CHud::SetHelpMessage(TheText.Get("CHEAT7"), true);
|
||||||
@ -973,163 +979,190 @@ void CPad::AddToCheatString(char c)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int Cheat_strncmp(char* sourceStr, char* origCheatStr)
|
||||||
|
{
|
||||||
|
char cheatCodeVals[] = { 3,5,7,1,13,27,3,7,1,11,13,8,7,32,13,6,28,19,10,3,3,5,7,1,13,27,3,7 };
|
||||||
|
|
||||||
|
for (int32 i = 0; i < strlen(origCheatStr); i++) {
|
||||||
|
if ((sourceStr[i] != origCheatStr[i] - cheatCodeVals[i]) || i >= ARRAY_SIZE(cheatCodeVals)) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void CPad::AddToPCCheatString(char c)
|
void CPad::AddToPCCheatString(char c)
|
||||||
{
|
{
|
||||||
for ( int32 i = ARRAY_SIZE(KeyBoardCheatString) - 2; i >= 0; i-- )
|
for (int32 i = ARRAY_SIZE(KeyBoardCheatString) - 2; i >= 0; i--)
|
||||||
KeyBoardCheatString[i + 1] = KeyBoardCheatString[i];
|
KeyBoardCheatString[i + 1] = KeyBoardCheatString[i];
|
||||||
|
|
||||||
KeyBoardCheatString[0] = c;
|
KeyBoardCheatString[0] = c;
|
||||||
|
|
||||||
#define _CHEATCMP(str) strncmp(str, KeyBoardCheatString, sizeof(str)-1)
|
#define _CHEATCMP(str) strncmp(str, KeyBoardCheatString, sizeof(str)-1)
|
||||||
|
|
||||||
// "THUGSTOOLS"
|
// "THUGSTOOLS"
|
||||||
if (!_CHEATCMP("SLOOTSGUHT"))
|
if (!Cheat_strncmp(KeyBoardCheatString, "VQVPanJ\\I_")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
WeaponCheat1();
|
WeaponCheat1();
|
||||||
|
}
|
||||||
// "PROFESSIONALTOOLS"
|
// "PROFESSIONALTOOLS"
|
||||||
if (!_CHEATCMP("SLOOTLANOISSEFORP"))
|
else if (!Cheat_strncmp(KeyBoardCheatString, "VQVPagDUPT`[Lf\\Xl")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
WeaponCheat2();
|
WeaponCheat2();
|
||||||
|
}
|
||||||
// "NUTTERTOOLS"
|
// "NUTTERTOOLS"
|
||||||
if (!_CHEATCMP("SLOOTRETTUN"))
|
else if (!Cheat_strncmp(KeyBoardCheatString, "VQVPamH[U`[")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
WeaponCheat3();
|
WeaponCheat3();
|
||||||
|
}
|
||||||
// "IFIWEREARICHMAN"
|
// "PRECIOUSPROTECTION"
|
||||||
if ( !_CHEATCMP("NAMHCIRAEREWIFI") )
|
else if (!Cheat_strncmp(KeyBoardCheatString, "QTPUP`WVS[`]ViPKnc")) {
|
||||||
MoneyCheat();
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
ArmourCheat();
|
||||||
|
}
|
||||||
// "ASPIRINE"
|
// "ASPIRINE"
|
||||||
if (!_CHEATCMP("ENIRIPSA"))
|
else if (!Cheat_strncmp(KeyBoardCheatString, "HSPSVkVH")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
HealthCheat();
|
HealthCheat();
|
||||||
|
}
|
||||||
// "MOREPOLICEPLEASE"
|
// "YOUWONTTAKEMEALIVE"
|
||||||
if ( !_CHEATCMP("ESAELPECILOPEROM") )
|
else if (!Cheat_strncmp(KeyBoardCheatString, "H[PMN`PLLLa\\Uod[kl")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
WantedLevelUpCheat();
|
WantedLevelUpCheat();
|
||||||
|
}
|
||||||
// "LEAVEMEALONE"
|
// "LEAVEMEALONE"
|
||||||
if (!_CHEATCMP("ENOLAEMEVAEL"))
|
else if (!Cheat_strncmp(KeyBoardCheatString, "HSVMN`PLWLRT")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
WantedLevelDownCheat();
|
WantedLevelDownCheat();
|
||||||
|
}
|
||||||
|
// "APLEASANTDAY"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "\\FKU[\\VHFW]I")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
CloudyWeatherCheat();
|
||||||
|
}
|
||||||
|
// "ALOVELYDAY"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "\\FKZY`YVML")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
SunnyWeatherCheat();
|
||||||
|
}
|
||||||
|
// "ABITDRIEG"
|
||||||
|
|
||||||
|
// "CATSANDDOGS"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "VLVEQiDZULP")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
StormyWeatherCheat();
|
||||||
|
}
|
||||||
|
// "CANTSEEATHING"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "JSPIa\\HLT_[IJ")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
FoggyWeatherCheat();
|
||||||
|
}
|
||||||
// "PANZER"
|
// "PANZER"
|
||||||
if ( !_CHEATCMP("REZNAP") )
|
else if (!Cheat_strncmp(KeyBoardCheatString, "UJaONk")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
VehicleCheat(true, MI_RHINO);
|
VehicleCheat(true, MI_RHINO);
|
||||||
|
}
|
||||||
|
// "LIFEISPASSINGMEBY"
|
||||||
|
|
||||||
|
// "BIGBANG"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "JSHCTdE")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
BlowUpCarsCheat();
|
||||||
|
}
|
||||||
|
// "STILLLIKEDRESSINGUP"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "SZNOVnVLSORSPlYReg]")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
ChangePlayerCheat();
|
||||||
|
}
|
||||||
|
// "FIGHTFIGHTFIGHT"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "WMNJSoKNJQaPNiS")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
MayhemCheat();
|
||||||
|
}
|
||||||
|
// "NOBODYLIKESME"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "HRZFXdO`EZOWU")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
EverybodyAttacksPlayerCheat();
|
||||||
|
}
|
||||||
|
// "OURGODGIVENRIGHTTOBEARARMS"
|
||||||
|
else if (!Cheat_strncmp(KeyBoardCheatString, "VRYB_\\HIP_aPNi_TaiSJGTNSbj")) {
|
||||||
|
KeyBoardCheatString[0] = ' ';
|
||||||
|
WeaponsForAllCheat();
|
||||||
|
}
|
||||||
// "TRAVELINSTYLE"
|
// "TRAVELINSTYLE"
|
||||||
if ( !_CHEATCMP("ELYTSNILEVART") )
|
if (!_CHEATCMP("ELYTSNILEVART"))
|
||||||
VehicleCheat(true, MI_BLOODRA);
|
VehicleCheat(true, MI_BLOODRA);
|
||||||
|
|
||||||
// "GETTHEREQUICKLY"
|
// "GETTHEREQUICKLY"
|
||||||
if ( !_CHEATCMP("YLKCIUQEREHTTEG") )
|
if (!_CHEATCMP("YLKCIUQEREHTTEG"))
|
||||||
VehicleCheat(true, MI_BLOODRB);
|
VehicleCheat(true, MI_BLOODRB);
|
||||||
|
|
||||||
// "GETTHEREFAST"
|
// "GETTHEREFAST"
|
||||||
if ( !_CHEATCMP("TSAFEREHTTEG") )
|
if (!_CHEATCMP("TSAFEREHTTEG"))
|
||||||
VehicleCheat(true, MI_SABRETUR);
|
VehicleCheat(true, MI_SABRETUR);
|
||||||
|
|
||||||
// "GETTHEREVERYFASTINDEED"
|
// "GETTHEREVERYFASTINDEED"
|
||||||
if ( !_CHEATCMP("DEEDNITSAFYREVEREHTTEG") )
|
if (!_CHEATCMP("DEEDNITSAFYREVEREHTTEG"))
|
||||||
VehicleCheat(true, MI_HOTRINA);
|
VehicleCheat(true, MI_HOTRINA);
|
||||||
|
|
||||||
// "GETTHEREAMAZINGLYFAST"
|
// "GETTHEREAMAZINGLYFAST"
|
||||||
if ( !_CHEATCMP("TSAFYLGNIZAMAEREHTTEG") )
|
if (!_CHEATCMP("TSAFYLGNIZAMAEREHTTEG"))
|
||||||
VehicleCheat(true, MI_HOTRINB);
|
VehicleCheat(true, MI_HOTRINB);
|
||||||
|
|
||||||
// "THELASTRIDE"
|
// "THELASTRIDE"
|
||||||
if ( !_CHEATCMP("EDIRTSALEHT") )
|
if (!_CHEATCMP("EDIRTSALEHT"))
|
||||||
VehicleCheat(true, MI_ROMERO);
|
VehicleCheat(true, MI_ROMERO);
|
||||||
|
|
||||||
// "ROCKANDROLLCAR"
|
// "ROCKANDROLLCAR"
|
||||||
if ( !_CHEATCMP("RACLLORDNAKCOR") )
|
if (!_CHEATCMP("RACLLORDNAKCOR"))
|
||||||
VehicleCheat(true, MI_LOVEFIST);
|
VehicleCheat(true, MI_LOVEFIST);
|
||||||
|
|
||||||
// "RUBBISHCAR"
|
// "RUBBISHCAR"
|
||||||
if ( !_CHEATCMP("RACHSIBBUR") )
|
if (!_CHEATCMP("RACHSIBBUR"))
|
||||||
VehicleCheat(true, MI_TRASH);
|
VehicleCheat(true, MI_TRASH);
|
||||||
|
|
||||||
// "BETTERTHANWALKING"
|
// "BETTERTHANWALKING"
|
||||||
if ( !_CHEATCMP("GNIKLAWNAHTRETTEB") )
|
if (!_CHEATCMP("GNIKLAWNAHTRETTEB"))
|
||||||
VehicleCheat(true, MI_CADDY);
|
VehicleCheat(true, MI_CADDY);
|
||||||
|
|
||||||
// "BANGBANGBANG"
|
|
||||||
if ( !_CHEATCMP("GNABGNABGNAB") )
|
|
||||||
BlowUpCarsCheat();
|
|
||||||
|
|
||||||
// "ILIKEDRESSINGUP"
|
|
||||||
if ( !_CHEATCMP("PUGNISSERDEKILI") )
|
|
||||||
ChangePlayerCheat();
|
|
||||||
|
|
||||||
// "ITSALLGOINGMAAAD"
|
|
||||||
if ( !_CHEATCMP("DAAAMGNIOGLLASTI") )
|
|
||||||
MayhemCheat();
|
|
||||||
|
|
||||||
// "NOBODYLIKESME"
|
|
||||||
if ( !_CHEATCMP("EMSEKILYDOBON") )
|
|
||||||
EverybodyAttacksPlayerCheat();
|
|
||||||
|
|
||||||
// "WEAPONSFORALL"
|
|
||||||
if ( !_CHEATCMP("LLAROFSNOPAEW") )
|
|
||||||
WeaponsForAllCheat();
|
|
||||||
|
|
||||||
// "TIMEFLIESWHENYOU"
|
// "TIMEFLIESWHENYOU"
|
||||||
if ( !_CHEATCMP("UOYNEHWSEILFEMIT") )
|
if (!_CHEATCMP("UOYNEHWSEILFEMIT"))
|
||||||
FastTimeCheat();
|
FastTimeCheat();
|
||||||
|
|
||||||
// "BOOOOORING"
|
// "BOOOOORING"
|
||||||
if ( !_CHEATCMP("GNIROOOOOB") )
|
if (!_CHEATCMP("GNIROOOOOB"))
|
||||||
SlowTimeCheat();
|
SlowTimeCheat();
|
||||||
|
|
||||||
#ifndef GTA3_1_1_PATCH
|
|
||||||
// "TURTOISE"
|
|
||||||
if ( !_CHEATCMP("ESIOTRUT") )
|
|
||||||
ArmourCheat();
|
|
||||||
#else
|
|
||||||
// "PRECIOUSPROTECTION"
|
|
||||||
if (!_CHEATCMP("NOITCETORPSUOICERP"))
|
|
||||||
ArmourCheat();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// "SKINCANCERFORME"
|
|
||||||
if ( !_CHEATCMP("EMROFRECNACNIKS") )
|
|
||||||
SunnyWeatherCheat();
|
|
||||||
|
|
||||||
// "ILIKESCOTLAND"
|
|
||||||
if ( !_CHEATCMP("DNALTOCSEKILI") )
|
|
||||||
CloudyWeatherCheat();
|
|
||||||
|
|
||||||
// "ILOVESCOTLAND"
|
// "ILOVESCOTLAND"
|
||||||
if ( !_CHEATCMP("DNALTOCSEVOLI") )
|
if (!_CHEATCMP("DNALTOCSEVOLI"))
|
||||||
RainyWeatherCheat();
|
RainyWeatherCheat();
|
||||||
|
|
||||||
// "PEASOUP"
|
|
||||||
if ( !_CHEATCMP("PUOSAEP") )
|
|
||||||
FoggyWeatherCheat();
|
|
||||||
|
|
||||||
// "MADWEATHER"
|
// "MADWEATHER"
|
||||||
if ( !_CHEATCMP("REHTAEWDAM") )
|
if (!_CHEATCMP("REHTAEWDAM"))
|
||||||
FastWeatherCheat();
|
FastWeatherCheat();
|
||||||
|
|
||||||
// "ANICESETOFWHEELS"
|
// "ANICESETOFWHEELS"
|
||||||
if ( !_CHEATCMP("SLEEHWFOTESECINA") )
|
if (!_CHEATCMP("SLEEHWFOTESECINA"))
|
||||||
OnlyRenderWheelsCheat();
|
OnlyRenderWheelsCheat();
|
||||||
|
|
||||||
// "CHITTYCHITTYBB"
|
// "CHITTYCHITTYBB"
|
||||||
if ( !_CHEATCMP("BBYTTIHCYTTIHC") )
|
if (!_CHEATCMP("BBYTTIHCYTTIHC"))
|
||||||
ChittyChittyBangBangCheat();
|
ChittyChittyBangBangCheat();
|
||||||
|
|
||||||
// "CORNERSLIKEMAD"
|
// "CORNERSLIKEMAD"
|
||||||
if ( !_CHEATCMP("DAMEKILSRENROC") )
|
if (!_CHEATCMP("DAMEKILSRENROC"))
|
||||||
StrongGripCheat();
|
StrongGripCheat();
|
||||||
|
|
||||||
// "NASTYLIMBSCHEAT"
|
// "NASTYLIMBSCHEAT"
|
||||||
if ( !_CHEATCMP("TAEHCSBMILYTSAN") )
|
if (!_CHEATCMP("TAEHCSBMILYTSAN"))
|
||||||
NastyLimbsCheat();
|
NastyLimbsCheat();
|
||||||
|
|
||||||
// "IWANTITPAINTEDBLACK"
|
// "IWANTITPAINTEDBLACK"
|
||||||
if ( !_CHEATCMP("KCALBDETNIAPTITNAWI") )
|
if (!_CHEATCMP("KCALBDETNIAPTITNAWI"))
|
||||||
BlackCarsCheat();
|
BlackCarsCheat();
|
||||||
|
|
||||||
// "AHAIRDRESSERSCAR"
|
// "AHAIRDRESSERSCAR"
|
||||||
if ( !_CHEATCMP("RACSRESSERDRIAHA") )
|
if (!_CHEATCMP("RACSRESSERDRIAHA"))
|
||||||
PinkCarsCheat();
|
PinkCarsCheat();
|
||||||
|
|
||||||
#ifdef KANGAROO_CHEAT
|
#ifdef KANGAROO_CHEAT
|
||||||
@ -1160,7 +1193,7 @@ void CPad::AddToPCCheatString(char c)
|
|||||||
// SEABEDCHEAT
|
// SEABEDCHEAT
|
||||||
if (!_CHEATCMP("TAEHCDEBAESON"))
|
if (!_CHEATCMP("TAEHCDEBAESON"))
|
||||||
NoSeaBedCheat();
|
NoSeaBedCheat();
|
||||||
|
|
||||||
// WATERLAYERSCHEAT
|
// WATERLAYERSCHEAT
|
||||||
if (!_CHEATCMP("TAEHCSREYALRETAW"))
|
if (!_CHEATCMP("TAEHCSREYALRETAW"))
|
||||||
RenderWaterLayersCheat();
|
RenderWaterLayersCheat();
|
||||||
@ -1170,7 +1203,7 @@ void CPad::AddToPCCheatString(char c)
|
|||||||
if (!_CHEATCMP("SYAWAES"))
|
if (!_CHEATCMP("SYAWAES"))
|
||||||
BackToTheFuture();
|
BackToTheFuture();
|
||||||
|
|
||||||
#undef _CHEATCMP
|
#undef _CHEATCMP
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XINPUT
|
#ifdef XINPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user