summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-10 17:26:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-10 17:26:13 +0200
commit653d808417d3c3959ad34ac93b6775770f10271b (patch)
treed569ca2dd0f5ecd7b487fb3794736d969f14c0fc /src/core
parentsome updates for script (diff)
parentCVehicleModelInfo (diff)
downloadre3-653d808417d3c3959ad34ac93b6775770f10271b.tar
re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.gz
re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.bz2
re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.lz
re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.xz
re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.zst
re3-653d808417d3c3959ad34ac93b6775770f10271b.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/FileLoader.cpp3
-rw-r--r--src/core/Pad.cpp22
2 files changed, 24 insertions, 1 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index 7d1ba67f..fb826798 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -791,7 +791,7 @@ CFileLoader::LoadVehicleObject(const char *line)
// TODO(MIAMI): anims
for(p = gamename; *p; p++)
if(*p == '_') *p = ' ';
- strncpy(mi->m_gameName, gamename, 32);
+ strcpy(mi->m_gameName, gamename);
mi->m_level = level;
mi->m_compRules = comprules;
@@ -873,6 +873,7 @@ CFileLoader::LoadPedObject(const char *line)
for(animGroupId = 0; animGroupId < NUM_ANIM_ASSOC_GROUPS; animGroupId++)
if(strcmp(animGroup, CAnimManager::GetAnimGroupName((AssocGroupId)animGroupId)) == 0)
break;
+ assert(animGroupId < NUM_ANIM_ASSOC_GROUPS);
mi->m_animGroup = animGroupId;
mi->m_carsCanDrive = carsCanDrive;
}
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index b996dc28..6e2080cf 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -273,6 +273,20 @@ void NastyLimbsCheat()
{
CPed::bNastyLimbsCheat = !CPed::bNastyLimbsCheat;
}
+
+void BlackCarsCheat()
+{
+ CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+ gbBlackCars = true;
+ gbPinkCars = false;
+}
+
+void PinkCarsCheat()
+{
+ CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+ gbBlackCars = false;
+ gbPinkCars = true;
+}
//////////////////////////////////////////////////////////////////////////
#ifdef KANGAROO_CHEAT
@@ -951,6 +965,14 @@ void CPad::AddToPCCheatString(char c)
if ( !_CHEATCMP("TAEHCSBMILYTSAN") )
NastyLimbsCheat();
+ // "IWANTITPAINTEDBLACK"
+ if ( !_CHEATCMP("KCALBDETNIAPTITNAWI") )
+ BlackCarsCheat();
+
+ // "AHAIRDRESSERSCAR"
+ if ( !_CHEATCMP("RACSRESSERDRIAHA") )
+ PinkCarsCheat();
+
#ifdef KANGAROO_CHEAT
// "KANGAROO"
if (!_CHEATCMP("OORAGNAK"))