Ru/Creating a moving platform: Difference between revisions
< Ru
Jump to navigation
Jump to search
(Created page with '== Платформа == 1. Создайте prop_dynamic со следующими параметрами: :{| class=standard-table ! Property Name || Value |- | World Model |…') |
|||
Line 53: | Line 53: | ||
|} | |} | ||
:Поставте флаг start on if desired. | :Поставте флаг start on if desired. | ||
== "Дорога" == | |||
1. Создайте браш 12x2 и разместите его там, где будет проходить дорога. Превратите его в func_brush с такими параметрами: | |||
:{| class=standard-table | |||
! Property Name || Value | |||
|- | |||
| Fx color || 225 252 253 | |||
|- | |||
| Solidity || Never Solid | |||
|} | |||
2. Поместите info_targets на каждый поворот и концы брашей рельса. Назовите его типа platform1_target1. | |||
3. Создайте env_beam for each strait section of track. Set the following: | |||
:{| class=standard-table | |||
! Property Name || Value | |||
|- | |||
| Beam color || 38 50 68 | |||
|- | |||
| Brightness || 255 | |||
|- | |||
| Ending entity || (your info_target) | |||
|- | |||
| Life || 0 | |||
|- | |||
| Name || platform1_beam | |||
|- | |||
| Render FX || Fast Wide Pulse | |||
|- | |||
| Sprite name || materials/Effects/laser1.vmt | |||
|- | |||
| Start entity || (your info_target) | |||
|- | |||
| Texture scroll rate || 2 | |||
|- | |||
| Width || 4 | |||
|} | |||
Set it to start on. |
Revision as of 12:20, 31 July 2009
Платформа
1. Создайте prop_dynamic со следующими параметрами:
Property Name Value World Model models/props/light_rail_platform.mdl Name platform1_model Parent platform1_train
2. Создайте браш размерами 120x120x2 с текстурой glass/glasswindow_frosted_004. Поместите её внутрь модели платформы. Превратите её в func_tractrain с такими параметрами:
Property Name Value Name platform1_train Height above track 0 Change angles never Move sound Portal.horizontal_lift_move Volume 2 Max pitch 100 Min pitch 80 First stop target platform1_s1 Max speed 40 Initial Speed 40
- Убедитесь, что во флагах отмечено No user control . Если no initial speed нет параметра, платформа не будет перемещаться правильно.
3. Создайте env_citadel_energy_coreи поместите её под моделью со следующими параметрами:
Property Name Value Name platform1_core Parent platform1_train Pitch Yaw Roll 90 0 0 Scale .5
- Поставте флаг start on if desired.
"Дорога"
1. Создайте браш 12x2 и разместите его там, где будет проходить дорога. Превратите его в func_brush с такими параметрами:
Property Name Value Fx color 225 252 253 Solidity Never Solid
2. Поместите info_targets на каждый поворот и концы брашей рельса. Назовите его типа platform1_target1.
3. Создайте env_beam for each strait section of track. Set the following:
Property Name Value Beam color 38 50 68 Brightness 255 Ending entity (your info_target) Life 0 Name platform1_beam Render FX Fast Wide Pulse Sprite name materials/Effects/laser1.vmt Start entity (your info_target) Texture scroll rate 2 Width 4
Set it to start on.