How to make things rotate?

Discussion in 'Mapping Questions & Discussion' started by bomc, Dec 29, 2008.

  1. bomc

    bomc L2: Junior Member

    Messages:
    83
    Positive Ratings:
    18
    Hey, i am making a map where i use the crane-controlpoint-thing from well as the middle point, and i thougt i would be fun to make it rotate slowly.
    Is there any way to do this? And how?
    I am pretty new to hammer, so make it understandable :p
     
  2. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    i think the general consensus is to set up a 4 point, small track train path.
    just remember you cannot build engineer buildings on a moving platform.
     
    • Thanks Thanks x 1
  3. bomc

    bomc L2: Junior Member

    Messages:
    83
    Positive Ratings:
    18
    ehmm..... and how do i do that??:blushing:
     
  4. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,739
    Actually someone came up with a way of using something like a func_motor which was much simpler. However the method escapes me and the search feature fails me. Setting up a track and train is a messy way of doing it.
    However, none of the work arounds for valve's breaking of func_rotating we have are particularly nice.

    So unless you're ready to get your hands dirty and do some kinda-complex (from a new mapper's point of view) entity work the simple answer is "things don't rotate in TF2."
     
    • Thanks Thanks x 1
  5. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    although, a func rotating might work in this case if he uses a cylinder - the func rotating does till rotate even if it doesn't look like it does, so standing on it will still spin you around and around
     
    • Thanks Thanks x 1
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,521
    The collisions of the func_rotating partially work, yes you'll spin if it's stood on (but it will irregularly bump you if at it's side), but whatever is parented to it doesn't spin either, so it still wouldn't really work for him.

    Since you want it to rotate slowly, a workaround is easier than for fast things.
    Use a func_door_rotating with it's distance set extremely high. Do the math for whatever speed you want to make it take an hour to "open". For example, if you choose a speed of 30 (degrees per second), it will take 12 seconds to complete one rotation, which means 300 rotations are needed for an hour, which means your distance should be 300*360=108000 degrees.

    After that, you'll need a logic_auto to begin the door opening at the start of the round. Lastly, all the crane models should be on prop_dynamic entities, with their parent set to the door's name.
     
    • Thanks Thanks x 1
  7. bomc

    bomc L2: Junior Member

    Messages:
    83
    Positive Ratings:
    18
    Thanks i'll try that


    well, the chimney from 2fort does :p
     
  8. Memento Mori

    Memento Mori L2: Junior Member

    Messages:
    61
    Positive Ratings:
    11
    And thats an animated model so you could do it that way
     
  9. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    I also use the func_door_rotating trick, I once used it on a satalite dish, set it distance to about 150, and have it trigger itself to start closing when fully opened, and vice versa. had the dish going back and forward slowly :)
     
  10. Owlruler

    Owlruler L12: Fabulous Member

    Messages:
    964
    Positive Ratings:
    271
    I think that this is what Youme was looking for.
     
  11. bomc

    bomc L2: Junior Member

    Messages:
    83
    Positive Ratings:
    18
    I just tried using the func_door_rotating, and it works fine, there is just one problem. When i stand on the rotating platform near the wires, then the platform starts rotating the other way. Could it help to make playerclips around the platform and the wires? And how can i make the playerclips rotate too?

    EDIT// it seems like the "door" is closing when i stand near the wires, because it stops some time after it changs direction (unless i "open" it again).

    EDIT 2// i created an output that made the "door" open every time it closed, so now the platform just stops moving when you stand there
     
    Last edited: Dec 30, 2008
  12. Owlruler

    Owlruler L12: Fabulous Member

    Messages:
    964
    Positive Ratings:
    271
    Well, you could make the playerclip into a func_brush and parent it to the door.
     
    • Thanks Thanks x 1
  13. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    or you could just disable the flag "open on touch" or whatever it is called :p
     
    • Thanks Thanks x 1
  14. bomc

    bomc L2: Junior Member

    Messages:
    83
    Positive Ratings:
    18
    Thanks alot guys ;)

    Just one more noob-question... When a demoman shoots stickies on the rotating parts, the stickies dont move, so when the platform moves, then the stickies just hang in the air...
    Is there any way to make the surface "unstickyable" so that the stickies will just slide off, to the ground, when you shoot them?
     
  15. TotalMark

    TotalMark L6: Sharp Member

    Messages:
    331
    Positive Ratings:
    40
    Could you still use func_rotating for a cloud dome?
     
    • Thanks Thanks x 1
  16. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,521
    No, the visual and/or children of a func_rotating don't rotate.
     
    • Thanks Thanks x 2
  17. Vigilante212

    Vigilante212 L7: Fancy Member

    Messages:
    481
    Positive Ratings:
    33
    You could surround it in a nodraw texture or a clip texture that should make the stickies slide off.
     
    • Thanks Thanks x 1
  18. bomc

    bomc L2: Junior Member

    Messages:
    83
    Positive Ratings:
    18
    Thanks! that helped :thumbup: