diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-12 02:26:54 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-05-12 02:26:54 +0200 |
commit | 2fc431d1bb9870e39727548ef80f9512644990d1 (patch) | |
tree | 4d14cc19d659a1af7c1da09a8724a225d6aff3c9 /src/peds/Ped.cpp | |
parent | fabs -> fabsf (diff) | |
download | re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.gz re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.bz2 re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.lz re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.xz re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.zst re3-2fc431d1bb9870e39727548ef80f9512644990d1.zip |
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r-- | src/peds/Ped.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 342cba2d..fe105645 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -7768,19 +7768,33 @@ void CPed::LookForSexyPeds(void) { if ((!IsPedInControl() && m_nPedState != PED_DRIVING) - || m_lookTimer >= CTimer::GetTimeInMilliseconds() || m_nPedType != PEDTYPE_CIVMALE) + || m_lookTimer >= CTimer::GetTimeInMilliseconds() || +#ifdef FIX_BUGS + (m_nPedType != PEDTYPE_CIVMALE) && !IsFemale() && (m_nPedType != PEDTYPE_CRIMINAL) && !IsGangMember() +#else + m_nPedType != PEDTYPE_CIVMALE +#endif + ) return; for (int i = 0; i < m_numNearPeds; i++) { if (CanSeeEntity(m_nearPeds[i])) { if ((GetPosition() - m_nearPeds[i]->GetPosition()).Magnitude() < 10.0f) { CPed *nearPed = m_nearPeds[i]; - if ((nearPed->m_pedStats->m_sexiness > m_pedStats->m_sexiness) - && nearPed->m_nPedType == PEDTYPE_CIVFEMALE) { + if((nearPed->m_pedStats->m_sexiness > m_pedStats->m_sexiness) +#ifdef FIX_BUGS + && ((IsFemale() && !nearPed->IsFemale()) || (!IsFemale() && nearPed->IsFemale()))) { +#else + && nearPed->m_nPedType == PEDTYPE_CIVFEMALE) { +#endif SetLookFlag(nearPed, true); m_lookTimer = CTimer::GetTimeInMilliseconds() + 4000; - Say(SOUND_PED_CHAT_SEXY); +#ifdef FIX_BUGS + Say(IsFemale() ? SOUND_PED_CHAT_SEXY_FEMALE : SOUND_PED_CHAT_SEXY_MALE); +#else + Say(SOUND_PED_CHAT_SEXY_MALE); +#endif return; } } @@ -8734,7 +8748,7 @@ CPed::Wait(void) if ((GetPosition() - nearPed->GetPosition()).MagnitudeSqr() < sq(10.f)) { for (int anim = ANIM_STRIP_A; anim <= ANIM_STRIP_G; anim++) { if (RpAnimBlendClumpGetAssociation(nearPed->GetClump(), anim)) - Say(SOUND_PED_149); + Say(SOUND_PED_JEER); } } } |