Choosing Player Models

From Valve Developer Community
Jump to: navigation, search
Русский 简体中文
Note:.kv file redirects here

In Counter-Strike: Global Offensive, custom maps can be configured to use different player models, or a variety of player models, for the Terrorist and Counter-Terrorist teams. These models are specified in a <mapname>.kv file that lives in the Counter-Strike: Global Offensive maps directory.

Creating a .kv file

The .kv file is simply a text file that shares a name with the custom map, with the .txt extension changed to .kv. For example, if there were a custom map called 'de_example.bsp' in the 'Counter-Strike Global Offensive\csgo\maps' folder, then there should be a file called 'de_example.kv' in the same folder.

The .kv file contains a list of key/value pairs formatted similarly to other text files used by the source engine, such as .vmt files for materials.

As can be seen in the below example, it is possible to configure a map to use a specific set of view model arms for each team, as well as a variety of world player models for each team. Unlike in previous Counter-Strike games, the player's model is chosen randomly from this list, instead of allowing the player to choose.

   "name" "Example"
   "t_arms" "models/weapons/t_arms_anarchist.mdl"
   "ct_arms" "models/weapons/ct_arms_fbi.mdl"
      "tm_anarchist" ""
      "tm_anarchist_variantA" ""
      "tm_anarchist_variantB" ""
      "tm_anarchist_variantC" ""
      "tm_anarchist_variantD" ""
      "ctm_swat" ""
      "ctm_swat_variantA" ""
      "ctm_swat_variantB" ""
      "ctm_swat_variantC" ""
      "ctm_swat_variantD" ""
Tip:Use the model viewer to browse the available models. It should be possible to mix and match as much as you like
Tip:After the glove update, it's unnecessary to define the arms model, the engine uses the sleeve model instead.

Model list

FBI		"models/weapons/ct_arms_fbi.mdl"
GIGN		"models/weapons/ct_arms_gign.mdl"
GSG		"models/weapons/ct_arms_gsg9.mdl"
IDF		"models/weapons/ct_arms_idf.mdl"
SAS		"models/weapons/ct_arms_sas.mdl"
SEALS		"models/weapons/ct_arms_st6.mdl" or "models/weapons/ct_arms.mdl"
SWAT		"models/weapons/ct_arms_swat.mdl"
Anarchist	"models/weapons/t_arms_anarchist.mdl"
Balkan		"models/weapons/t_arms_balkan.mdl"
LEET		"models/weapons/t_arms_leet.mdl" or "models/weapons/t_arms.mdl"
Phoenix		"models/weapons/t_arms_phoenix.mdl"
Pirate		"models/weapons/t_arms_pirate.mdl"
Professional	"models/weapons/t_arms_professional.mdl"
Separatist	"models/weapons/t_arms_separatist.mdl"
Heavy Phoenix

Making CT vs CT or T vs T

The .kv can be set up to use models for the wrong team, i.e. 'swat' vs 'fbi'

     "name"              "name_of_the_map"
     "t_arms"            "models/weapons/ct_arms_swat.mdl"
     "ct_arms"           "models/weapons/ct_arms_gign.mdl"
         "ctm_swat"       ""
         "ctm_swat_varianta"  ""
         "ctm_swat_variantb"  ""
         "ctm_swat_variantc"  ""
         "ctm_swat_variantd"  ""
         "ctm_gign"       ""
         "ctm_gign_varianta"  ""
         "ctm_gign_variantb"  ""
         "ctm_gign_variantc"  ""
         "ctm_gign_variantd"  ""

KV File Writer

A gui tool that streamlines setting up and saving a CT vs T .kv

External links

Web-based KV File Generator

A web-based utility that generates a .kv based on user input.

External link

  • To do: What else can the .kv do? The .kv might be involved in setting up the overview for spectating.