实体
人口 CPopulation
查看 Markdown路人密度、生成与组表
CPopulation.h
路人密度、生成 / 移除行人、组表。改倍数记得还原。
static float& PedDensityMultiplier;
static unsigned int& MaxNumberOfPedsInUse;
static unsigned int& NumberOfPedsInUseInterior;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;static bool& m_bDontCreateRandomCops;
static bool& m_bDontCreateRandomGangMembers;
static bool& m_bOnlyCreateRandomGangMembers;
static bool& m_bMoreCarsAndFewerPeds;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();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);static short (*m_PedGroups)[21];
static short (*m_CarGroups)[23];
static unsigned short* m_nNumPedsInGroup;
static void LoadPedGroups();
static void LoadCarGroups();
评论