Results 1 to 10 of 35

Thread: Quick questions thread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Ok , and one question, I've been punching my head against the wall, already for some time.
    So i have tried to make some kinda music menu for quickmessage menu, and it works (somehow). The main problem is that the sounds are not local, i mean all players will hear the music or sounds. But after i tried to use some function that actually made the sound "local", but then weapon sound overrides it, if i shoot the music stops, which is kinda annoying.
    I used this function:
    Code:
    	if(isPlayer(self))
    	{
    	    self playlocalSound("spawn");
    	}
    That is supposed to play some Black Ops spawn music when player joins and spawns, but if he shoots with his weapon, it will stop the sound.
    And I have also tried some other functions, but then everyone will hear the music. What causes the main problem? Maybe it is soundalias? or just the function sucks?
    The soundalias is like this:
    Code:
    spawn,,other/spawn.mp3,1.0,,,,,,,local,streamed,,nonlooping
    I hope someone got fix for this
    I can make separate topic for this problem if this problem needs lots of explaining
    Last edited by EvoloZz; 28th December 2012 at 16:53.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •