Moving platforms?

Discussion in 'Mapping Questions & Discussion' started by Aijeke, Mar 20, 2020.

  1. Aijeke

    Aijeke L1: Registered

    Messages:
    12
    Positive Ratings:
    0
    Title. Is it possible to make floating platforms that follow a looping path? Probably, but here's the catch... I want to be able to build on the platforms as an engineer. Possible or not?

    And yeah, I got the idea from Overwatch, where you can put Torbjörn sentries on moving platforms. It gave me motivation finish my map from way back... or rather, start all over.

    I'm planning a final cap kinda like Barnblitz, but with the platforms. And for training mapping and the platforms, I'm gonna copy an old 007 multiplayer map as CTF map with mansions facing eachother with ski-lifts from mansion to mansion...
     
    Last edited: Mar 20, 2020
  2. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,153
    Positive Ratings:
    789
    The best way to create a platform that moves along a set path would be to use func_tracktrain. However, we'll quickly run into a couple problems. Firstly, engineers can't build on top of func_tracktrain, at all. We can avoid this by parenting another entity that engineers can build on top of, such as func_brush, to the train. The second problem is that when placed on an entity, buildings won't actually stay attached to the platform and will remain in place long after the entity has left, leaving us with a floating engineer building. We can use a trigger_multiple entity to detect when an engineer builds on the platform and parent their building to the platform. You can see all of this in the example VMF/BSP attached to this post.

    (Some issues to note: Dispensers don't seem to update their trigger area when parented, so the area of effect of a dispenser will remain where the dispenser was built while the dispenser's physical model floats away. Teleporters function as expected, but some of the particle effects look a bit off while it is moving and the arrow on the teleporter entrance does not update to continuously point at the exit.)
     

    Attached Files:

    • Agree Agree x 1
  3. Aijeke

    Aijeke L1: Registered

    Messages:
    12
    Positive Ratings:
    0
    Cool, thanks for the information, I'll try it out.

    I'm wondering if there is some sort of way to remove the ability to build dispensers, while keeping it possible for sentries and teleports... sounds pretty convoluted and I doubt it. I'm afk until tomorrow, will start experimenting then, any help is appreciated!