Open Deewarz opened 7 months ago
Currently we use SDK::GetPlayerTeleportModule()->TeleportPlayer to move the player because it preloads the world (collisions). It would be cleaner to load the world natively.
SDK::GetPlayerTeleportModule()->TeleportPlayer
mafia::streaming::C_StreamingModule::RequestLoadCollisionsInRadius
game.streaming:RequestLoadCollisionsInRadius(inID, inPos, inRadius)
mafia::streaming::C_StreamingWrapper::RequestLoadCollisionsInRadius
Hint from Mafia2:
if (!C_Game::GetInstance()->IsInitialized2()) C_PreloadSDS::GetInstance()->FinishPendingSlots();
Summary
Currently we use
SDK::GetPlayerTeleportModule()->TeleportPlayer
to move the player because it preloads the world (collisions). It would be cleaner to load the world natively.TODO
mafia::streaming::C_StreamingModule::RequestLoadCollisionsInRadius
game.streaming:RequestLoadCollisionsInRadius(inID, inPos, inRadius)
mafia::streaming::C_StreamingWrapper::RequestLoadCollisionsInRadius
mafia::streaming::C_StreamingModule::RequestLoadCollisionsInRadius
Related