summaryrefslogtreecommitdiffstats
path: root/src/core/Wanted.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-07 21:28:51 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-07 21:28:51 +0200
commit4c86469cc91ce1b1cb767e35a0bf8358d9800ac8 (patch)
treec0835ff0e74fd35c51f142349bb8580630471b19 /src/core/Wanted.h
parentMore scripts (diff)
parentMerge pull request #111 from gennariarmando/master (diff)
downloadre3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar
re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.gz
re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.bz2
re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.lz
re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.xz
re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.zst
re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.zip
Diffstat (limited to 'src/core/Wanted.h')
-rw-r--r--src/core/Wanted.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/Wanted.h b/src/core/Wanted.h
index aafa9ac0..d14bb905 100644
--- a/src/core/Wanted.h
+++ b/src/core/Wanted.h
@@ -20,11 +20,11 @@ public:
int32 m_nLastUpdateTime;
int32 m_nLastWantedLevelChange;
float m_fCrimeSensitivity;
- uint8 m_bCurrentCops;
- uint8 m_bMaxCops;
- uint8 m_bMaximumLawEnforcerVehicles;
+ uint8 m_CurrentCops;
+ uint8 m_MaxCops;
+ uint8 m_MaximumLawEnforcerVehicles;
int8 field_19;
- int16 m_wRoadblockDensity;
+ int16 m_RoadblockDensity;
uint8 m_IsIgnoredByCops : 1;
uint8 m_IsIgnoredByEveryOne : 1;
uint8 m_IsSwatRequired : 1;
@@ -34,12 +34,16 @@ public:
int32 m_nWantedLevel;
CCrime m_sCrimes[16];
CCopPed *m_pCops[10];
+ static int32 &MaximumWantedLevel;
public:
bool AreSwatRequired();
bool AreFbiRequired();
bool AreArmyRequired();
int NumOfHelisRequired();
+ void SetWantedLevel(int32);
+ void ClearQdCrimes();
+ void UpdateWantedLevel();
};
static_assert(sizeof(CWanted) == 0x204, "CWanted: error");