How to use Monoculus's vortex in your map.

Discussion in 'Tutorials & Resources' started by Benoist3012, Nov 9, 2016.

  1. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    Hello today I'm going to introduce you to teleport_vortex entity and hightower_teleport_vortex.

    Part 1: teleport_vortex (CTeleportVortex)

    But what is teleport_vortex ?

    It's an entity dispatched by Monoculus upon teleporting away around the map, (the purple vortex attracting you in it), upon entering the vortex you are teleported to a random info_target entity named, spawn_purgatory.

    How use teleport_vortex entity ?

    1) First of you have to place a random entity into your map, and then change its classname to teleport_votex, once you are done, add the targetname keyvalue to it, and set for its value, the name you want to give to the vortex, that we will use later on.

    2) Once you made the vortex, put it where you want it to be, then create, a point template entity (point_template)
    then put in Template 1 key, the name of your vortex, this will prevent it from spawning once the map/round starts, and allow you to spawn it whenever you want.

    3)Create multiple info_target entities and name them spawn_purgatory, and put them where you want in your map, this will be the destination of the vortex.

    4)Make the map logic you want, and send the input ForceSpawn to your point_template entity, to dispatch the vortex.

    Note:
    Said vortex will only last 5 seconds, and send players to random info_target named spawn_purgatory.
    That vortex won't have any particles, that means you can put a info_particle_system over it, and set the vortex particle you want.


    Part 2: hightower_teleport_vortex (CHightower_TeleportVortex)

    Introduction:

    Don't worry! hightower_teleport_vortex entity is exactly what you need!
    All the functions teleport_vortex has hightower_teleport_vortex has it too, but with extra options!

    How use the hightower_teleport_vortex entity?

    1)First of create the hightower_teleport_vortex entity, and put it where you want the vortex to be. Give it a name, choose its lifetime.

    2)To set the destination of our vortex, well it's a bit tricky, the vortex will send players to "destinationname_loser" and "destinationname_winner" info_target entities, so what goes in "Destination base name", is what replaces destinationname in the examples.
    The vortex sends by default all players regardless of the team to "destinationname_loser", but if you want to send the blu and red team to a different location you have to send the input SetAdvantageTeam teamnumber (2 for red, and 3 for blu). Once you did that the team you set in advantage will be sent to the "destinationname_winner" info_target entities.

    3)Once you made the vortex, put it where you want it to be, then create, a point template entity (point_template)
    then put in Template 1 key, the name of your vortex, this will prevent it from spawning once the map/round starts, and allow you to spawn it whenever you want.

    4)Make the map logic you want, and send the input ForceSpawn to your point_template entity, to dispatch the vortex.

    Note: Unlike teleport_vortex entity, this one doesn't allow you to use a custom particle for it, it uses monoculus vortex particles by default. I'm going to email valve about it and ask for a change on CHightower_TeleportVortex class.


    Conclusion:

    I hope you enjoyed this tutorial, if you have any questions about the vortex post a message down below! I hope you will use those cool entities into your map, if you did, don't forget to post here a link to your map, I would love to see that.
     
    • Thanks Thanks x 8
    • Like Like x 4
    Last edited: Mar 29, 2017
  2. ics

    aa ics http://ics-base.net

    Messages:
    664
    Positive Ratings:
    412
    Thanks for this. I wish i had this information way before halloween this year, i would have done some things differently than they currently are. Anyway, i dont think this goes to waste, since there is always a next year. Though its little early for that but this gave me great ideas. If you find anything else usefull, such as how to create jarate rain within map without the wheel entity, it would be great.
     
  3. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    Oh yeah I do know how to do that. I'll write something about it.
     
    Last edited: Nov 13, 2016
  4. mi2

    mi2 L1: Registered

    Messages:
    6
    Positive Ratings:
    2
    Very neat trick, I've always wanted to use Monoculus' portals without actually spawning him.
    Thanks from another french-user!
     
    • Funny Funny x 1
  5. Crash

    aa Crash func_nerd

    Messages:
    3,148
    Positive Ratings:
    4,746
    Bump for those doing Halloween-y stuff and could use this.
     
    • Thanks Thanks x 1