script 800-899
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user