Point playermoveconstraint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=point_playermoveconstraint}}
{{base point|point_playermoveconstraint}} It constrains players to a radius around itself, slowing them down the closer they get to the edge of the radius.
{{base_point}}


==Entity Description==
== Keyvalues ==
An entity that constrains players to a radius around itself, slowing them down the closer they get to the edge of the radius.
{{KV|Radius|float|Radius to constrain players to.}}
{{KV|Constraint 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.}}
{{KV|Speed Factor|float|Factor applied to the player's max speed as they approach the radius edge.}}
{{KV Targetname}}


==Keyvalues==
== Inputs ==
*{{KV Targetname}}
{{IO|TurnOn|Start constraining any players within the radius.}}
*'''radius''' <float>
{{IO|TurnOff|Stop constraining any players previously constrained.}}
:Radius to constrain players to.
{{I Targetname}}
*'''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.
*'''speedfactor''' <float>
:Speed factor applied to the player's max speed as they approach the radius edge.


==Inputs==
== Outputs ==
*{{I Targetname}}
{{IO|OnConstraintBroken|Fired when a player breaks through the constraint. {{PlCal}}}}
*'''TurnOn'''
{{O Targetname}}
:Start constraining any players within the radius.
*'''TurnOff'''
:Stop constraining any players previously constrained.
 
==Outputs==
*{{O Targetname}}
*'''OnConstraintBroken'''
:Fired when a player breaks through the constraint. {{PlCal}}

Revision as of 05:29, 28 July 2011

Template:Base point It constrains players to a radius around itself, slowing them down the closer they get to the edge of the radius.

Keyvalues

Radius ([todo internal name (i)]) <float>
Radius to constrain players to.
Constraint Width ([todo internal name (i)]) <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 ([todo internal name (i)]) <float>
Factor applied to the player's max speed as they approach the radius edge.
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

Inputs

TurnOn
Start constraining any players within the radius.
TurnOff
Stop constraining any players previously constrained.


Outputs

OnConstraintBroken
Fired when a player breaks through the constraint. Template:PlCal