summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-06-14 14:57:27 +0200
committermajestic <majesticcoding@gmail.com>2020-06-14 16:53:45 +0200
commit015921522db77273d00b12a08d7c6114f07d0071 (patch)
tree8ad4957a2d36263e4de978e110fcc98bcc046298 /src/peds/Ped.cpp
parentMerge pull request #625 from aap/miami (diff)
downloadre3-015921522db77273d00b12a08d7c6114f07d0071.tar
re3-015921522db77273d00b12a08d7c6114f07d0071.tar.gz
re3-015921522db77273d00b12a08d7c6114f07d0071.tar.bz2
re3-015921522db77273d00b12a08d7c6114f07d0071.tar.lz
re3-015921522db77273d00b12a08d7c6114f07d0071.tar.xz
re3-015921522db77273d00b12a08d7c6114f07d0071.tar.zst
re3-015921522db77273d00b12a08d7c6114f07d0071.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index e484cd50..1c895551 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -98,6 +98,7 @@ CVector vecPedDirtBikeJumpRhsAnimOffset;
CVector vecPedBikeKickAnimOffset;
bool CPed::bNastyLimbsCheat;
+bool CPed::bFannyMagnetCheat;
bool CPed::bPedCheat2;
bool CPed::bPedCheat3;
CVector2D CPed::ms_vec2DFleePosition;
@@ -11419,6 +11420,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) {