1. Hey there Guest,

    The game servers have moved to semi-dedicated hardware and IPs have changed. Please see front page server widget for up-to-date game server information.

Stopping an ambient_generic with tf_logic_arena...

Discussion in 'Mapping Questions & Discussion' started by JMRboosties, Feb 28, 2010.

  1. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    2
    As you may know, the only non-user outputs on tf_logic_arena are OnCapEnabled and OnArenaRoundStart

    I want to start an ambient_generic when the cap is enabled, and end it when the round is won by either team. I tried using a game_round_win to stop it, but that didn't work.

    Anyway to do this?
     
  2. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    48
    Link it with the control point, not the logic.
     
  3. lana

    aa lana Currently On: ?????

    Messages:
    3,077
    Positive Ratings:
    1,389
    team_control_point_master has outputs for end of round events, I believe. By placing one of those you should be able to end the ambient_generic at the end of your round.

    Alternatively, all things are reset at the end of the round. Your ambient_generic should stop playing on its own.
     
  4. alecom

    alecom L8: Fancy Shmancy Member

    Messages:
    516
    Positive Ratings:
    121
    Well you have the cap enabled by a logic timer right? You can just tell the timer to start the ambient_generic, and then I guess from the control point you can tell OnCapTeam1 as well as OnCapTeam2 to tell the ambient_generic to stop?
     
  5. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    2
    Yea, it doesn't stop playing though...

    I tried this but it didn't work.

    EDIT: Yea I tried that I now remember, both with the control point and t_c_p_master... no luck
     
  6. lana

    aa lana Currently On: ?????

    Messages:
    3,077
    Positive Ratings:
    1,389
    Is your ambient_generic looping?
     
  7. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    2
    No it isn't. I have all 3 flags checked.
     
  8. lana

    aa lana Currently On: ?????

    Messages:
    3,077
    Positive Ratings:
    1,389
    You can't stop a nonlooping sound.
     
  9. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    2
    ah. figured that out. thanks!