$boneflexdriver: Difference between revisions
Jump to navigation
Jump to search
(Update $boneflexdriver with new findings) |
|||
Line 1: | Line 1: | ||
'''$boneflexdriver''' is a QC command which enables | '''$boneflexdriver''' is a QC command which enables driving a flex with a bone's animation. This is particularly useful in multiplayer games where you can't pack VDC files into the map, as you can still use flex animation. It is also critical to vertex animation. | ||
== Availability == | == Availability == | ||
Line 18: | Line 18: | ||
: The name of an existing bone that will host vertex animation for this model. | : The name of an existing bone that will host vertex animation for this model. | ||
; graph_axis | ; graph_axis | ||
: One of | : One of three values: | ||
:; <code>tx</code> | :; <code>tx</code> | ||
:: Links the target flex controller to the weight of the animation (much like a [[skeletal animation]]'s). Controlled by the X-axis animation of the host bone. | :: Links the target flex controller to the weight of the animation (much like a [[skeletal animation]]'s). Controlled by the X-axis animation of the host bone. | ||
:; <code>ty</code> | :; <code>ty</code> | ||
:: Links the target flex controller to the current frame of vertex animation. Controlled by the Y-axis animation of the host bone. | :: Links the target flex controller to the current frame of vertex animation. Controlled by the Y-axis animation of the host bone. | ||
:; <code>tz</code> | |||
:: Unknown function. | |||
; flex_name | ; flex_name | ||
: The name of the flex controller this command operates on. There are two sensible options: | : The name of the flex controller this command operates on. There are two sensible options: | ||
Line 35: | Line 37: | ||
== Example == | == Example == | ||
For vertex animation: | |||
<syntaxhighlight lang=php> | <syntaxhighlight lang=php> |
Revision as of 08:52, 11 June 2018
$boneflexdriver is a QC command which enables driving a flex with a bone's animation. This is particularly useful in multiplayer games where you can't pack VDC files into the map, as you can still use flex animation. It is also critical to vertex animation.
Availability
Syntax
$boneflexdriver <bone_name> <graph_axis> <flex_name> <start_offset> <time_factor>
- bone_name
- The name of an existing bone that will host vertex animation for this model.
- graph_axis
- One of three values:
tx
- Links the target flex controller to the weight of the animation (much like a skeletal animation's). Controlled by the X-axis animation of the host bone.
ty
- Links the target flex controller to the current frame of vertex animation. Controlled by the Y-axis animation of the host bone.
tz
- Unknown function.
- flex_name
- The name of the flex controller this command operates on. There are two sensible options:
<vca_name>
(for tx)multi_<vca_name>
(for ty)
- In both cases,
<vca_name>
is the name of the model's vcafile minus any file extension. - start_offset
- Adds a delay before the vertex animation starts.
- time_factor
- The keyframe rate of the animation is multiplied by this value. It doesn't actually change the animation's duration however, making it of little use.
Example
For vertex animation:
$boneflexdriver "flexAnimBone" tx "my_vca_name" 0 1
$boneflexdriver "flexAnimBone" ty "multi_my_vca_name" 0 1