func_conveyor_bms

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
???
CFuncConveyor
CFuncWall
CBaseEntity

func_conveyor_bms is a brush entity available in Black Mesa Black Mesa. 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. The main difference between func_conveyor_bms and func_conveyor is that it can interact with VPhysics objects and not only QPhysics objects. This entity also have some inputs that can control conveyor state.

Keyvalues

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


Name (targetname) <string>
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) (direction) <angle>
The direction conveyor moves.
Conveyor Speed (speed) <string>
Linear speed of moving surface.

Flags

Push : [1]

Disable pushing if flag is unchecked.

Inputs

ReverseDirection <void> !FGD
Reverse direction of conveyor.
Activate <void> !FGD
Activate the conveyor.
Deactivate <void> !FGD
Deactivate the conveyor.
Toggle <void> !FGD
Toggle the conveyor current state.

Bugs/Limitations

Levitating objects

It seems that conveyor don't really push objects, it seems that conveyor just creates pulling point between object and conveyor surface and than pull object along a given direction. This method creates unrealistic physics behavior of objects, like in this video, it was initially expected that the box during pushing will get the same angle of inclination as that of the conveyor, but instead this, the box becomes to be levitating.

Doesn't work with client side ragdolls

This is one of many brush entities that can't hold client side ragdolls, this means that NPC's ragdolls will fall through such entity. In this case this problem most relevant in Interloper, where the corpses of unarmored alien grunts fall through a conveyor belt. The only way to fix this is use trigger_serverragdoll, however in this case ragdolls will not gib (fix here).

NPCs with low speed may stuck

If NPC is slow - may cause NPC to endless walk on conveyor. Avoid this by increasing the speed for NPC or decreasing the speed of conveyor.

Doesn't work with weapons and items

This entity does not work with entities that use weapon_ prefix (weapon_mp5, weapon_gluon, etc). The same for most of entities that use item_ prefix (item_weapon_mp5, item_weapon_gluon, etc).

Tripmines doesn't explode on activated conveyor

Expected that tripmine placed on activated conveyor will explode, but this doesn't happen at all. There is no workarounds, because of triggers doesn't interact with tripmines while tripmines is not actived.