phys_slideconstraint

From Source Entities
Jump to navigation Jump to search

Code classes:

phys_slideconstraint is a point entity present in all Source games. It locks the movement of one or two entities to a single axis.

Flags[edit | edit source]

Bug: For some reason, only the first two flags appear in Hammer.

  • 1: No Collision until break - The two constrained entities will not collide with each other while this constraint is active.
  • 2: Limit Endpoints - Limit entity movement to the endpoints defined in Hammer.

Keyvalues[edit | edit source]

Friction (slidefriction) <float>
How much friction is present in the sliding mechanism. Note: Extremely high friction values will not prevent the object from budging, but will return it to its original position.
Sliding Axis (slideaxis) <vecline>
The "other" end of the axis to slide on.
Load Scale (SystemLoadScale) <float>
"Scale of the load connected to this constraint (1=just the objects directly connected)"[Clarify]
Travel sound (forward) (slidesoundfwd) <sound> (only available in Hl2.pngEpisodicP1.png)
Sound to make when the object is sliding forward.
Travel sound (backward) (slidesoundback) <sound> (only available in Hl2.pngEpisodicP1.png)
Sound to make when the object is sliding backward.
Minimum Sound Velocity (minSoundThreshold) <float> (only available in Hl2.pngEpisodicP1.png)
When sliding below this speed, don't play any sounds.
Full Sound Velocity (maxSoundThreshold) <float> (only available in Hl2.pngEpisodicP1.png)
When sliding above this speed, play sounds at full volume.
Reversal sound (small) (reversalsoundSmall) <sound> (only available in Hl2.pngEpisodicP1.png)
Sound to play when the object makes a reversal at a speed between the small and medium Reversal sound thresholds.
Reversal sound (medium) (reversalsoundMedium) <sound> (only available in Hl2.pngEpisodicP1.png)
Sound to play when the object makes a reversal at a speed between the medium and large Reversal sound thresholds.
Reversal sound (large) (reversalsoundLarge) <sound> (only available in Hl2.pngEpisodicP1.png)
Sound to play when the object makes a reversal at a speed above the Reversal sound threshold (large).
Reversal sound threshold (small) (reversalsoundthresholdSmall) <float> (only available in Hl2.pngEpisodicP1.png)
If the object makes a reversal with at least this much acceleration/deceleration, the Reversal sound (small) will play.
Reversal sound threshold (medium) (reversalsoundthresholdMedium) <float> (only available in Hl2.pngEpisodicP1.png)
If the object makes a reversal with at least this much acceleration/deceleration, the Reversal sound (medium) will play.
Reversal sound threshold (large) (reversalsoundthresholdLarge) <float> (only available in Hl2.pngEpisodicP1.png)
If the object makes a reversal with at least this much acceleration/deceleration, the Reversal sound (large) will play.

Inputs[edit | edit source]

SetVelocity <float>
Pushes the object(s) in the constraint with this much force.