Re3/src/control/Population.cpp

26 lines
932 B
C++
Raw Normal View History

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