Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync distance of unoccupied vehicles and peds should match stream distance #375

Open
ArranTuna opened this issue Sep 2, 2018 · 0 comments
Labels
bug Something isn't working sync
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 2, 2018

Describe the bug

@lil-Toady said:

You can have unoccupied vehicles and peds streamed in when nobody really syncs them, that can cause troubles if you interact with them (shoot?).

To Reproduce

Script from Drakath:

function distancedSync()
    for i, player in ipairs(getElementsByType("player")) do
        setElementPosition(player, 2243, 1532, 11.5)
        setElementRotation(player, 0, 0, 90)
        giveWeapon(player, 38, 9999, true)
end
	local ped = createPed (0, 2114, 1532, 11.5, 0)
	setTimer ( function (ped) 
	    setElementRotation(ped, 0, 0, -90)
	    setPedAnimation (ped, "ped", "run_old", -1, true, true, true)
	end, 1000, 1, ped)
end
addEventHandler("onResourceStart", root, distancedSync)
--This ped will be invincible

Expected behavior

@lil-Toady said:

Raise sync distance to match stream distance and make the streamer load elements the player syncs even if they are out of local stream distance. So anything a player can see is always synced.

A cool solution instead would be for the streamer not to stream in peds/vehicles if they aint being synced by anyone.

Additional context
From https://bugs.mtasa.com/view.php?id=6287

@ArranTuna ArranTuna added the enhancement New feature or request label Sep 2, 2018
@qaisjp qaisjp added this to the Backlog milestone Sep 6, 2018
@qaisjp qaisjp added bug Something isn't working and removed enhancement New feature or request labels Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sync
Projects
None yet
Development

No branches or pull requests

3 participants