Alternative Multi-Stop Elevator: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{wip}} {{Note|This is a six floor elevator, However theretically can take a near unlimited nuber of floors though its best to restrict a limit that best fits to the map design}...")
 
No edit summary
Line 6: Line 6:
== Construction ==
== Construction ==


This elevator's surrounding construction fallows simililar to the [[:Multi-stop elevators|MultiStop elevator tutorial]], however, the elevator itself is constructed from a [[func_movelinear]]. Therefore, you will not need any pathtracks. This allows the elevator to stop exactly at each point rather than slightly above or below the intended destination.




== Brush Entities ==
'''ClassInfo'''
:Class
::''[[func_movelinear]]''
:Name
::''Elevator_&i''
:Move Direction (Pitch Yaw Roll)
::''-90 0 0''
:Move Distance
::''160'' {{note|To figure the move distance, add the height of the wall height plus floor thickness (The walls were 128 tall, floors were 32 thickz)}}
:Block Damage
:: 2000 {{note|Necessary to prevent the elevator from getting jammed}}
:Sound played when the brush starts moving
::''(Pick A Sound)''
:Sound played when the brush stops moving
::''(Pick A Sound)''
'''Outputs'''
NONE
----
{{Note|Elevator_Weight_&i is not absolutlutly necessary but it is more for visuals}}
Place this at the top most floor
'''ClassInfo'''
:Class
::''[[func_movelinear]]''
:Name
::''Elevator_Weight_&i''
:Move Direction (Pitch Yaw Roll)
::''90 0 0''
:Move Distance
::''160'' {{note|To figure the move distance, add the height of the wall height plus floor thickness (The walls were 128 tall, floors were 32 thickz)}}
:Block Damage
:: 2000 {{note|Necessary to prevent the elevator from getting jammed}}
:Sound played when the brush starts moving
::''(Pick A Sound)''
:Sound played when the brush stops moving
::''(Pick A Sound)''
'''Outputs'''
NONE
----
'''ClassInfo'''
:Class
::''[[func_button]]''
:Name
::''Elevator_F1_Button_&i''
'''Outputs'''
{| class=standard-table
! || Output named || Target entities || Via this input || Parameter || Delay
|-
|[[Image:Io11.png]] || OnPressed || F1_ButtonFunctions_&i || Trigger ||  || 0.00
|}
'''Flags'''
☑ Don't move
☐ Toggle
☐ Touch Activates
☐ Damage Activates
☑ Use Activates
☐ Starts Locked
☐ Sparks
----
'''ClassInfo'''
:Class
::''[[func_button]]''
:Name
::''Elevator_M1_Button_&i''
:Parent
::''Elevator_&i''
'''Outputs'''
{| class=standard-table
! || Output named || Target entities || Via this input || Parameter || Delay
|-
|[[Image:Io11.png]] || OnPressed || F1_ButtonFunctions_&i || Trigger ||  || 0.00
|}
'''Flags'''
☑ Don't move
☐ Toggle
☐ Touch Activates
☐ Damage Activates
☑ Use Activates
☐ Starts Locked
☐ Sparks


== Functional Relays ==
== Functional Relays ==
Line 184: Line 318:


== Floor Spacific Functions ==
== Floor Spacific Functions ==
{{Note|For Every floor you intend to add, all of these entities need to be present for the elevator}}


'''ClassInfo'''
'''ClassInfo'''

Revision as of 10:32, 4 February 2012

Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

Note.pngNote:This is a six floor elevator, However theretically can take a near unlimited nuber of floors though its best to restrict a limit that best fits to the map design


Construction

This elevator's surrounding construction fallows simililar to the MultiStop elevator tutorial, however, the elevator itself is constructed from a func_movelinear. Therefore, you will not need any pathtracks. This allows the elevator to stop exactly at each point rather than slightly above or below the intended destination.


Brush Entities

ClassInfo

Class
func_movelinear
Name
Elevator_&i
Move Direction (Pitch Yaw Roll)
-90 0 0
Move Distance
160
Note.pngNote:To figure the move distance, add the height of the wall height plus floor thickness (The walls were 128 tall, floors were 32 thickz)
Block Damage
2000
Note.pngNote:Necessary to prevent the elevator from getting jammed
Sound played when the brush starts moving
(Pick A Sound)
Sound played when the brush stops moving
(Pick A Sound)

Outputs

NONE


Note.pngNote:Elevator_Weight_&i is not absolutlutly necessary but it is more for visuals

Place this at the top most floor

ClassInfo

Class
func_movelinear
Name
Elevator_Weight_&i
Move Direction (Pitch Yaw Roll)
90 0 0
Move Distance
160
Note.pngNote:To figure the move distance, add the height of the wall height plus floor thickness (The walls were 128 tall, floors were 32 thickz)
Block Damage
2000
Note.pngNote:Necessary to prevent the elevator from getting jammed
Sound played when the brush starts moving
(Pick A Sound)
Sound played when the brush stops moving
(Pick A Sound)

Outputs

NONE


ClassInfo

Class
func_button
Name
Elevator_F1_Button_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnPressed F1_ButtonFunctions_&i Trigger 0.00

Flags

☑ Don't move

☐ Toggle

☐ Touch Activates

☐ Damage Activates

☑ Use Activates

☐ Starts Locked

☐ Sparks


ClassInfo

Class
func_button
Name
Elevator_M1_Button_&i
Parent
Elevator_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnPressed F1_ButtonFunctions_&i Trigger 0.00

Flags

☑ Don't move

☐ Toggle

☐ Touch Activates

☐ Damage Activates

☑ Use Activates

☐ Starts Locked

☐ Sparks

Functional Relays

ClassInfo

Class
logic_relay
Name
LockButtons_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger Elevator_F1_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_F2_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_F3_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_F4_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_F5_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_F6_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_M1_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_M2_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_M3_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_M4_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_M5_Button_&i Lock 0.00
Io11.png OnTrigger Elevator_M6_Button_&i Lock 0.00

ClassInfo

Class
logic_relay
Name
UnockButtons_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger Elevator_F1_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_F2_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_F3_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_F4_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_F5_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_F6_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_M1_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_M2_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_M3_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_M4_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_M5_Button_&i Unock 0.00
Io11.png OnTrigger Elevator_M6_Button_&i Unock 0.00

ClassInfo

Class
logic_relay
Name
CompareAll_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger F1_Compare_&i Compare 0.00
Io11.png OnTrigger F2_Compare_&i Compare 0.00
Io11.png OnTrigger F3_Compare_&i Compare 0.00
Io11.png OnTrigger F4_Compare_&i Compare 0.00
Io11.png OnTrigger F5_Compare_&i Compare 0.00
Io11.png OnTrigger F6_Compare_&i Compare 0.00

ClassInfo

Class
logic_relay
Name
Close_AllDoors_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger CompareAll_&i Trigger 0.00
Io11.png OnTrigger Elevator_M_Door_&i SetAnimation close 0.00

ClassInfo

Class
logic_relay
Name
Test_Relay_All_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger F1_Branch_Button_&i SetValueTest 0 0.00
Io11.png OnTrigger F2_Branch_Button_&i SetValueTest 0 0.00
Io11.png OnTrigger F3_Branch_Button_&i SetValueTest 0 0.00
Io11.png OnTrigger F4_Branch_Button_&i SetValueTest 0 0.00
Io11.png OnTrigger F5_Branch_Button_&i SetValueTest 0 0.00
Io11.png OnTrigger F6_Branch_Button_&i SetValueTest 0 0.00

ClassInfo

Class
logic_auto

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnMapSpawn Elevator_M_Door_&i SetAnimation open 0.00
Io11.png OnMapSpawn F1_DoorBranch_&i SetValueTest 1 0.00


Floor Spacific Functions

Note.pngNote:For Every floor you intend to add, all of these entities need to be present for the elevator


ClassInfo

Class
logic_relay
Name
F1_ButtonFunctions_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger Close_AllDoors_&i Trigger 0.00
Io11.png OnTrigger F1_TestRelay_&i Trigger 0.00
Io11.png OnTrigger LockButtons_&i Trigger 0.00
Io11.png OnTrigger Elevator_Chime_&i PlaySound 0.00
Io11.png OnTrigger Elevator_&i SetPosition 0 2.00
Io11.png OnTrigger Elevator_Weight_&i SetPosition 0 2.00



ClassInfo

Class
logic_relay
Name
F1_TestRelay_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger F1_Branch_Button_&i SetValueTest 1 0.01
Io11.png OnTrigger Test_Relay_All_&i Trigger 0 0.00

ClassInfo

Class
logic_branch
Name
F1_Branch_Button_&i
Initial value
0

Outputs

NONE


ClassInfo

Class
logic_branch
Name
F1_Branch_Trigger_&i
Initial value
0

Outputs

NONE


ClassInfo

Class
logic_branch_listener
Name
F1_Branch_Listener_&i
Logic Branch 01
F1_Branch_Button_&i
Logic Branch 02
F1_Branch_Trigger_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnAllFalse F1_Timer_&i Disable 0.00
Io11.png OnAllTrue F1_Timer_&i Enable 0.00
Io11.png OnMixed F1_Timer_&i Disable 0.00
Io11.png OnAllTrue F1_Timer_&i FireTimer 0.10

ClassInfo

Class
logic_timer
Name
F1_Timer_&i
Start Disabled
Yes
Refire Interval
3

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTimer UnlockButtons_&i Trigger 0.00
Io11.png OnTimer Elevator_F1_Button_&i Lock 0.10
Io11.png OnTimer Elevator_M1_Button_&i Lock 0.10
Io11.png OnTimer F1_Timer_&i Disable 0.50
Io11.png OnTimer Elevator_M_Door_&i SetAnimation open 1.50
Io11.png OnTimer F1_DoorBranch_&i SetValueTest 1 1.50

ClassInfo

Class
logic_relay
Name
Elevator_OpenDoor_F1_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger Elevator_F1_Door_&i SetAnimation open 0.00
Io11.png OnTrigger Elevator_Sound_F1_Door_&i PlaySound 0.00
Io11.png OnTrigger F1_SetAllCompare_&i Trigger 0.00

ClassInfo

Class
logic_relay
Name
Elevator_CloseDoor_F1_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger Elevator_F1_Door_&i SetAnimation close 0.00
Io11.png OnTrigger Elevator_Sound_F1_Door_&i PlaySound 0.00

ClassInfo

Class
logic_timer
Name
F1_DoorTimerOpen_&i
Start Disabled
Yes
Refire Interval
3

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTimer Elevator_OpenDoor_F1_&i Trigger 0.00

---

ClassInfo

Class
logic_timer
Name
F1_DoorTimerClose_&i
Start Disabled
Yes
Refire Interval
3

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTimer Elevator_CloseDoor_F1_&i Trigger 0.00

ClassInfo

Class
logic_branch
Name
F1_DoorBranch_&i
Initial value
0

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnFalse F1_DoorTimerClose_&i Enable 0.00
Io11.png OnFalse F1_DoorTimerOpen_&i Disable 0.00
Io11.png OnTrue F1_DoorTimerOpen_&i Enable 0.00
Io11.png OnTrue F1_DoorTimerClose_&i Disable 0.00
Io11.png OnFalse F1_DoorTimerClose_&i FireTimer 0.10
Io11.png OnTrue F1_DoorTimerOpen_&i FireTimer 0.10
Io11.png OnFalse F1_DoorTimerClose_&i Disable 1.00
Io11.png OnTrue F1_DoorTimerOpen_&i Disable 1.00

ClassInfo

Class
logic_relay
Name
F1_SetAllCompare_&i

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger F1_Compare_&i SetValue 1 0.00
Io11.png OnTrigger F2_Compare_&i SetValue 1 0.00
Io11.png OnTrigger F3_Compare_&i SetValue 1 0.00
Io11.png OnTrigger F4_Compare_&i SetValue 1 0.00
Io11.png OnTrigger F5_Compare_&i SetValue 1 0.00
Io11.png OnTrigger F6_Compare_&i SetValue 1 0.00

ClassInfo

Class
logic_compare
Name
F1_Compare_&i
Compare value
1

Outputs

Output named Target entities Via this input Parameter Delay
Io11.png OnEqualTo F1_DoorBranch_&i SetValueTest 0 0.00