door_slide_large_dynamic.mdl

Discussion in 'Mapping Questions & Discussion' started by Jeremy, Aug 6, 2011.

  1. Jeremy

    Jeremy L11: Posh Member

    Messages:
    829
    Positive Ratings:
    251
    How do I use door_slide_large_dynamic.mdl correctly? I'm clearly doing it wrong here.

    And by using it correctly, I mean to make it work so when I approach it, it opens, and when I run away from it, it closes, making all the usual sounds.
     
  2. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    Looks like you have it set to randomly animate.

    Your I/O should be "SetAnimation" "Open" and "close" for the respective triggers.

    Also, those doors are hilarious.
     
    • Thanks Thanks x 1
  3. Jeremy

    Jeremy L11: Posh Member

    Messages:
    829
    Positive Ratings:
    251
    Oops! How did that happen :O

    Okay they're working now, but now I have a problem with the sounds. I/O's on the door props (regarding sounds only) are as follows:

    Column 1 Column 2 Column 3
    OnAnimationBegun red_second_door1_sound PlaySound
    OnAnimationDone red_second_door1_sound StopSound
    OnAnimationDone red_second_door1_soundend PlaySound


    What should happen is when the door's animation begins, red_second_door1_sound begins to play, and when the animation ends, red_second_door1_sound stops playing and red_second_door1_soundend plays. However, when I test this in-game, the sound doesn't stop when the door has finished moving, carrying on all the way to the end of the sound file itself. Have I forgotten something or have I just done something wrong?
     
  4. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    You can't stop an ambient_generic mid play. You should have a func_door as part of the mix. Set your opening and closing sounds on that.
     
  5. Jeremy

    Jeremy L11: Posh Member

    Messages:
    829
    Positive Ratings:
    251
    Ah, I didn't know that. Thanks.
     
  6. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    Er, you shouldn't need sounds. Your invisible func_door will make door sounds by default. Unless you're using custom sounds, then i guess NB's suggestion is applicable.
     
    Last edited: Aug 6, 2011
  7. Jeremy

    Jeremy L11: Posh Member

    Messages:
    829
    Positive Ratings:
    251
    I wasn't using a func_door though. That was the problem.
     
    Last edited: Aug 7, 2011