point_playermoveconstraint
Jump to navigation
Jump to search
Code classes:
CPointPlayerMoveConstraint
CBaseEntity
(all ents)
point_playermoveconstraint
is a point entity present in all Source games. It contains the player to a sphere by reducing their walking speed. They may still escape the sphere by other means of movement such as jumping, or even simply using walking inertia to their advantage. If you want to use this to keep someone constrained with 100% certainty, you need to also include something else, such as clipping.
Keyvalues[edit | edit source]
- Radius
(radius)
<float>
- How far away the player can go.
- Constraint Width
(width)
<float>
- Width of the constraint edge. This is the distance in which to start slowing players down as they approach the edge of the radius.
- Speed Factor
(speedfactor)
<float>
- Multiplier applied to the player's walking speed as they approach the radius edge. Note: Even when set to 0, the player can still escape through non-walking means such as jumping or being pushed.
Inputs[edit | edit source]
- TurnOn
- Starts constraining the player. Note: The entity automatically turns off if the player escapes the radius.
- TurnOff
- Stops constraining the player.
Outputs[edit | edit source]
- OnConstraintBroken
- Fires when the player escapes the radius.