选择玩家模型

From Valve Developer Community
< Zh
Jump to: navigation, search
English (en)Deutsch (de)Polski (pl)Русский (ru)中文 (zh)Translate (Translate)
Note.png注意:.kv 文件在这里 redirects

在反恐精英:全球行动中,玩家可以在制作地图地图时选择给反恐精英和恐怖分子使用一些不同的玩家模型,这些模型需要使用反恐精英:全球行动地图根目录中的<mapname>.kv文件来更改。

创建一个.kv文件

.kv文件只是一个和地图拥有同样名字的普通文本文档,只不过后缀名.txt被改成了.kv,举个例子,假设目录“Counter-Strike Global Offensive\csgo\maps”里有一张玩家自制的地图叫做“de_example.bsp”,那么文件夹里也应该有一个叫”de_example.kv“的文件。

.kv文件包含了一个指定数值的列表,格式与其它起源引擎的游戏文件十分相似,比如包含原料数据的.vmt文件。

就如下列所示,让一张地图给一个队伍指定一种玩家模型并非不可能。不像以前的反恐精英游戏,让玩家自行选择模型,现在的玩家模型是由此文件随机选取的。

"de_example"
{
   "name" "de_example"
   "t_arms" "models/weapons/t_arms_anarchist.mdl"
   "ct_arms" "models/weapons/ct_arms_fbi.mdl"
   "t_models"
   {
      "tm_anarchist" ""
      "tm_anarchist_variantA" ""
      "tm_anarchist_variantB" ""
      "tm_anarchist_variantC" ""
      "tm_anarchist_variantD" ""
   }
   "ct_models"
   {
      "ctm_swat" ""
      "ctm_swat_variantA" ""
      "ctm_swat_variantB" ""
      "ctm_swat_variantC" ""
      "ctm_swat_variantD" ""
   }
}
Tip.png提示:使用模型浏览器来查看对应的模型

模型列表

COUNTER-TERRORIST 反恐精英
FBI 联邦调查局		"models/weapons/ct_arms_fbi.mdl"
	{
		"ctm_fbi"""
		"ctm_fbi_variantA"""
		"ctm_fbi_variantB"""
		"ctm_fbi_variantC"""
		"ctm_fbi_variantD"""
	}
GIGN 法国宪兵特勤队		"models/weapons/ct_arms_gign.mdl"
	{
		"ctm_gign"""
		"ctm_gign_variantA"""
		"ctm_gign_variantB"""
		"ctm_gign_variantC"""
		"ctm_gign_variantD"""
	}
GSG 德国边防大队		"models/weapons/ct_arms_gsg9.mdl"
	{
		"ctm_gsg9"""
		"ctm_gsg9_variantA"""
		"ctm_gsg9_variantB"""
		"ctm_gsg9_variantC"""
		"ctm_gsg9_variantD"""
	}
IDF 以色列国防军		"models/weapons/ct_arms_idf.mdl"
	{
		"ctm_idf"""
		"ctm_idf_variantB"""
		"ctm_idf_variantC"""
		"ctm_idf_variantD"""
		"ctm_idf_variantE"""
		"ctm_idf_variantF"""
	}
SAS 英国皇家空勤队		"models/weapons/ct_arms_sas.mdl"
	{
		"ctm_sas"""
		"ctm_sas_variantA"""
		"ctm_sas_variantB"""
		"ctm_sas_variantC"""
		"ctm_sas_variantD"""
		"ctm_sas_variantE"""
	}
SEALS 海豹突击队		"models/weapons/ct_arms_st6.mdl" or "models/weapons/ct_arms.mdl"
	{
		"ctm_st6"""
		"ctm_st6_variantA"""
		"ctm_st6_variantB"""
		"ctm_st6_variantC"""
		"ctm_st6_variantD"""
	}
SWAT 特种武器战术小组		"models/weapons/ct_arms_swat.mdl"
	{
		"ctm_swat"""
		"ctm_swat_variantA"""
		"ctm_swat_variantB"""
		"ctm_swat_variantC"""
		"ctm_swat_variantD"""
	}

TERRORIST 恐怖分子
Anarchist 无政府主义者	"models/weapons/t_arms_anarchist.mdl"
	{
		"tm_anarchist"""
		"tm_anarchist_variantA"""
		"tm_anarchist_variantB"""
		"tm_anarchist_variantC"""
		"tm_anarchist_variantD"""
	}
Balkan 巴尔干人		"models/weapons/t_arms_balkan.mdl"
	{
		"tm_balkan_variantA"""
		"tm_balkan_variantB"""
		"tm_balkan_variantC"""
		"tm_balkan_variantD"""
		"tm_balkan_variantE"""
	}
LEET 中东联合军		"models/weapons/t_arms_leet.mdl" or "models/weapons/t_arms.mdl"
	{
		"tm_leet_variantA"""
		"tm_leet_variantB"""
		"tm_leet_variantC"""
		"tm_leet_variantD"""
		"tm_leet_variantE"""
	}
Phoenix 凤凰战士		"models/weapons/t_arms_phoenix.mdl"
	{
		"tm_phoenix"""
		"tm_phoenix_variantA"""
		"tm_phoenix_variantB"""
		"tm_phoenix_variantC"""
		"tm_phoenix_variantD"""
	}
Pirate 海盗		"models/weapons/t_arms_pirate.mdl"
	{
		"tm_pirate"""
		"tm_pirate_variantA"""
		"tm_pirate_variantB"""
		"tm_pirate_variantC"""
		"tm_pirate_variantD"""
	}
Professional 专业人士	"models/weapons/t_arms_professional.mdl"
	{
		"tm_professional"""
		"tm_professional_var1"""
		"tm_professional_var2"""
		"tm_professional_var3"""
		"tm_professional_var4"""
	}
Separatist 分裂主义者	"models/weapons/t_arms_separatist.mdl"
	{
		"tm_separatist"""
		"tm_separatist_variantA"""
		"tm_separatist_variantB"""
		"tm_separatist_variantC"""
		"tm_separatist_variantD"""
	}

OTHER MODELS 其它模型
Zombie 僵尸
        {
		"zombie"""
        }

让CT对战CT或者T对战T

.kv可以让队伍使用错误的队伍模型比如“SWAT”对战“FBI”

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

KV文件改写者

可以更改.kv文件的图形界面工具。

外部链接

在线KV文件生成器

可以根据用户输入的数值来生成.kv文件的在线工具。

外部链接

  • 待完善: .kv文件还能用来干什么?它还可以用来设置观察者的全局视角。