Double-Hinged func_door_rotating

Discussion in 'Mapping Questions & Discussion' started by Mikroscopic, Jun 17, 2016.

  1. Mikroscopic

    aa Mikroscopic

    Messages:
    593
    Positive Ratings:
    599
    Is it possible to make a func_door_rotating that can open in both directions? Something like a saloon door style.
     
  2. Nicky

    aa Nicky Rotten Tops

    Messages:
    907
    Positive Ratings:
    1,664
    I wonder if there's an output for changing a door's direction/turn angle. I doubt it, but if there was you could use it.
     
  3. Mikroscopic

    aa Mikroscopic

    Messages:
    593
    Positive Ratings:
    599
    According to the developer wiki, there's no input for changing angle. There is however, an option to change it's parent. Maybe I could make two different sets of doors, and switch the one that the solid prop is parented to depending on which side it is entered from?
     
  4. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,071
    Positive Ratings:
    832
    Changing the parent of the door to a different f_d_r is the best solution. Well done.

    Alternatively, you can use momentary_rot_button. You can tell it to travel to any position between 0 and 1 so it's like a f_d_r with a stepping motor. Give it an angle of 180 degrees and set it to rest at 0.5 when the round starts. Send it to 0 for one direction, and 1 for the other.
     
  5. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,417
    Positive Ratings:
    1,137
    Yeah it's possible to create 2 doors, 1 in one direction, other in other, both invisible and shit, and func_brush which is the door itself and after closing can be reparented to another door.
     
    • Useful Useful x 1
  6. Idolon

    aa Idolon the worst admin

    Messages:
    1,421
    Positive Ratings:
    4,154
    Instead of switching parents, you can make a chain of parents. Parent the prop to one func_door_rotating, and then parent that FDR to another that swings in the opposite direction. However, Matty's momentary_rot_button idea is probably the simplest solution.
     
  7. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,071
    Positive Ratings:
    832
    A chain of parents would indeed be simpler than switching parents on-the-fly, and would be safer, as if the parents were made to operate simultaneously, you would end up with a door pointing in entirely the wrong direction. Could be good for some laughs, though!
     
  8. MaccyF

    aa MaccyF Notoriously Unreliable

    Messages:
    900
    Positive Ratings:
    1,443
    alternatively, you might be able to do something with prop_door_rotating, IIRC they'll open away from the player