实体
通缉 CWanted
通缉等级与犯罪登记
CWanted.h · 通常 FindPlayerWanted() 取得
逻辑帧改。
取通缉对象
FindPlayerWanted
CWanted* FindPlayerWanted(int playerId = -1);读通缉等级
m_nWantedLevel / m_nChaosLevel
unsigned int m_nWantedLevel;
unsigned int m_nChaosLevel;
float m_fMultiplier;设通缉等级
SetWantedLevel / CheatWantedLevel
void SetWantedLevel(int level);
void SetWantedLevelNoDrop(int level);
void CheatWantedLevel(int level);
void ClearWantedLevelAndGoOnParole();登记犯罪
RegisterCrime / RegisterCrime_Immediately
void RegisterCrime(eCrimeType crimeType, CVector const& posn, unsigned int crimeId, bool bPoliceDontReallyCare);
void RegisterCrime_Immediately(eCrimeType crimeType, CVector const& posn, unsigned int crimeId, bool bPoliceDontReallyCare);
void ReportCrimeNow(eCrimeType crimeType, CVector const& posn, bool bPoliceDontReallyCare);警察后退
m_bPoliceBackOff / m_bLeavePlayerAlone
// bitfields / bool
// m_bPoliceBackOff, m_bEverybodyBackOff, m_bLeavePlayerAlone最大通缉
SetMaximumWantedLevel / MaximumWantedLevel
static void SetMaximumWantedLevel(int level);
static unsigned int& MaximumWantedLevel;