Rotation Turmoil

Discussion in 'Mapping Questions & Discussion' started by BigBros, Oct 8, 2014.

  1. BigBros

    BigBros L3: Member

    Messages:
    147
    Positive Ratings:
    31
    So, I wanted to make this cool thing, where once the cart was pushed to a certain location, a large circular part of the floor would start rotating, and sink into the ground, moving the floor, players, cart and any gameplay elements with it, changing the game entirely.

    I have tested around with it a bit, but have found that func_rotating doesnt work D:

    I was thinking, if i made around 16-32 segments of my rotating section, and made them func_conveyer, each pointing towards the next, and activated it when the cart was there, and then parented all the func_converyers to something that moved down, would it be possible for my desired effect to be achieved?

    Then I would just have to work out how to move everything else with it :p

    Would anyone else know a better/more feasible way of doing this, or is this simply impossible in the TF2 Source Engine.
     
  2. Fantasma

    aa Fantasma

    Messages:
    882
    Positive Ratings:
    969
    i'm tired but look into func_door or func_door_rotating
     
    • Thanks Thanks x 1
  3. BigBros

    BigBros L3: Member

    Messages:
    147
    Positive Ratings:
    31
    Can I group/parent blocks, entities and models to func_door/func_door_rotating? I have had a bit of experience with them but not something complicated like this..
     
    Last edited: Oct 8, 2014
  4. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,817
    Positive Ratings:
    4,656
    Yes, you just set their parent to the door. Any children will move relative to their parents. Physics objects (players) will move with it more or less automatically.
     
    • Thanks Thanks x 1
  5. BigBros

    BigBros L3: Member

    Messages:
    147
    Positive Ratings:
    31
    Thanks for all your help so far guys :D

    So I made a func_door_rotating, and it moves anything I put onto it - blocks, props, grenades, etc. (the door is a cylinder) but it wont move players. Is there an option that allows players to slide along with the door?
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    If I remember right, look for the "Solid Type" key, and change it from Vphysics to BSP. I think that will do it. (V physics are very stripped down in TF2, so it doesn't work as it should, but the older Q physics does)
     
    • Thanks Thanks x 1
  7. BigBros

    BigBros L3: Member

    Messages:
    147
    Positive Ratings:
    31
    Didnt work either D:

    Now looking into deathrun maps, to see if any traps spin, and then will decompile.
     
  8. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    393
    Just beware that it may cause issues with play mechanics.. make sure you test stickies and engineer buildings (especially teleporters) as both of them have issues with dynamic map features.
     
  9. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    Are things not spinning right? Do you need help getting around? Rotation Turmoil?
    Sounds like you need new and improved Rotation Turn-oil! Guaranteed to work so fast your head will spin!

    so sorry, it popped into my head and wouldn't go away so I had to...
     
    • Thanks Thanks x 2
  10. Muddy

    Server Staff Muddy Muddy

    Messages:
    2,372
    Positive Ratings:
    4,167
    That's some damn good snarketing there.
     
  11. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,071
    Positive Ratings:
    832
    If you put players directly on to a func_door_rotating, they should be moving with it. Not sure why they aren't, currently. Anyway, when you get it working, it will be very jerky for them, not an ideal play experience.

    You may also find that when two players touch each other, it stops the motion of the door. It can also cause these players blocking damage if any is specified.

    You can attempt to circumvent that by making all your platform func_brush, and parenting it to a small, invisible func_door_rotating. In its spawn flags, set it to 'Non-solid to player'.

    You may find it simpler to restrict the motion of the platform to straight-forward up and down. Then rotate it when it reaches the bottom.

    I'm working on a DR map at the moment that has a massive rotating wooden cog.
     
    • Thanks Thanks x 1
  12. BigBros

    BigBros L3: Member

    Messages:
    147
    Positive Ratings:
    31
    Dont worry, I worked out a solution that seems to work, no matter how stupid it sounds: func_conveyer.

    I have segmented my circle up into tonnes of little segments, each its own func_conveyer, pushing the player a bit further around the platform, and hence moving them around the circle. First two stages should be finished by tonight and be ready for play testing this weekend.

    Now just need to work out how to stop stickies, etc. from sliding.
     
  13. Ynders

    aa Ynders absolutely gormful

    Messages:
    403
    Positive Ratings:
    513
    You could put a 1 unit thick brush of blockbullets above your circle if you wanted them to stay still, but stickies cannot stick to any moving thing, no matter what.
     
  14. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,071
    Positive Ratings:
    832
    Good news, though! Sandviches will travel on a func_conveyor, but continue to travel, and float, in the same direction.

    Deathrun maps :)