summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-06-16 22:08:16 +0200
committerGitHub <noreply@github.com>2020-06-16 22:08:16 +0200
commitee456481cb2c9579e0015b85710b08a840144b2c (patch)
tree30a5d3a4181030ca731ae38f20df077a22b91e67 /src/peds/Ped.cpp
parentfix crash-VC pickup scaling (diff)
parentMerge branch 'miami' into miami (diff)
downloadre3-ee456481cb2c9579e0015b85710b08a840144b2c.tar
re3-ee456481cb2c9579e0015b85710b08a840144b2c.tar.gz
re3-ee456481cb2c9579e0015b85710b08a840144b2c.tar.bz2
re3-ee456481cb2c9579e0015b85710b08a840144b2c.tar.lz
re3-ee456481cb2c9579e0015b85710b08a840144b2c.tar.xz
re3-ee456481cb2c9579e0015b85710b08a840144b2c.tar.zst
re3-ee456481cb2c9579e0015b85710b08a840144b2c.zip
Diffstat (limited to '')
-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 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) {