Point playermoveconstraint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (works in l4ds,; reclarifird description)
(It does work, but just with a catch; Updated the base templates)
Line 1: Line 1:
{{base point|point_playermoveconstraint}} When given the<code>TurnOn</code>input, it constrains players within a set radius around itself, then slowing them down when they get close to the edge of the radius.
{{base point|point_playermoveconstraint}} When given the<code>TurnOn</code>input, it constrains any players already-within a set radius around itself, then slowing them down when they get close to the edge of the radius.
{{confirm | This entity does not function in {{tf2}}.}}
 
== Keyvalues ==
== Keyvalues ==
{{KV|Radius|float|Radius to constrain players to.}}
{{KV|Radius|float|intn=radius|Radius to find players to constrain.}}
{{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|Constraint Width|float|intn=width|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|Speed Factor|float|intn=speedfactor|Factor applied to the player's max speed as they approach the radius edge.}}
{{KV Targetname}}
{{KV BaseEntity|base=1}}


== Inputs ==
== Inputs ==
{{IO|TurnOn|Start constraining any players within the radius.}}
{{IO|TurnOn|Start constraining any players already within the radius.}}
{{IO|TurnOff|Stop constraining any players previously constrained.}}
{{IO|TurnOff|Stop constraining any players previously constrained.}}
{{I Targetname}}
{{I BaseEntity|base=1}}


== Outputs ==
== Outputs ==
{{IO|OnConstraintBroken|Fired when a player breaks through the constraint. {{PlCal}}}}
{{IO|OnConstraintBroken|Fired when a player breaks through the constraint. {{PlCal}}}}
{{O Targetname}}
{{O BaseEntity|l4d=1}}

Revision as of 01:39, 20 August 2021

Template:Base point When given theTurnOninput, it constrains any players already-within a set radius around itself, then slowing them down when they get close to the edge of the radius.

Keyvalues

Radius (radius) <float>
Radius to find players to constrain.
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>
Factor applied to the player's max speed as they approach the radius edge.


Inputs

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


Outputs

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