This article's documentation is for anything that uses the Source engine. Click here for more information.

Func conveyor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(-added class hierarchy, cleanup)
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}}
{{CD|CFuncConveyor|file1=bmodels.cpp}}
{{this is a|brush entity|name=func_conveyor}} It functions as a conveyor belt, with a moving surface. The surface material should have a <code>[[List Of Material Proxies#Entity integration|ConveyorScroll]]</code> Material Proxy, to synchronize the material movement and push effect.
{{this is a|brush entity|name=func_conveyor}} It functions as a conveyor belt, with a moving surface. The surface material should have a <code>[[List Of Material Proxies#Entity integration|ConveyorScroll]]</code> Material Proxy, to synchronize the material movement and push effect.


{{code class|CFuncConveyor|bmodels.cpp}}
{{bug|{{l4d2}} Does not affect Common infected and witches}}
{{bug|{{l4d2}} Does not affect Common infected and witches}}
{{bug|Doesn't effect [[VPhysics]] objects, that means that only QPhysics objects (players, walking NPCs, etc.) interact with [[func_conveyor]] as as expected. [[VPhysics]] objects just stand like on normal surfaces. Fixed in {{Bms|4}} for [[func_conveyor_bms]].}}
{{bug|Doesn't effect [[VPhysics]] objects, that means that only QPhysics objects (players, walking NPCs, etc.) interact with [[func_conveyor]] as as expected. [[VPhysics]] objects just stand like on normal surfaces. Fixed in {{Bms|4}} for [[func_conveyor_bms]].}}


==Keyvalues==
==Keyvalues==
{{Brush rendering note}}
{{KV Targetname}}
{{KV|Move Direction (Pitch Yaw Roll)|intn=movedir|angle|The direction conveyor moves.}}
{{KV|Move Direction (Pitch Yaw Roll)|intn=movedir|angle|The direction conveyor moves.}}
{{KV|Conveyor Speed|intn=speed|string|Linear speed of moving surface.}}
{{KV|Conveyor Speed|intn=speed|string|Linear speed of moving surface.}}
{{KV visiblebrush|l4d=1}}
{{KV BaseEntity|brush=1}}


==Flags==
==Flags==
*1: No Push
{{fl|1|No Push}}
*2: Not Solid
{{fl|2|Not Solid}}


==Inputs==
==Inputs==
{{IO|ToggleDirection|Change direction of conveyor.}}
{{IO|ToggleDirection|Change direction of conveyor.}}
{{IO|SetSpeed|param=integer|Sets '''Conveyor Speed'''.}}
{{IO|SetSpeed|param=integer|Sets '''Conveyor Speed'''.}}
{{I visiblebrush|portal2=1}}
{{I BaseEntity}}
==Outputs==
{{O BaseEntity}}

Revision as of 01:12, 3 September 2024

C++ Class hierarchy
CFuncConveyor
CFuncWall
CBaseEntity
C++ bmodels.cpp

func_conveyor is a brush entity available in all Source Source games. It functions as a conveyor belt, with a moving surface. The surface material should have a ConveyorScroll Material Proxy, to synchronize the material movement and push effect.

Icon-Bug.pngBug:Left 4 Dead 2 Does not affect Common infected and witches  [todo tested in ?]
Icon-Bug.pngBug:Doesn't effect VPhysics objects, that means that only QPhysics objects (players, walking NPCs, etc.) interact with func_conveyor as as expected. VPhysics objects just stand like on normal surfaces. Fixed in Black Mesa Black Mesa for func_conveyor_bms.  [todo tested in ?]

Keyvalues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs


Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Move Direction (Pitch Yaw Roll) (movedir) <angle>
The direction conveyor moves.
Conveyor Speed (speed) <string>
Linear speed of moving surface.

Flags

No Push : [1]
Not Solid : [2]

Inputs

ToggleDirection
Change direction of conveyor.
SetSpeed <integerRedirectInput/integer>
Sets Conveyor Speed.