08.05.2010, 08:38
Quote:
Originally Posted by Joe Staff
How about something like Audio_AttachToPlayer(soundid,playerid) so that particular sound is attached to the player even if he moves. This would make things like cop sirens seem more realistic adding a bit of a doppler affect.
|
I've managed to do this with updating the positions of audios OnPlayerUpdate for streamed players. I took maximum streamed players as 30, and loop is small enough to keep the server from lagging. This is better than looping through MAX_PLAYERS.
When a player streams out, the playback of an audio stops.
Same for streamed cars.