diff options
author | aap <aap@papnet.eu> | 2019-09-12 10:08:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-12 10:08:15 +0200 |
commit | 4299e307d606da8c40a4d28c08628ff0da54a6d8 (patch) | |
tree | 790c66ed4088dc8b4bb7071dd40e6f03750819ec /src/control | |
parent | Merge pull request #203 from Nick007J/master (diff) | |
parent | World and Peds (diff) | |
download | re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.gz re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.bz2 re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.lz re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.xz re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.zst re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Population.cpp | 9 | ||||
-rw-r--r-- | src/control/Population.h | 1 | ||||
-rw-r--r-- | src/control/Record.cpp | 4 | ||||
-rw-r--r-- | src/control/Record.h | 12 |
4 files changed, 22 insertions, 4 deletions
diff --git a/src/control/Population.cpp b/src/control/Population.cpp index 83259616..3e7ab427 100644 --- a/src/control/Population.cpp +++ b/src/control/Population.cpp @@ -1,6 +1,8 @@ #include "common.h" #include "patcher.h" #include "Game.h" +#include "World.h" +#include "Entity.h" #include "Population.h" PedGroup *CPopulation::ms_pPedGroups = (PedGroup*)0x6E9248; @@ -14,3 +16,10 @@ WRAPPER void CPopulation::UpdatePedCount(uint32, bool) { EAXJMP(0x4F5A60); } WRAPPER void CPopulation::DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool) { EAXJMP(0x4F6200); } WRAPPER CPed *CPopulation::AddPedInCar(CVehicle *vehicle) { EAXJMP(0x4F5800); } WRAPPER bool CPopulation::IsPointInSafeZone(CVector *coors) { EAXJMP(0x4F60C0); } + +void +CPopulation::RemovePed(CEntity* ent) +{ + CWorld::Remove(ent); + delete ent; +} diff --git a/src/control/Population.h b/src/control/Population.h index 3582ccef..7757a7a6 100644 --- a/src/control/Population.h +++ b/src/control/Population.h @@ -24,4 +24,5 @@ public: static void DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool); static CPed *AddPedInCar(CVehicle *vehicle); static bool IsPointInSafeZone(CVector *coors); + static void RemovePed(CEntity* ent); }; diff --git a/src/control/Record.cpp b/src/control/Record.cpp index 4cc2dccd..cff4a19b 100644 --- a/src/control/Record.cpp +++ b/src/control/Record.cpp @@ -1,6 +1,10 @@ #include "common.h" +#include "patcher.h" #include "Record.h" uint16 &CRecordDataForGame::RecordingState = *(uint16*)0x95CC24; uint8 &CRecordDataForChase::Status = *(uint8*)0x95CDCE; + +WRAPPER void CRecordDataForChase::ProcessControlCars(void) { EAXJMP(0x435540); } +WRAPPER void CRecordDataForChase::SaveOrRetrieveCarPositions(void) { EAXJMP(0x434B20); }
\ No newline at end of file diff --git a/src/control/Record.h b/src/control/Record.h index 2705a955..08e9f7c8 100644 --- a/src/control/Record.h +++ b/src/control/Record.h @@ -6,14 +6,18 @@ enum { RECORDSTATE_2, }; -class CRecordDataForGame +class CRecordDataForChase { public: - static uint16 &RecordingState; + static uint8 &Status; + + static void ProcessControlCars(void); + static void SaveOrRetrieveCarPositions(void); }; -class CRecordDataForChase + +class CRecordDataForGame { public: - static uint8 &Status; + static uint16 &RecordingState; }; |