Fr/Button (Portal 2)

From Valve Developer Community
< Fr
Revision as of 13:43, 2 April 2014 by Justincase (talk | contribs) (Created page with "{{otherlang2 |de=Button (Portal 2):de |ru=Button (Portal 2):ru |ko=Button (Portal 2):ko }} thumb|right|400px Les '''boutons''' sont des éléments...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Otherlang2

Portal 2 buttons.png

Les boutons sont des éléments interactifs dans la série Portal. Il y a différents types de boutons dans Portal 2, qui peuvent être activés de différentes manières.. Le bouton standard peut seulement être actvé par le joueur. Un bouton sur le sol est activé par le joueur ou un cube, et le bouton pour cubes peut seulement être activé par un cube.

Bouton

Le bouton standard
Le vieux bouton standard

Le bouton standard est vraiment simple à réaliser. Il peut faire usage de timer.

Création

En premier, créer un prop_button sur le sol et placez le où vous voulez. Direct the OnPressed output to a logic_relay or instance containing the actions that should occur when the button is pressed.

To have the button act as a timer, set the Delay Before Reset property to the desired amount of time and Play timer sound? to "Yes." Direct the OnButtonReset to the trigger you want to activate when time runs out.

prop_under_button functions in the same way, but has a different model, and is used in the underground sections of old Aperture.

Floor Button

Original Button

The Super button

Often but not necessarily positioned on the floor, it can be activated by both cubes and the player.

Creation

Select the entity creation tool and choose prop_floor_button from the list. Spawn it, an place it where you want on the map. By going into the properties of the button, you can choose what you want to happen when it is pressed (OnPressed) or when it is released (OnUnPressed). Under the 'Button model' property in the 'Class Info' tab you can change the way the floor button looks. Just filter "portal_button" in the model browse menu.

Note.pngNote: not in a way that it'll look like the cube only button.

In order to create the base, as they appear in-game, simply add an instance with the 'base' .VMF. There are four different bases: destroyed\intact black, destroyed\intact white

The cube-specific floor button.

Cube Button

Created by placing a prop_floor_cube_button. A version of the button that is square, mostly because it is activated only by a prop_weighted_cube. Has the same outputs as the other floor buttons.

The sphere-specific floor button.

Ball Button

Created by placing a prop_floor_ball_button. A version of the button that is round and smaller, mostly because it is activated by a prop_weighted_cube with CubeType set to Sphere. Outputs are the same as the older button.

See also