$ikautoplaylock

From Valve Developer Community
Jump to: navigation, search

Before the autoplay sequences are run, the specified $ikchain is locked in place wherever it happens to be. This is useful for locking the feet in place in case there are any pelvis motions on autoplay head turns or chest turns.

Syntax

$ikautoplaylock <chain name> <pos lock> <angle lock>

The <pos lock> value dictates how high the chain is off the ground. Generally values between 0-1 are acceptable enough, but you can go higher or go lower into the negatives if need be. The <angle lock> value can be left untouched (or even at 0). This controls the rotation of the chain and isn't really necessary.

Example

$ikautoplaylock rfoot 1.0 0.1
$ikautoplaylock lfoot 1.0 0.1
$animation a_pose_neutral "CT_body_poses" frames 0 0