Team Fortress 2/Creating Rollback/Rollforward zones for payload maps

From Valve Developer Community
Jump to navigation Jump to search
Nuvola apps ksnapshot.png
This article or section needs a screenshot to help visually convey the subject.
You can upload screenshots at Special:Upload. For help, see Help:Images.
Note.pngNote:You should already have the knowledge to create a payload map in order to use this tutorial. Please visit this tutorial before you continue reading.
Note.pngNote:This tutorial requires the use of a modified FGD file for Hammer. This [Resource Pack] will install an up-to-date FGD along with plenty of other things that will make creating maps in Hammer for Team Fortress 2 easier.

Step 1

Go to your team_train_watcher, and delete all outputs. Same goes for your trigger_capture_area or so called the "push-zone" for the cart.

Step 2

Go back to your team_train_watcher, and find the setting Handle Train Movement. Make sure it is set to Yes.

Step 3

Go to your logic_case and just delete it. You won't be needing it anymore.

Step 4

Go to the path_track(s) you want your cart to roll forward/back. Go to the flags, and you should tick one of the last two flags. This will tell the team_train_watcher that the path_track the cart is currently moving on will roll back/forth if nobody pushes it while it is in the zone.

Additional Info

Slower than usual rollback zones

If you want to make it slower than the default speed while is is pushed up, go to the path_track at the beginning of the rollback zone. Go to outputs and put them to these settings:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnPass Watcher_A SetSpeedForwardModifier 0.5 0.00 No
Io11.png OnPass Name of the path_track before this one DisablePath <none> 0.00 No

Then, go to the path_track at the end of the rollback zone, and set the outputs:


My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnPass Watcher_A SetSpeedForwardModifier 1 0.00 No

Voila! You're done!

Faster than usual rollforward zones

Do the same as the "Slower than usual rollback zones", only you must go to the path_tracks at the beginning and end of the rollforward zone, and you change the outputs around a bit.

Outputs for start of the zone:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnPass Watcher_A SetSpeedForwardModifier 1.5 0.00 No

Outputs for end of the zone:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnPass Watcher_A SetSpeedForwardModifier 1 0.00 No
Io11.png OnPass Name of the path_track before this one DisablePath <none> 0.00 No

Then you're done! I hope this tutorial helped!