$root: Difference between revisions
Jump to navigation
Jump to search
(minor cleanup) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
<!-- The exact behaviors should be explained, does this link other roots to the specified bone? What happens to it's parents? --> | <!-- The exact behaviors should be explained, does this link other roots to the specified bone? What happens to it's parents? --> | ||
{{This is a|c0|name=$root}} It resets what bone is used as the "root" bone if there are multiple root - no parent - bones. The root bone is used for all movement and rotation calculations, as well as setting the root bone for ragdolls. This command is usually used to remove controller bones from the animation process. | |||
== Syntax == | == Syntax == |
Revision as of 12:15, 22 September 2023
$root
is a c0 available in all Source games. It resets what bone is used as the "root" bone if there are multiple root - no parent - bones. The root bone is used for all movement and rotation calculations, as well as setting the root bone for ragdolls. This command is usually used to remove controller bones from the animation process.
Syntax
$root <bone name>
Example
$modelname "npcs/dog.mdl" $cdmaterials "models/npcs/" $model "Dog" "dog.smd" $root "pelvis" $sequence "idle" "idle.smd"