SA-MP Forums Archive
Incognito Streamer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Incognito Streamer (/showthread.php?tid=311188)



Incognito Streamer - MR,Mr - 15.01.2012

Using SetPlayerPos + Streamer_UpdateEx with Incognito streamer, objects do not load properly until the person has left the vehicle/died once. And even then, not all objects load - only the ones near you + the ones that originally loaded.
This same issue happens without a streamer, and is the main reason I chose to use a streamer.

Any ideas?


Re: Incognito Streamer - Babul - 15.01.2012

you could force a client to load those objects by setting the players position to a map which contains some vital objects, like a floor, stairs, ramps etc.. (timer based, 10 maps in each 100 ms. waste of time if you ask me)
better idea: sum up all objects below ground at the skin selection, this forces the client to preload all objects at the same time. look out for crashing players. dont use too many objects at the same location, maybe just the smaller ones, then at some spawn places, you could place the local (stunt) objects anyways, but:
your problem is well known. objects doesnt load especially if you are up the sky and/or in a car. the "teleport on_foot through all maps and place him back in his car" works well in some stunt servers, there its required to use that method, cause it doesnt need like 300 different objects loaded already.


Re: Incognito Streamer - MR,Mr - 15.01.2012

The teleport on foot would fix it, you think?


Re: Incognito Streamer - Babul - 15.01.2012

yes, i experienced this trick on some stunt severs. it needs a timer, a countdown (like for(new map=0;map<sizeof(MapLocations[]);map++) and maybe 100 ms per location. at the end of the timer, place the player in the vehicle, then set the vehicles position to the (not to far) position. the player will see some weird camera zoom effects if its not scriptped to SetCameraPos() (what i suggest you to leave out on first trying, could look good), but the objects will be loaded seconds later, before the player can accelrate. i guarantee