Кнопки (Portal 2)

From Valve Developer Community
< Ru
Revision as of 05:20, 12 July 2024 by Nesciuse (talk | contribs) (Multipage removal)
Jump to navigation Jump to search
English (en)Deutsch (de)Français (fr)한국어 (ko)Русский (ru)中文 (zh)Translate (Translate)


Portal 2 buttons.png

Кнопки - интерактивные объекты в играх серии Portal. В Portal 2(en) есть различные виды кнопок, которые можно активировать разными способами. Стандартная кнопка может быть переключена только самим игроком. Напольная кнопка может быть активирована как игроком, так и кубом, кнопки для кубов могут активировать только кубы.

Кнопка-пьедестал

Кнопка-пьедестал
Кнопка-пьедестал из старой лаборатории

Эту высокую кнопку с красной крышкой, активируемую игроком, сделать очень просто. Её можно связать с таймером.

Создание

Создайте энтити

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_button на полу и разместите её в нужном месте. Направьте выход OnPressed к

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

logic_relay или к экземпляру, содержащему действия, которые должны произойти после нажатия кнопки.

Чтобы кнопка действовала как таймер, задайте её свойство Delay Before Resetна нужное количество времени, а Play timer sound? на "Yes." Направьте OnButtonReset к триггеру, который должен активироваться по истечении времени.


Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_under_button работает тем же образом, но имеет другую модель, используется в картах в стиле старой лаборатории.

Напольные кнопки

Обычная кнопка

Суперкнопка :)

Обычно её размещают на полу, но это совершенно не обязательно. Активируется как кубом, так и игроком.

Создание

Выберите инструмент создания энтити и выберите

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_floor_button в списке. Создайте и разместите её на карте. В свойствах кнопки вы можете указать действие, которое произойдёт при её нажатии (OnPressed) или отпускании (OnUnPressed).

В свойстве 'Button model' во вкладке 'Class Info' вы можете выбрать внешний вид кнопки. Просто отфильтруйте "portal_button" в браузере моделей.

Note.pngПримечание: не выбирайте модель, которая активируется только кубом.

Чтобы создать основу для кнопки, которая выглядит как в игре, просто добавьте

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

экземпляр с файлом .VMF: 'base'. Существует четыре основы: с повреждениями или без чёрная или белая.

Напольная кнопка для кубов.

Кнопка для кубов

Создаётся размещением энтити

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_floor_cube_button. Эта версия обычной кнопки, но квадратной формы, поэтому она активируется только

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

кубом. Имеет те же выходы, что и обычная напольная кнопка.

Напольная кнопка для сфер.

Кнопка для сфер

Создаётся размещением энтити

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_floor_ball_button. Меньшая версия напольной кнопки с гнездом круглой формы, активируется

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_weighted_cube со свойством CubeType, заданным на Sphere. Выходы те же, что и у других напольных кнопок.

Напольная кнопка из старой лаборатории

Кнопка из старой Aperture

Отличается от обычной напольной кнопки лишь внешним видом, используется в картах в стиле старой лаборатории(en), поэтому её рекомендуется использовать вместе со старыми кубами. Для создания разместите энтити

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

prop_under_floor_button. Выходы те же, что у обычной напольной кнопки.

Индикаторные огни

Указывают объект или механизм, который активируется/дезактивируется связанной кнопкой.

Индикаторные огни

Шаг 1: Выберите текстуру "indicator_lights_wall" и примените оверлеи для создания индикаторной дорожки.

Шаг 2: Назовите их все тем же именем (например, button_lights_01).

Шаг 3: Создайте энтити env_texturetoggle и разместите её рядом с вашими огнями, назовите её light_change. Настройте конечные браши на button_lights_01 (или как вы назвали оверлеи для всех огней).

Шаг 4: Выберите кнопку, нажмите alt+enter для открытия её свойств, перейдите на вкладку Output и создайте два следующих выхода:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnButtonReset light_change SetTextureIndex 0 0.00 No
Io11.png OnPressed light_change SetTextureIndex 1 0.00 No

Всё должно заработать!

См. также

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

Энтити для вывода подсказки