How would you make a rolling log?

Discussion in 'Mapping Questions & Discussion' started by Rogueleader, Feb 24, 2008.

  1. Rogueleader

    Rogueleader L1: Registered

    Messages:
    13
    Positive Ratings:
    0
    I am making a Mario type map and i am trying to create a log that rolls back and forth dividing two walkways.

    I have not had any success so far.

    Picture of the rolling log

    [​IMG]

    Could any one of you help me get the log moving back and forth and possibly with a rolling motion?
     
  2. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
  3. Rogueleader

    Rogueleader L1: Registered

    Messages:
    13
    Positive Ratings:
    0
    i will take that as you would also like to know how to do this
     
  4. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    What have you tried so far? From the pic it looks like you're using a func_tracktrain on a path_track? That method would probably work for getting the object to move back and forth, is the log moving at all?

    As for the rotation, the obvious choice would be func_rotating but unfortunately that entity is broken in TF2. An alternative might be a func_door_rotating that continuously opens and closes itself, parented to an invisible train.

    You may want to try a func_platrot. I haven't used these but it seems like it could do both the movement and the rotation.

    Another option to look into might be using a func_movelinear instead of func_tracktrain for the horizontal movement.
     
  5. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    my mother always told me if you have nothing good to say, say nothing at all ;)
     
  6. Rogueleader

    Rogueleader L1: Registered

    Messages:
    13
    Positive Ratings:
    0
    Yes i have mainly tried a func_rotating parented to an invisible train inside the block but i wil try the rotating door and the other things you suggested.

    Thank you and i will get back to you soon

    And trackhed that was harsh, Pseudo said only good things to help me so why would you say something like that when he has done a lot to help people?
     
  7. Sacrifist

    Sacrifist L3: Member

    Messages:
    130
    Positive Ratings:
    7
    You can get the log to move along a path several different ways. Im not sure about rotating it toware it looks good in TF2 though.
     
  8. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,275
    Three objects, maybe an entity to time it all. You're going to make a func_door that moves at the speed you want the log to go back and forth at, in the direction you want it to. Make the brush it's tied to very small and then create a func_rotating that rotates in the direction you want it to. Make this a small circular brush. Parent it to the door. Finally make the log itself a func_brush and parent it to the func_rotating. You can even just try to make the func_rotating the log itself. I think func_door will make this whole process a lot easier for you than the whole invisible train deal. Have a logic_auto tell the door to move onmapspawn and then tell the door to fire its Close function onfullyopened and its Open function onfullyclosed.

    EDIT: So func_rotating doesn't work in tf2... well cancel what I said about that, but seriously just use func_door, it's basically the same as movelinear and pretty easy/versatile to work with.
     
  9. Crimson

    Crimson L3: Member

    Messages:
    119
    Positive Ratings:
    1
    Your not the sharpest tool in the shed are you?
     
  10. TheFragMan

    TheFragMan L1: Registered

    Messages:
    33
    Positive Ratings:
    1
    Don't you mean "You're"? ;)

    Normally I don't get in the middle of things, but Rogueleader has a point. If trackhed really had "nothing good to say," he wouldn't have even said "..."

    But back to the point of the thread: Rogueleader, I too would try to use a func_door_rotating. You can set it to open or close when it reaches the path_tracks on either end to reverse the roll direction. You'll just have to adjust the speed of the door_rotating to make it appear to actually be rolling, rather than sliding along. Let us know how it works.