From 7e753c259680a13c656bdc6c86d99a4891616474 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Fri, 8 May 2020 23:29:43 +0300 Subject: CCarCtrl::GenerateOneRandomCar --- src/core/Streaming.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/Streaming.cpp') diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index c7bd961c..6b5d795b 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -1292,6 +1292,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){ -- cgit v1.2.3