This article's documentation is for Source 2. Click here for more information.

Func conveyor (Source 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(use on baggage)
m (→‎Inputs: Substituted IO templates)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{tabs|func_conveyor|goldsrc=1|source=1|source2=1|main=source}}
{{tabs|func_conveyor|goldsrc=1|source=1|source2=1|main=source}}
{{This is a|name=func_conveyor|engine=source2|game = Counter-Strike 2|mesh}} It can be used to create conveyor belts that can move players, physics objects and weapons (including C4).
{{this is a|mesh entity|name=func_conveyor|engine=Source 2|game=Counter-Strike 2}} It can be used to create conveyor belts that can move players, physics objects and weapons (including C4).


==Keyvalues==
==Keyvalues==
{{KV|Models|string|Name of the conveyor models that will animate along with the conveyor.}}
{{KV|Models|string|Name of the conveyor models that will animate along with the conveyor.}}
{{KV|Move Direction (Pitch Yaw Roll)||The direction conveyor moves.}}
{{KV|Move Direction (Pitch Yaw Roll)||The direction conveyor moves.}}
Line 10: Line 9:


==Inputs==
==Inputs==
{{IO|ToggleDirection|Reverses direction of conveyor belt by changing speed from a positive number to a negative number (e.g 100 to -100) and vice versa.}}
{{I|ToggleDirection|Reverses direction of conveyor belt by changing speed from a positive number to a negative number (e.g 100 to -100) and vice versa.}}
{{IO|SetSpeed|Sets speed of conveyor belt specified in a parameter}}
{{I|SetSpeed|Sets speed of conveyor belt specified in a parameter}}
{{IO|SetTransitionDuration|Changes number of seconds that conveyor belt will transition to a new speed in case of receiving any of inputs above}}
{{I|SetTransitionDuration|Changes number of seconds that conveyor belt will transition to a new speed in case of receiving any of inputs above}}


==Use on Baggage==
==Use on Baggage==
Conveyor belts are used on [[Valve]] [[Counter-Strike:_Global_Offensive/Game_Modes/Arms_Race|Arms Race]] [[Map_(level_design)|map]], [[Counter-Strike_2/Maps#ar_baggage|Baggage]]. They are stopped by default, but they can be started using control panel in a room on the bottom of the map. You can also toggle direction in which they are moving to help one of the teams.
Conveyor belts are used on [[Valve]]'s [[Counter-Strike: Global Offensive/Game Modes/Arms Race|Arms Race]] map, [[Counter-Strike 2/Maps#ar baggage|Baggage]]. They are stopped by default, but they can be started using a control panel in a room on the bottom of the map. You can also toggle the direction in which they are moving to help one of the teams.
[[File:Ar baggage cs2 control panel.jpg|360px|thumb|left|Control panel for conveyor belts]]
[[File:Ar baggage cs2 control panel.jpg|360px|thumb|left|Control panel for conveyor belts]]
[[File:Ar baggage cs2 conveyor belts.jpg|360px|thumb|left|Conveyor belts]]
[[File:Ar baggage cs2 conveyor belts.jpg|360px|thumb|left|Conveyor belts]]

Latest revision as of 10:56, 21 April 2025

func_conveyor is a mesh entity available in Counter-Strike 2 Counter-Strike 2. It can be used to create conveyor belts that can move players, physics objects and weapons (including C4).

Keyvalues

Models ([todo internal name (i)]) <string>
Name of the conveyor models that will animate along with the conveyor.
Move Direction (Pitch Yaw Roll) ([todo internal name (i)])
The direction conveyor moves.
Conveyor Speed ([todo internal name (i)]) <float>
Conveyor speed, specified in Hammer Units / second
Transition Duration ([todo internal name (i)]) <float>
How long it will take to transition to the new speed, specified in seconds.

Inputs

ToggleDirection
Reverses direction of conveyor belt by changing speed from a positive number to a negative number (e.g 100 to -100) and vice versa.
SetSpeed
Sets speed of conveyor belt specified in a parameter
SetTransitionDuration
Changes number of seconds that conveyor belt will transition to a new speed in case of receiving any of inputs above

Use on Baggage

Conveyor belts are used on Valve's Arms Race map, Baggage. They are stopped by default, but they can be started using a control panel in a room on the bottom of the map. You can also toggle the direction in which they are moving to help one of the teams.

Control panel for conveyor belts
Conveyor belts