How to play sounds to only one team?

Discussion in 'Mapping Questions & Discussion' started by Boylee, Aug 14, 2010.

  1. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    I'd like to play a sound to only one team. At the moment I have a func_flag_alert that triggers an ambient_generic and I'd like to filter it to play to only one team. Is this possible?
     
  2. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    Tera just explained an option in group chat:

    func_flag_alert enables a (team-filtered) trigger_multiple which then fires a point_clientcommand to play the sound at the client end.

    Does this sound right?
     
  3. Ravidge

    aa Ravidge Grand Vizier

    Messages:
    1,544
    Positive Ratings:
    2,492
    You need to enable/disable (with the func_flag_alert I guess) a trigger that cover the entire map, that is team filtered as usual. On trigger it sends a "Command play soundfile.wav" to a point_cliencommand.

    Then repeat for the other team.

    It's a really ugly workaround, but it works...



    EDIT: stop ninja answering your own posts :C
     
    • Thanks Thanks x 1
  4. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    Might email Valve and ask if they can just add a filter name keyvalue to ambient_generic. Would make it a hell of a lot easier.

    Then again can't really see them doing that just for me. :/
     
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    People have emailed them about that, more than once.
     
    • Thanks Thanks x 1
  6. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    Fair enough. Not much point then.

    Good news is that this work around seems to function just fine.