Portal 2 vote page

From Valve Developer Community
Revision as of 17:01, 6 April 2016 by P0rtalmaster (talk | contribs)
Jump to: navigation, search

The voting page/screen is a page where you evaluate the map/test chamber you had just played from workshop. There you can visit author's page, comment and rate the map/test chamber.

To make the voting screen appear, you will need to use either triggers or buttons. In other words, you need something to activate it.

With triggers

Note.png Note: This is the preferred method of ending a Steam Workshop map.

1. Create a trigger brush (using the tools/toolstrigger texture) with the block tool and tie it to a trigger_once.
2. Place a func_instance, using the entity tool and go to its properties tab. Use the following settings:

Property Value
Fix Up Name pti_ents
VMF Filename instances/p2editor/global_pti_ents.vmf

3. In the trigger's properties, go to the Outputs tab and Add the following:

My Output Target Entity Target Input Delay Only Once
OnStartTouch pti_ents instance:@relay_pti_level_end;Trigger 0.00 Yes

Because most maps will end with an elevator, placing this trigger somewhere in the exit elevator's shaft works well. The official PTI elevator exit instance uses this trigger where the player enters the elevator and triggers after 0.90 seconds.

With buttons

  1. Place a prop_button, using the entity tool.
  2. Repeat step 2 above.
  3. Repeat step 3 above, but change "OnStartTouch" to "OnPressed"

If you want to make it a floor button, then just put a prop_floor_button instead of prop_button.