mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-25 05:01:56 +00:00
some original VC's cheats and comparator for them
This commit is contained in:
parent
647fd951ec
commit
e2cc3e1a33
122
src/core/Pad.cpp
122
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,6 +979,18 @@ void CPad::AddToCheatString(char c)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int CheatComp(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]) {
|
||||||
|
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--)
|
||||||
|
@ -983,37 +1001,77 @@ void CPad::AddToPCCheatString(char 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 (!CheatComp(KeyBoardCheatString, "VQVPanJ\\I_"))
|
||||||
WeaponCheat1();
|
WeaponCheat1();
|
||||||
|
|
||||||
// "PROFESSIONALTOOLS"
|
// "PROFESSIONALTOOLS"
|
||||||
if (!_CHEATCMP("SLOOTLANOISSEFORP"))
|
if (!CheatComp(KeyBoardCheatString, "VQVPagDUPT`[Lf\\Xl"))
|
||||||
WeaponCheat2();
|
WeaponCheat2();
|
||||||
|
|
||||||
// "NUTTERTOOLS"
|
// "NUTTERTOOLS"
|
||||||
if (!_CHEATCMP("SLOOTRETTUN"))
|
if (!CheatComp(KeyBoardCheatString, "VQVPamH[U`["))
|
||||||
WeaponCheat3();
|
WeaponCheat3();
|
||||||
|
|
||||||
// "IFIWEREARICHMAN"
|
// "PRECIOUSPROTECTION"
|
||||||
if ( !_CHEATCMP("NAMHCIRAEREWIFI") )
|
if (!CheatComp(KeyBoardCheatString, "QTPUP`WVS[`]ViPKnc"))
|
||||||
MoneyCheat();
|
ArmourCheat();
|
||||||
|
|
||||||
// "ASPIRINE"
|
// "ASPIRINE"
|
||||||
if (!_CHEATCMP("ENIRIPSA"))
|
if (!CheatComp(KeyBoardCheatString, "HSPSVkVH"))
|
||||||
HealthCheat();
|
HealthCheat();
|
||||||
|
|
||||||
// "MOREPOLICEPLEASE"
|
// "YOUWONTTAKEMEALIVE"
|
||||||
if ( !_CHEATCMP("ESAELPECILOPEROM") )
|
if (!CheatComp(KeyBoardCheatString, "H[PMN`PLLLa\\Uod[kl"))
|
||||||
WantedLevelUpCheat();
|
WantedLevelUpCheat();
|
||||||
|
|
||||||
// "LEAVEMEALONE"
|
// "LEAVEMEALONE"
|
||||||
if (!_CHEATCMP("ENOLAEMEVAEL"))
|
if (!CheatComp(KeyBoardCheatString, "HSVMN`PLWLRT"))
|
||||||
WantedLevelDownCheat();
|
WantedLevelDownCheat();
|
||||||
|
|
||||||
|
// "APLEASANTDAY"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "\\FKU[\\VHFW]I"))
|
||||||
|
CloudyWeatherCheat();
|
||||||
|
|
||||||
|
// "ALOVELYDAY"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "\\FKZY`YVML"))
|
||||||
|
SunnyWeatherCheat();
|
||||||
|
|
||||||
|
// "ABITDRIEG"
|
||||||
|
|
||||||
|
// "CATSANDDOGS"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "VLVEQiDZULP"))
|
||||||
|
StormyWeatherCheat();
|
||||||
|
|
||||||
|
// "CANTSEEATHING"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "JSPIa\\HLT_[IJ"))
|
||||||
|
FoggyWeatherCheat();
|
||||||
|
|
||||||
// "PANZER"
|
// "PANZER"
|
||||||
if ( !_CHEATCMP("REZNAP") )
|
if (!CheatComp(KeyBoardCheatString, "UJaONk"))
|
||||||
VehicleCheat(true, MI_RHINO);
|
VehicleCheat(true, MI_RHINO);
|
||||||
|
|
||||||
|
// "LIFEISPASSINGMEBY"
|
||||||
|
|
||||||
|
// "BIGBANG"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "JSHCTdE"))
|
||||||
|
BlowUpCarsCheat();
|
||||||
|
|
||||||
|
// "STILLLIKEDRESSINGUP"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "SZNOVnVLSORSPlYReg]"))
|
||||||
|
ChangePlayerCheat();
|
||||||
|
|
||||||
|
// "FIGHTFIGHTFIGHT"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "WMNJSoKNJQaPNiS"))
|
||||||
|
MayhemCheat();
|
||||||
|
|
||||||
|
// "NOBODYLIKESME"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "HRZFXdO`EZOWU"))
|
||||||
|
EverybodyAttacksPlayerCheat();
|
||||||
|
|
||||||
|
// "OURGODGIVENRIGHTTOBEARARMS"
|
||||||
|
if (!CheatComp(KeyBoardCheatString, "VRYB_\\HIP_aPNi_TaiSJGTNSbj"))
|
||||||
|
WeaponsForAllCheat();
|
||||||
|
|
||||||
// "TRAVELINSTYLE"
|
// "TRAVELINSTYLE"
|
||||||
if (!_CHEATCMP("ELYTSNILEVART"))
|
if (!_CHEATCMP("ELYTSNILEVART"))
|
||||||
VehicleCheat(true, MI_BLOODRA);
|
VehicleCheat(true, MI_BLOODRA);
|
||||||
|
@ -1050,26 +1108,6 @@ void CPad::AddToPCCheatString(char c)
|
||||||
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();
|
||||||
|
@ -1078,32 +1116,10 @@ void CPad::AddToPCCheatString(char c)
|
||||||
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();
|
||||||
|
|
Loading…
Reference in a new issue