re3-wiiu/src/control/Population.cpp

26 lines
932 B
C++
Raw Normal View History

2019-06-13 02:35:26 +02:00
#include "common.h"
2019-06-25 00:42:23 +02:00
#include "patcher.h"
2019-06-28 19:23:28 +02:00
#include "Game.h"
2019-09-12 02:43:18 +02:00
#include "World.h"
#include "Entity.h"
2019-06-13 02:35:26 +02:00
#include "Population.h"
2019-06-28 12:34:02 +02:00
PedGroup *CPopulation::ms_pPedGroups = (PedGroup*)0x6E9248;
2019-06-25 00:42:23 +02:00
bool &CPopulation::ms_bGivePedsWeapons = *(bool*)0x95CCF6;
2019-07-04 00:16:24 +02:00
int32 &CPopulation::m_AllRandomPedsThisType = *(int32*)0x5FA570;
float &CPopulation::PedDensityMultiplier = *(float*)0x5FA56C;
2019-07-14 11:49:03 +02:00
uint32 &CPopulation::ms_nTotalMissionPeds = *(uint32*)0x8F5F70;
2019-08-06 23:32:19 +02:00
int32 &CPopulation::MaxNumberOfPedsInUse = *(int32*)0x5FA574;
2019-06-25 00:42:23 +02:00
2019-06-28 12:34:02 +02:00
WRAPPER void CPopulation::UpdatePedCount(uint32, bool) { EAXJMP(0x4F5A60); }
2019-06-28 19:23:28 +02:00
WRAPPER void CPopulation::DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool) { EAXJMP(0x4F6200); }
2019-07-05 14:23:39 +02:00
WRAPPER CPed *CPopulation::AddPedInCar(CVehicle *vehicle) { EAXJMP(0x4F5800); }
WRAPPER bool CPopulation::IsPointInSafeZone(CVector *coors) { EAXJMP(0x4F60C0); }
2019-09-12 02:43:18 +02:00
void
CPopulation::RemovePed(CEntity* ent)
{
CWorld::Remove(ent);
delete ent;
}