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

From Valve Developer Community
Jump to navigation Jump to search
Note.pngNote:This tutorial states you must already know how to make a payload map and it will not be explained here. Please visit here for a tutorial on that.


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 don't need it in this case!

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!