summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp6
-rw-r--r--src/peds/Ped.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 1b98dad6..14aa312a 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -130,6 +130,7 @@ CVector vecPedDirtBikeJumpRhsAnimOffset;
CVector vecPedBikeKickAnimOffset;
bool CPed::bNastyLimbsCheat;
+bool CPed::bFannyMagnetCheat;
bool CPed::bPedCheat2;
bool CPed::bPedCheat3;
CVector2D CPed::ms_vec2DFleePosition;
@@ -11673,6 +11674,11 @@ CPed::ProcessControl(void)
#ifndef VC_PED_PORTS
m_pCurrentPhysSurface = nil;
#endif
+ if (bFannyMagnetCheat && m_nPedType == PEDTYPE_CIVFEMALE
+ && m_pedStats->m_sexiness > 40 && !m_leader) {
+ SetLeader(FindPlayerPed());
+ }
+
} else {
if (bIsStanding && (!m_pCurrentPhysSurface || IsPlayer())
|| bIsInWater || !bUsesCollision) {
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 69d1ba5a..a268d912 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -1076,6 +1076,7 @@ public:
static uint16 nEnterCarRangeMultiplier;
static bool bNastyLimbsCheat;
+ static bool bFannyMagnetCheat;
static bool bPedCheat2;
static bool bPedCheat3;
static CVector2D ms_vec2DFleePosition;