Difference between revisions of "Portal 2 vote page"

From Valve Developer Community
Jump to: navigation, search
m
m
 
Line 3: Line 3:
 
|ru=Portal 2 vote page:ru
 
|ru=Portal 2 vote page:ru
 
}}
 
}}
Vote page/screen is a page where you evaluate the test chamber you had played from workshop. There you can visit author's page, comment and rate the test chamber.
+
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 vote screen appear, you will need to use either triggers or buttons (cube/ball/normal). In other words, you need something to activate it.
+
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 buttons==
+
==With triggers==
#Place a [[prop_button]], using the '''entity tool'''.
+
{{note|This is the preferred method of ending a Steam Workshop map.}}
#Place a [[func_instance]], using an '''entity tool''' aswell and go to its '''properties'''. Use the following settings:
+
 
{| class=standard-table
+
1. Create a trigger brush (using the tools/toolstrigger texture) with the block tool and tie it to a [[trigger_once]].<br>
 +
2. Place a [[func_instance]], using the '''entity tool''' and go to its '''properties''' tab. Use the following settings:
 +
::{| class=standard-table
 
!  Property || Value
 
!  Property || Value
 
|-
 
|-
Line 17: Line 19:
 
| VMF Filename || instances/p2editor/global_pti_ents.vmf
 
| VMF Filename || instances/p2editor/global_pti_ents.vmf
 
|}
 
|}
3. In prop_button's properties, go to '''Outputs''' tab and Add the following:
+
3. In the trigger's properties, go to the '''Outputs''' tab and Add the following:
{| class=standard-table
+
::{| class=standard-table
 
!  My Output || Target Entity || Target Input || Delay || Only Once
 
!  My Output || Target Entity || Target Input || Delay || Only Once
 
|-
 
|-
| OnPressed || pti_ents || instance:@relay_pti_level_end;Trigger || 0.00 || Yes
+
| OnStartTouch || pti_ents || instance:@relay_pti_level_end;Trigger || 0.00 || Yes
 
|}
 
|}
  
:If you want to make it a floor button, then just put a [[prop_floor_button]] instead of [[prop_button]]
+
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==
  
==With triggers==
+
# Place a [[prop_button]], using the '''entity tool'''.
#Create a trigger brush with the block tool and tie it to a [[trigger_once]].
+
# Repeat step 2 above.
# Repeat step 2
+
# Repeat step 3 above, but change '''"OnStartTouch"''' to '''"OnPressed"'''
# Repeat step 3, but change '''"OnPressed"''' to '''"OnStartTouch"'''
 
  
Because most maps will end with an elevator, placing this trigger somewhere in the exit elevator's shaft works well.
+
If you want to make it a floor button, then just put a [[prop_floor_button]] instead of [[prop_button]].
  
 
[[Category:Portal 2 Level Design]]
 
[[Category:Portal 2 Level Design]]
 
[[Category:Portal 2 Tutorials]]
 
[[Category:Portal 2 Tutorials]]

Latest revision as of 01:01, 7 April 2016

Русский

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: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.