diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-01-03 17:48:13 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-01-03 17:48:13 +0100 |
commit | 0723dade768ad6118db00c7bb908f39949fb7970 (patch) | |
tree | a477b1f04fe92af9619cb8495518691aa409abba /src/control/Population.cpp | |
parent | bug fixes (diff) | |
download | re3-0723dade768ad6118db00c7bb908f39949fb7970.tar re3-0723dade768ad6118db00c7bb908f39949fb7970.tar.gz re3-0723dade768ad6118db00c7bb908f39949fb7970.tar.bz2 re3-0723dade768ad6118db00c7bb908f39949fb7970.tar.lz re3-0723dade768ad6118db00c7bb908f39949fb7970.tar.xz re3-0723dade768ad6118db00c7bb908f39949fb7970.tar.zst re3-0723dade768ad6118db00c7bb908f39949fb7970.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Population.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/Population.cpp b/src/control/Population.cpp index a98721ac..d7e32dbf 100644 --- a/src/control/Population.cpp +++ b/src/control/Population.cpp @@ -1,6 +1,7 @@ #include "common.h" #include "patcher.h" #include "Game.h" +#include "General.h" #include "World.h" #include "Entity.h" #include "Population.h" @@ -79,6 +80,12 @@ CPopulation::RemovePed(CEntity* ent) delete ent; } +int32 +CPopulation::ChooseCivilianOccupation(int32 group) +{ + return ms_pPedGroups[group].models[CGeneral::GetRandomNumberInRange(0, 8)]; +} + STARTPATCHES InjectHook(0x4F3770, CPopulation::Initialise, PATCH_JUMP); ENDPATCHES
\ No newline at end of file |