Difference between revisions of "Choosing Player Models"

From Valve Developer Community
Jump to: navigation, search
(Model list: Added models that where forgoten from this list.)
(Making CT vs CT or T vs T: Removed the false note, I tested all of them on both teams and they work fine)
Line 166: Line 166:
==Making CT vs CT '''or''' T vs T==
==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'
The .kv can be set up to use models for the wrong team, i.e. 'swat' vs 'fbi'
{{note|CT & T teams have different animations, which may cause models to turn into red ERROR symbols in game}}

Revision as of 12:31, 28 August 2014

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" "de_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

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"

Zombie        "models/weapons/v_tm_professional_arms.mdl"

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

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