实体
人口 CPopulation
路人密度、生成与组表
CPopulation.h
路人密度、生成 / 移除行人、组表。改倍数记得还原。
密度与上限
PedDensityMultiplier / MaxNumberOfPedsInUse
static float& PedDensityMultiplier;
static unsigned int& MaxNumberOfPedsInUse;
static unsigned int& NumberOfPedsInUseInterior;人数统计
ms_nTotalPeds / ms_nTotalCivPeds
static unsigned int& ms_nTotalPeds;
static unsigned int& ms_nTotalCivPeds;
static unsigned int& ms_nTotalGangPeds;
static unsigned int& ms_nTotalMissionPeds;
static unsigned int& ms_nNumCop;
static unsigned int& ms_nNumCivMale;
static unsigned int& ms_nNumCivFemale;生成开关
m_bDontCreateRandomCops / m_bDontCreateRandomGangMembers
static bool& m_bDontCreateRandomCops;
static bool& m_bDontCreateRandomGangMembers;
static bool& m_bOnlyCreateRandomGangMembers;
static bool& m_bMoreCarsAndFewerPeds;加行人
AddPed / AddPedInCar / RemovePed
static CPed* AddPed(ePedType pedType, unsigned int modelIndex, CVector const& posn, bool makeWander);
static CPed* AddPedInCar(CVehicle* vehicle, bool driver, int gangPedType, int seatNumber, bool male, bool criminal);
static void RemovePed(CPed* ped);
static void RemoveAllRandomPeds();选职业模型
ChooseCivilianOccupation / ChoosePolicePedOccupation
static int ChooseCivilianOccupation(bool male, bool female, int animType, int ignoreModelIndex, int statType, bool arg5, bool arg6, bool checkAttractor, char* attrName);
static int ChoosePolicePedOccupation();
static void ChooseGangOccupation(int arg0);组表
m_PedGroups / m_CarGroups / LoadPedGroups
static short (*m_PedGroups)[21];
static short (*m_CarGroups)[23];
static unsigned short* m_nNumPedsInGroup;
static void LoadPedGroups();
static void LoadCarGroups();