Music

Discussion in 'Mapping Questions & Discussion' started by t00bz, Jul 8, 2010.

  1. t00bz

    t00bz L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    Okay
    so, i'm making this map. except i wanna install music buttons in it. how do i import the music and how do i make the buttons play the music.
    and by the way, anybody know a good prop to have play music? cause i don't know any.

    there's also another thing, how do i make a button explode the person who clicked it.
    and yes, i want it to continue working afterwards, it's only use is to explode actually
     
  2. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,568
    This is pretty basic stuff... In fact this is the first kinda stuff i learnt myself by reading tutorials over at the snarkpit.

    You can't have buttons in TF2 because there is no "use" function, but you can trigger them with proximity triggers (trigger_multiple).

    Simply set your trigger_multiple to activate an imbient_generic on touch (OnStartTouch) which plays your selected sound file. Plus an explosion (env_explosion) that fires once...

    uuurgh, i'd go into more detail but there isn't much need, this isn't the kinda stuff you get explained to you in one on one. Just research basic trigger_multiple functionality and ambient_generic's. You'll find them in Single Player tutorials for Source mod's and is all you need to do is replace the use function with a proximity (Or damage E.G. tr_walkway) activation.

    edit: for good all round tutorials see: http://www.snarkpit.net/snarkpower/articles
    Also see: http://www.interlopers.net/tutorials/
     
    Last edited: Jul 8, 2010
  3. t00bz

    t00bz L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    um
    you can have buttons......
    you bind a use key to something like "f"
    and then you can press buttons
    right?
    ._.
    OH I DON'T KNOW
     
  4. Mr.Late

    Mr.Late L7: Fancy Member

    Messages:
    408
    Positive Ratings:
    151
    The server needs to enable the use button.

    You could make the buttons be activated by damage. Check the flags tab.
     
  5. t00bz

    t00bz L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    well
    as far as i'm concerned, i'm making this for my group
    and my group has the use button enabled
    i'll check just in case though