MafiaHub / MafiaMP

Multiplayer experience for Mafia: Definitive Edition
https://mafiahub.dev
Other
39 stars 5 forks source link

Implement native world loading #62

Open Deewarz opened 7 months ago

Deewarz commented 7 months ago

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

Related

Segfaultd commented 7 months ago

Hint from Mafia2:

if (!C_Game::GetInstance()->IsInitialized2())
            C_PreloadSDS::GetInstance()->FinishPendingSlots();