View Issue Details

IDProjectCategoryView StatusLast Update
0006466Multi Theft Auto : San AndreasClientpublic2011-09-04 12:11
ReporterJohn_MichaelAssigned ToCazomino05 
PrioritynormalSeveritymajorReproducibilitysometimes
Status resolvedResolutionfixed 
PlatformOSWindows 7OS Version
Product Version 
Target Version1.1.1Fixed in Version1.1.1 
Summary0006466: 3D sounds (set to element streams) attached to vehicles do not sync for some players
Description

When a sound is created and attached to a vehicle out of a client's streaming range, said player will NOT be able to hear the sound when the vehicle drives up to them.

Steps To Reproduce

serverside:
triggerClientEvent("3DattachTest", root, getPlayerFromName("randomPlayer"))

clientside:
addEvent("3DattachTest", true)
addEventHandler("3DattachTest", root, function(player)
sound = playSound3D("http://sc-rly.181.fm:80/stream/1022")
car = getPedOccupiedVehicle(player)
attachElements(sound, car)
end)

Assuming randomPlayer is a player outside your streaming distance, and that they are in a car, when they drive up to you, you will not be able to hear the sound.

Additional Information

NOTE: the sound dosent have to be attached to a vehicle - it can be attached to anything that moves. The point is, when it enters your streaming distance, the sound will not be heard. Same if you move closer to the vehicle.

TagsNo tags attached.

Activities

John_Michael

2011-09-02 07:09

viewer   ~~0014618

Well, I've done a pretty poor job reporting this issue. I've narrowed it down a bit:

-When a 3D Sound element is attached to an element that is not streamed in on the client, the attachment does not happen. The sound is still created, however.

This behaviour is actually normal I think, it's me failing to recognize that if an element isn't streamed in locally, trying to attach the element is a bad idea. Whether or not this issue is a bug is up to your interpretation.

John_Michael

2011-09-02 07:48

viewer   ~~0014619

Edit: Also, when a sound is created an attached to an element that IS streamed in, when said element is moved out of the streaming distance of the local player, and returns, the sound will be gone.

arranTuna

2011-09-04 12:07

manager   ~~0014671

http://code.google.com/p/mtasa-blue/source/detail?r=3115

Issue History

Date Modified Username Field Change