diff options
author | aap <aap@papnet.eu> | 2020-05-09 12:45:27 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-09 12:45:27 +0200 |
commit | ea053467b53bf2182cb065e45f31ddd0e33d9a80 (patch) | |
tree | d8605b2a7249f9b38dd74d3b83d21a4d8f1bd510 /src/core | |
parent | named anim assoc flags (diff) | |
parent | Merge pull request #526 from Nick007J/miami (diff) | |
download | re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.gz re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.bz2 re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.lz re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.xz re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.zst re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Streaming.cpp | 9 | ||||
-rw-r--r-- | src/core/Wanted.cpp | 6 | ||||
-rw-r--r-- | src/core/Wanted.h | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index b1a73607..eb7fc8f5 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -1396,6 +1396,15 @@ CStreaming::StreamVehiclesAndPeds(void) else SetModelIsDeletable(MI_CHOPPER); + if (FindPlayerPed()->m_pWanted->AreMiamiViceRequired()) { + //TODO(MIAMI): miami vice peds + RequestModel(MI_VICECHEE, STREAMFLAGS_DONT_REMOVE); + } + else { + SetModelIsDeletable(MI_VICECHEE); + //TODO(MIAMI): miami vice peds + } + if(timeBeforeNextLoad >= 0) timeBeforeNextLoad--; else if(ms_numVehiclesLoaded <= desiredNumVehiclesLoaded){ diff --git a/src/core/Wanted.cpp b/src/core/Wanted.cpp index 7508c9f4..ff82edad 100644 --- a/src/core/Wanted.cpp +++ b/src/core/Wanted.cpp @@ -40,6 +40,12 @@ CWanted::Initialise() } bool +CWanted::AreMiamiViceRequired() +{ + return m_nWantedLevel >= 3; +} + +bool CWanted::AreSwatRequired() { return m_nWantedLevel == 4 || m_bSwatRequired; diff --git a/src/core/Wanted.h b/src/core/Wanted.h index e3e407b0..0e0e70c3 100644 --- a/src/core/Wanted.h +++ b/src/core/Wanted.h @@ -31,6 +31,7 @@ public: public: void Initialise(); + bool AreMiamiViceRequired(); bool AreSwatRequired(); bool AreFbiRequired(); bool AreArmyRequired(); |