summaryrefslogtreecommitdiffstats
path: root/src/peds/Population.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-17 20:48:12 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-17 20:48:12 +0200
commit3cc20d7962c317aeb1e1e36e77ec270298b51cdb (patch)
treec6fcaef6b3271d8407530c826b92367a4e81ff17 /src/peds/Population.cpp
parentfull script basic support (diff)
parentMerge pull request #555 from erorcun/miami (diff)
downloadre3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.tar
re3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.tar.gz
re3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.tar.bz2
re3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.tar.lz
re3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.tar.xz
re3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.tar.zst
re3-3cc20d7962c317aeb1e1e36e77ec270298b51cdb.zip
Diffstat (limited to 'src/peds/Population.cpp')
-rw-r--r--src/peds/Population.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp
index 9d8d65dd..44bedab9 100644
--- a/src/peds/Population.cpp
+++ b/src/peds/Population.cpp
@@ -816,29 +816,11 @@ CPopulation::AddPedInCar(CVehicle* car, bool isDriver)
CPed *newPed = CPopulation::AddPed((ePedType)pedType, preferredModel, car->GetPosition(), miamiViceIndex);
newPed->bUsesCollision = false;
- // what??
- if (pedType != PEDTYPE_COP) {
- newPed->SetCurrentWeapon(WEAPONTYPE_COLT45);
+ if (newPed->GetWeapon()->m_eWeaponType != WEAPONTYPE_UNARMED) {
newPed->RemoveWeaponModel(CWeaponInfo::GetWeaponInfo(newPed->GetWeapon()->m_eWeaponType)->m_nModelId);
}
- /*
- // Miami leftover
- if (car->m_vehType == VEHICLE_TYPE_BIKE) {
- newPed->m_pVehicleAnim = CAnimManager::BlendAnimation(newPed->GetClump(), ASSOCGRP_STD, *((CBike*)car + 308h), 100.0f);
- } else */
- // FIX: Make peds comfortable while driving car/boat
-#ifdef FIX_BUGS
- {
- newPed->m_pVehicleAnim = CAnimManager::BlendAnimation(newPed->GetClump(), ASSOCGRP_STD, car->GetDriverAnim(), 100.0f);
- }
-#else
- {
- newPed->m_pVehicleAnim = CAnimManager::BlendAnimation(newPed->GetClump(), ASSOCGRP_STD, ANIM_CAR_SIT, 100.0f);
- }
-#endif
-
- newPed->StopNonPartialAnims();
+ newPed->AddInCarAnims(car, isDriver);
return newPed;
}