diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 11:25:30 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 11:25:30 +0200 |
commit | 2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e (patch) | |
tree | 24ca53597b1ebf632b12fb315ef91e899807d47d /src/peds/CopPed.cpp | |
parent | Merge pull request #528 from Nick007J/miami (diff) | |
download | re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.tar re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.tar.gz re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.tar.bz2 re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.tar.lz re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.tar.xz re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.tar.zst re3-2f7d2fa3ad697b6fa1896ac75f97c23f52ed843e.zip |
Diffstat (limited to 'src/peds/CopPed.cpp')
-rw-r--r-- | src/peds/CopPed.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp index 0c78279e..9e77ec72 100644 --- a/src/peds/CopPed.cpp +++ b/src/peds/CopPed.cpp @@ -17,7 +17,7 @@ #include "Renderer.h" #include "Camera.h" -CCopPed::CCopPed(eCopType copType) : CPed(PEDTYPE_COP) +CCopPed::CCopPed(eCopType copType, int32 modifier) : CPed(PEDTYPE_COP) { m_nCopType = copType; switch (copType) { @@ -57,7 +57,23 @@ CCopPed::CCopPed(eCopType copType) : CPed(PEDTYPE_COP) m_wepSkills = 32; /* TODO: what is this? seems unused */ m_wepAccuracy = 84; break; - default: + case COP_MIAMIVICE: + switch (modifier) { + case 0: SetModelIndex(MI_VICE1); break; + case 1: SetModelIndex(MI_VICE2); break; + case 2: SetModelIndex(MI_VICE3); break; + case 3: SetModelIndex(MI_VICE4); break; + case 4: SetModelIndex(MI_VICE5); break; + case 5: SetModelIndex(MI_VICE6); break; + case 6: SetModelIndex(MI_VICE7); break; + case 7: SetModelIndex(MI_VICE8); break; + default: assert(0); break; + } + GiveWeapon(WEAPONTYPE_UZI, 1000); + SetCurrentWeapon(WEAPONTYPE_UZI); + m_fArmour = 100.0f; + m_wepSkills = 176; + m_wepAccuracy = 76; break; } m_bIsInPursuit = false; |