Difference between revisions of "$bonemerge"

From Valve Developer Community
Jump to: navigation, search
m (minor cleanup)
(added info about $definebone usage)
Line 1: Line 1:
 
Serves as a hint to the game code that the named bone will be used for bone merges (see [[Attachments]]) during the game. If this flag is not present, the bone can still be used but you'll get performance warnings.
 
Serves as a hint to the game code that the named bone will be used for bone merges (see [[Attachments]]) during the game. If this flag is not present, the bone can still be used but you'll get performance warnings.
  
 +
It can also be used to force a bone existance for the [[$definebone]] process.
 +
Sometimes when you use [[Crowbar]] to write the $definebones lines, it will collapse a bone and simply not write a $definebone line for a bone. Adding a $bonemerge line for all, or just the missing bone, circumvents the bone from being removed.
 
== Syntax ==
 
== Syntax ==
 
  $bonemerge <bone name>
 
  $bonemerge <bone name>
  
 
[[Category:QC Commands|bonemerge]]
 
[[Category:QC Commands|bonemerge]]

Revision as of 10:08, 19 January 2019

Serves as a hint to the game code that the named bone will be used for bone merges (see Attachments) during the game. If this flag is not present, the bone can still be used but you'll get performance warnings.

It can also be used to force a bone existance for the $definebone process. Sometimes when you use Crowbar to write the $definebones lines, it will collapse a bone and simply not write a $definebone line for a bone. Adding a $bonemerge line for all, or just the missing bone, circumvents the bone from being removed.

Syntax

$bonemerge <bone name>