From 015921522db77273d00b12a08d7c6114f07d0071 Mon Sep 17 00:00:00 2001 From: majestic Date: Sun, 14 Jun 2020 05:57:27 -0700 Subject: fixed condition in CBoat::ProcessControl and changed enum --- src/peds/Ped.cpp | 6 ++++++ src/peds/Ped.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/peds') 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) { diff --git a/src/peds/Ped.h b/src/peds/Ped.h index 6338b889..f1a0a45f 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -1056,6 +1056,7 @@ public: static uint16 nEnterCarRangeMultiplier; static bool bNastyLimbsCheat; + static bool bFannyMagnetCheat; static bool bPedCheat2; static bool bPedCheat3; static CVector2D ms_vec2DFleePosition; -- cgit v1.2.3