$bodygrouppreset: Difference between revisions
Jump to navigation
Jump to search
m (Added the page to a category) |
Robotboy655 (talk | contribs) (this appears to be late-Source feature. It does not exist in Source SDK 2013. It relies on Secondary Model Header (studiohdr2_t)) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{This is a|name=$bodygrouppreset|QC command|game=Counter-Strike: Global Offensive}} It creates a bodygroup "preset", which when selected will toggle the state of multiple bodygroups at once. It is used to toggle silencers for the M4A1-S and USP-S, and magazines for many other weapons. | |||
== Syntax == | == Syntax == | ||
Line 20: | Line 20: | ||
$bodygroup hats { | $bodygroup hats { | ||
blank | blank | ||
studio "tophatt | studio "tophatt" | ||
studio "fedora | studio "fedora" | ||
studio "towering_pillar_of_hats | studio "towering_pillar_of_hats" | ||
} | } | ||
$bodygroup cigar { | $bodygroup cigar { | ||
blank | blank | ||
studio "cigar | studio "cigar" | ||
} | } | ||
$bodygrouppreset "glasses_fedora_nocigar" { | $bodygrouppreset "glasses_fedora_nocigar" { | ||
Line 42: | Line 42: | ||
*[[$bodygroup]] | *[[$bodygroup]] | ||
*[[$body]] | *[[$body]] | ||
Latest revision as of 08:10, 6 August 2025
$bodygrouppreset
is a QC command available in Counter-Strike: Global Offensive. It creates a bodygroup "preset", which when selected will toggle the state of multiple bodygroups at once. It is used to toggle silencers for the M4A1-S and USP-S, and magazines for many other weapons.
Syntax
$bodygrouppreset <preset name> { <bodygroup name> <bodygroup index> <bodygroup name> <bodygroup index> ... }
The bodygroup index is the body in the bodygroup that you want to be selected in the preset.
Example
$bodygroup glasses {
blank
studio "glasses.smd"
}
$bodygroup hats {
blank
studio "tophatt"
studio "fedora"
studio "towering_pillar_of_hats"
}
$bodygroup cigar {
blank
studio "cigar"
}
$bodygrouppreset "glasses_fedora_nocigar" {
"glasses" 1
"hats" 2
"cigar" 0
}
This will create a bodygroup preset that, when set, will hide the cigar, set the hat to a fedora, and make the glasses visible.