Another major update. I was finally able to “solve” my problem with spawning NPCs/Vehicles deep inside buildings and underground, like with the Humane Labs and Doomsday Bunker DLC map areas which I mentioned in this topic recently:
I really wanted to utilize these DLC areas for missions from the very start, but was unable to, due to the problem above. The solution was to dynamically spawn peds/vehicles nearby to the players (~30m), which has its own overhead with spawn checking, but is working. When I changed it to 50m, I noticed some ‘phasing out’ (desync?) again, so ~30m seems to be the sweet spot. Reading about this online, I noticed that some GTAO players ( I have never played GTAO to be honest) have noticed similar problems with the same map areas/DLC on GTAO. Not sure if this is related but it interesting, since the doomsday heist bunker has a ton of closets where NPCs come out of which makes me wonder if it is a limitation with the engine perhaps? (more than likely it is probably me doing things differently than R* which is the problem). One thing I noticed that if you spawn a few peds inside, you will not see the problem, but the more peds spawned, the more the problem is noticeable. Which my ‘fix’ takes care of, unless you spawn a very large density of peds.
Updated to 2.9.8q:
mrp-missions-2.9.8q.zip (235.9 KB)
–Supports indoor/underground missions (like Doomsday Heist bunker, Humane Labs etc…) with the IndoorMission=true attribute added to the mission in missions.lua. These have to be regular missions (not random mission generator missions). All peds/vehicles spawned will be done dynamically, unless you give them the attribute outside=true which will have them spawn at mission start.
–NPCs will not blow themselves up anymore, gave them the damage only by players flag.
–Various bug fixes and tweaks
–New Mission Pack included with 4 missions, utilizing DLC areas, called ‘Shadow State’. This is my attempt at something approaching ‘proper’ missions. These are very hard and meant to be played with the default resource settings and you will probably need to utilize the safe house vehicles as well. Don’t expect to complete them on your first go. They should be complete-able by 1 person, but more people obviously will make it easier.
Shadow State Mission Pack
4 very hard missions utilizing DLC areas. Ambient Peds are hostile to players as well (plot reasons), can be turned off via Config.HostileAmbientPeds = 0
–credits to Hawaii Beach for his ‘fivem-ipl’ resource and Smallo for his doomsday heist IPL and teleportation system. [Dev] Doomsday/Smugglers Run Interiors/Props/IPLs/Teleport