Something so simple in theory...

Discussion in 'Mapping Questions & Discussion' started by I Darkstar X, Nov 13, 2017.

  1. I Darkstar X

    I Darkstar X L1: Registered

    Messages:
    18
    Positive Ratings:
    1
    So I'm new to this, and the solution is probably very obvious.

    But all I want to do

    Is make a rotating door

    rotate in the SAME DIRECTION

    FOREVER.

    Its really annoying me that I can't figure this out. And setting the rotation to an insanely high number seems a big haphazard.

    Any help that can be provided would be greatly appreciated.
     
  2. fubarFX

    aa fubarFX The "raw" in "nodraw"

    Messages:
    1,591
    Positive Ratings:
    1,666
    well then, the next best option is to to use mdl animations
     
  3. I Darkstar X

    I Darkstar X L1: Registered

    Messages:
    18
    Positive Ratings:
    1
    But its a collection of brushes. And I don't know how to do that. Do you, perchance?
     
  4. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,019
    Positive Ratings:
    3,943
  5. Da Spud Lord

    Da Spud Lord L6: Sharp Member

    Messages:
    393
    Positive Ratings:
    300
    You would use func_rotating, but that entity is borked at least somewhat in all Source games, borked a lot in most Source games, and borked entirely in TF2. Your best option is ABS' solution that tyler linked above which uses a momentary_rot_button. There are also a few other solutions. This one uses a func_tracktrain and multiple path_track entities. You can also make your brush a func_physbox with an attached phys_motor. The momentary_rot_button can be blocked by players simply by them touching it, so if you want your brush to rotate even in the presence of players, one of the other two solutions will be preferable.
     
    • Like Like x 1
  6. Yrr

    aa Yrr An Actual Deer

    Messages:
    968
    Positive Ratings:
    1,800
    you can also alternate func_door_rotating parents as they open back and forth so that the object is always parented to the one moving in the direction you want (switching the parenting when you switch the directions)
     
  7. I Darkstar X

    I Darkstar X L1: Registered

    Messages:
    18
    Positive Ratings:
    1
    It is a rotating platform, yes. They spin around a center control point, with half angled up and half angled down. (It'll probably look really fake because I don't know how to make circles and smooth curves. Heck I can't even make basic curves. Its all scrublevel polygons here XD )
     
  8. I Darkstar X

    I Darkstar X L1: Registered

    Messages:
    18
    Positive Ratings:
    1
    I don't know how to do this, though it seems like something my miniscule brain could wrap around XD Could you perhaps elaborate?
     
  9. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    236
    Positive Ratings:
    66
    an object moves with its parent, and thus will spin with it. If you set up a pair of rotating doors so that one is always spinning in the desired direction you could shuffle what the objects parent is so that it is always parented to the door spinning the correct direction while the other reverses. the set parent input would preform this desired task. have the object parented to one door which starts automatically, then using the on closed output switch the parent to the other door, and tell it to open, while telling the first door to shut. put the same outputs on the other door and you will have an infinite loop. This also opens possibilities with either door having different speeds or run times, allowing a uneven rotation.
     
  10. I Darkstar X

    I Darkstar X L1: Registered

    Messages:
    18
    Positive Ratings:
    1
    THANK YOU! I got it to work! ^^ But how would I go about keeping the platforms from locking up when players stand on them? Sometiems I can walk up and down them without issue, other times they just stop moving. they're set to 10 speed.

    EDIT: Fixed it, nvm
     
    Last edited: Nov 15, 2017