Adds precaching of weapons in loaded zones because normal precache doesn't work for custom weapons. Reload mod after level is loaded. #19

Closed
HighTechRedNeck wants to merge 2 commits from (deleted):master into master
Showing only changes of commit 0f2b8c38a0 - Show all commits

View File

@ -150,6 +150,9 @@ namespace mods
// Load mod.ff
utils::hook::call(0x1405E7113, db_load_x_assets_stub); // R_LoadGraphicsAssets According to myself but I don't remember where I got it from
//Reload mod.ff after map is loaded
utils::hook::call(0x140320ED1, db_load_x_assets_stub); // DB_LoadLevelXAssets
Review

BTW I left this part out completely because this is subject to further investigation.

The reason is that reloading a mod after a map (or before) has caused issues on another clients.

Mainly on pluto, on piw5 the mod.ff is always loaded twice in a similar manner (need to double check) and is known to kill to stock maps for some reason.

BTW I left this part out completely because this is subject to further investigation. The reason is that reloading a mod after a map (or before) has caused issues on another clients. Mainly on pluto, on piw5 the mod.ff is always loaded twice in a similar manner (need to double check) and is known to kill to stock maps for some reason.
}
};
}