Character presets.txt
Jump to navigation
Jump to search

Note: This is the version if used only the default character without any changes.
The cut 3 colors feature (one of the screenshots from Lucas Zadrozny's site.
character_presets.txt is a txt file available in Black Mesa, placed in cfg folder. This file describes saved presets for player's default multiplayer characters, used by VGUI to load characters for the Presets section (Qt UI doesn't allow to select character presets). Generated by the game when player saves when clicked Ok, Apply or when the Customize Character menu is closed, Qt UI saves only one character. The file saves following paramaters:
- Preset name - used for preset name for selection.
- Character - character picked by player, described in playermodel_manifest.txt file.
- Skin - number of skin for the character.
- Face - stores values for the face sliders by their IDs, up to 96 supported, counting starts from 0. The values are floating numbers between 0.0 and 1.0.
- Combination Box ID - unique preset ID.
There is also primary, secondary and tertiary RGBA format colors. This is a remnant of a feature that was cut in the public versions of the game, which allowed you to choose 3 colors for different parts for a character.
Code
"character_presets.txt"
{
"Default Character"
{
"character" "mp_scientist_hev"
"skin" "0"
"primary_color" "255 255 255 255"
"secondary_color" "255 255 255 255"
"tertiary_color" "255 255 255 255"
"face"
{
"0" "0.000000"
"1" "0.000000"
"2" "0.000000"
"3" "0.000000"
"4" "0.000000"
"5" "0.000000"
"6" "0.000000"
"7" "0.000000"
"8" "0.000000"
"9" "0.000000"
"10" "0.000000"
"11" "0.000000"
"12" "0.000000"
"13" "0.000000"
"14" "0.000000"
"15" "0.000000"
"16" "0.000000"
"17" "0.000000"
"18" "0.000000"
"19" "0.000000"
"20" "0.000000"
"21" "0.000000"
"22" "0.000000"
"23" "0.000000"
"24" "0.000000"
"25" "0.000000"
"26" "0.000000"
"27" "0.000000"
"28" "0.000000"
"29" "0.000000"
"30" "0.000000"
"31" "0.000000"
"32" "0.000000"
"33" "0.000000"
"34" "0.000000"
"35" "0.000000"
"36" "0.000000"
"37" "0.000000"
"38" "0.000000"
"39" "0.000000"
"40" "0.000000"
"41" "0.000000"
"42" "0.000000"
"43" "0.000000"
"44" "0.000000"
"45" "0.000000"
"46" "0.000000"
"47" "0.000000"
"48" "0.000000"
"49" "0.000000"
"50" "0.000000"
"51" "0.000000"
"52" "0.000000"
"53" "0.000000"
"54" "0.000000"
"55" "0.000000"
"56" "0.000000"
"57" "0.000000"
"58" "0.000000"
"59" "0.000000"
"60" "0.000000"
"61" "0.000000"
"62" "0.000000"
"63" "0.000000"
"64" "0.000000"
"65" "0.000000"
"66" "0.000000"
"67" "0.000000"
"68" "0.000000"
"69" "0.000000"
"70" "0.000000"
"71" "0.000000"
"72" "0.000000"
"73" "0.000000"
"74" "0.000000"
"75" "0.000000"
"76" "0.000000"
"77" "0.000000"
"78" "0.000000"
"79" "0.000000"
"80" "0.000000"
"81" "0.000000"
"82" "0.000000"
"83" "0.000000"
"84" "0.000000"
"85" "0.000000"
"86" "0.000000"
"87" "0.000000"
"88" "0.000000"
"89" "0.000000"
"90" "0.000000"
"91" "0.000000"
"92" "0.000000"
"93" "0.000000"
"94" "0.000000"
"95" "0.000000"
}
"_combobox_id" "0"
}
}