"请先帮我按一下"推荐"吧" 谢谢你的大恩大德 首先...
我先说明一下...
这篇文章可能回锅了... 不过我想可以更完整一点...
首先要用到的东西:
"nst_wpn.ini" 路径:
cstrike\addons\amxmodx\configs "NSTWpn_Rifles_1_TER.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_1_CT.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_2_TER.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_2_CT.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_3_TER.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_3_CT.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_4_TER.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_4_CT.res" 路径:
cstrike\resource\UI (路径根本一样) 别介意拉 教学开始: 首先你必须拥有及认识4种你下载到的模组
1. v档 p档 w档 的mdl (路径:\cstrike\models\nst_wpn)
例如v_ak47.mdl. p_ak47.mdl. w_ak47.mdl
2.Tga的买枪图 (路径:\cstrike\gfx\vgui)
例如ak47.tga
这个会出现在有图的菜单上面
3.音效档 Sound Wave档 (路径:\cstrike\sound\weapons)
说明:如果你外加枪的模组,不想用原档的枪声 想要附加的枪声
请改成以下档名 每个都试试看 直到确定枪声
(1):-1 (2):_shoot1 (3):1
例如:
A: "ak47-1" 不行就改成" ak47_shoot1" 如果在不行 就改成 "ak471"
B: "m4a1gold-1" 不行就改成 "m4a1gold_shoot1" 如果在不行 就改成" m4a1gold1"
备注:不一定要照顺序!!
4.Spr档 hud (路径:\cstrike\sprites\nst_wpn)
说明:请先找到"hud"(路径:\cstrike\sprites)
开启hud 拉到"// sprites nst wpn"
然后空一格打上你枪枝的"英文名子"
打上里面给的(X,Y)
例如"d_mp7a1 640 nst_wpn/640hud16 143 128 48 16"
接着...教学就..开始吧...
打开nst_wpn.ini 会发现很多的英文-你必须先了解英文的内容: [type]=枪的类型
1是一般的枪枝 (例如说:M4A1 就只是个单纯的M4A1并不会有特殊射击)
2是按T改模式的枪枝
3是按右用小刀攻击的枪枝
4是按T可改成榴炮or只可射击榴炮的枪枝
5是可以一次装完弹药的散弹枪,无须慢慢的装
6是按右射出雷比亚的射线
7是要先预热的枪 例如:火神机枪
[name]=枪的名子
[model]=枪的模组名称 意思是说:必须把枪的模组V.P.W放在cstrike\models\nst_wpn里
[wchange]枪的类型=例如枪枝如果原本设在USP 你就必须打USP的类型代码
类型代码:
1 - P228
3 - SCOUT
4 - HEGRENADE
5 - XM1014
7 - MAC10
8 - AUG
10 - ELITE
11 - FIVESEVEN
12 - UMP45
13 - SG550
14 - GALIL
15 - FAMAS
16 - USP
17 - GLOCK18
18 - AWP
19 - MP5NAVY
20 - M249
21 - M3
22 - M4A1
23 - TMP
24 - G3SG1
26 - DEAGLE
27 - SG552
28 - AK47
29 - KNIFE
30 - P90
(类型代码转贴至
http://bbs.mychat.to/reads.php?tid=908311&keyword=cso-nst)
[damage]=攻击力/ x倍 1:原本的攻击力 如果改1.2 就是原来的1.2倍
[speed]=射速 枪的射击速度 数值越大 射击速度越慢 1:为原本的射速
[zoom]=狙击镜 0/没有 1/近镜 2/远镜 3/特殊镜 PS:特殊镜须由sight_model 更改
[clip]=子弹数量
[ammo]备用子弹数量
[recoil]=后座力 1:原本的后座力 如果改1.2 就是原来的1.2倍
[gravity]=重力 一般为:250(正常速度)
[knockback]=击退力 也就是说 如果设越高 敌方就飞的越远
[reload]=换子弹的时间
[deploy]=枪枝拿出来的速度 1:原本的速度 如果改1.2 就是原来的1.2倍
[fastrun]=能不能跑 0/不能 1/能 PS:跑的热键"Caps Lock"
[sight_time]=换狙击镜需要的时间
[sight_model]=换狙击镜的模组名称
[cost]=枪枝的钱
[sound]1= 改成0就是原本的声音 1就是另外的声音
[team]=限定队伍购买 1/歹徒才能买 2/警察才能买 0/都能买
[buy]=取得方法 1/用钱买 0/特殊方法得到
_______________________________________________________________
了解上面的英文之后 先选一把你想加入的枪枝吧
并且在" ; Rifles " 下面空一格
然后新增一把枪枝 如上图 例如我要增加一把"黄金AK47" 那我就新增一行: [type]1[name]黄金CV47[model]ak47gold[wchange]28[damage]1.2[speed]1[zoom]0[clip]30[ammo]90[recoil]0.8[gravity]221[knockback]0[reload]0[deploy]0[fastrun]0[sight_time]0[sight_model][cost]2750[sound]0[team]1[buy]1 然后贴到图片的红色框框 就可以了!! 成功图片(蓝色框框) 接下来是加枪到案"B"的时候的买枪图 首先先到cstrike\resource\UI 我们首先先看到一张范例图 是否有看到蓝色的框框呢?
没错 你说对了! 那是我新增加的!!
现在就让我教教你怎么改吧!
我相信很多人在红色框框都是只要到3
但是要如何到4呢?
我相信很多人都有疑问~
只要新增2个档案就可以噜!!
PS:繁化可能会导致失败而无法增加至第4格 首先先打开 (CT是警察 TER是歹徒) "NSTWpn_Rifles_4_TER.res" 路径:
cstrike\resource\UI "NSTWpn_Rifles_4_CT.res" 路径:
cstrike\resource\UI 有附载点 打开"NSTWpn_Rifles_4_TER.res" 会看到以下内容
___________________________________________________ "Resource/UI/NSTWpn_Rifles_4_TER.res"
{
"NSTWpn_List"
{
"ControlName" "WizardSubPanel"
"fieldName" "NSTWpn_List"
"xpos" "50"
"ypos" "10"
"wide" "552"
"tall" "448"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"Title"
{
"ControlName" "Label"
"fieldName" "Title"
"xpos" "76"
"ypos" "22"
"wide" "500"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_titlelabel_rifles"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"font" "Title"
"wrap" "0"
}
"ItemInfo"
{
"ControlName" "Panel"
"fieldName" "ItemInfo"
"xpos" "0"
"ypos" "0"
"wide" "0"
"tall" "0"
"autoResize" "3"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
// #####################################################
// ----------------------- PAGES -----------------------
// #####################################################
"page-1-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-1-bg"
"xpos" "325"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-1-cmd"
{
"ControlName" "Button"
"fieldName" "page-1-cmd"
"xpos" "325"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page1"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_1.res"
"Default" "1"
}
"page-2-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-2-bg"
"xpos" "360"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-2-cmd"
{
"ControlName" "Button"
"fieldName" "page-2-cmd"
"xpos" "360"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page2"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_2.res"
"Default" "1"
}
"page-3-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-3-bg"
"xpos" "395"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-3-cmd"
{
"ControlName" "Button"
"fieldName" "page-3-cmd"
"xpos" "395"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page3"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_3.res"
"Default" "1"
}
"page-4-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-4-bg"
"xpos" "425"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-4-cmd"
{
"ControlName" "Button"
"fieldName" "page-4-cmd"
"xpos" "425"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page4"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_4.res"
"Default" "1"
}
// #####################################################
// ------------------- WEAPONS LIST -------------------
// #####################################################
// #######################################################################
"CancelButton-bg"
{
"ControlName" "ImagePanel"
"fieldName" "CancelButton-bg"
"xpos" "474"
"ypos" "40"
"wide" "138"
"tall" "26"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/blank_slot"
"scaleImage" "1"
}
"CancelButton-key"
{
"ControlName" "ImagePanel"
"fieldName" "CancelButton-key"
"xpos" "476"
"ypos" "43"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/keyboard"
"scaleImage" "1"
}
"CancelButton"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "CancelButton"
"xpos" "474"
"ypos" "40"
"wide" "138"
"tall" "26"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_Cancel"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"Command" "vguicancel"
"Default" "1"
}
}
___________________________________________________ 打开"NSTWpn_Rifles_4_CT.res" 会看到以下内容
___________________________________________________ "Resource/UI/NSTWpn_Rifles_4_CT.res"
{
"NSTWpn_List"
{
"ControlName" "WizardSubPanel"
"fieldName" "NSTWpn_List"
"xpos" "50"
"ypos" "10"
"wide" "552"
"tall" "448"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"Title"
{
"ControlName" "Label"
"fieldName" "Title"
"xpos" "76"
"ypos" "22"
"wide" "500"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_titlelabel_rifles"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"font" "Title"
"wrap" "0"
}
"ItemInfo"
{
"ControlName" "Panel"
"fieldName" "ItemInfo"
"xpos" "0"
"ypos" "0"
"wide" "0"
"tall" "0"
"autoResize" "3"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
// #####################################################
// ----------------------- PAGES -----------------------
// #####################################################
"page-1-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-1-bg"
"xpos" "325"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-1-cmd"
{
"ControlName" "Button"
"fieldName" "page-1-cmd"
"xpos" "325"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page1"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_1.res"
"Default" "1"
}
"page-2-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-2-bg"
"xpos" "360"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-2-cmd"
{
"ControlName" "Button"
"fieldName" "page-2-cmd"
"xpos" "360"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page2"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_2.res"
"Default" "1"
}
"page-3-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-3-bg"
"xpos" "395"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-3-cmd"
{
"ControlName" "Button"
"fieldName" "page-3-cmd"
"xpos" "395"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page3"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_3.res"
"Default" "1"
}
"page-4-bg"
{
"ControlName" "ImagePanel"
"fieldName" "page-4-bg"
"xpos" "425"
"ypos" "46"
"wide" "25"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/page"
"scaleImage" "1"
}
"page-4-cmd"
{
"ControlName" "Button"
"fieldName" "page-4-cmd"
"xpos" "425"
"ypos" "46"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_page4"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"Command" "Resource/UI/NSTWpn_Rifles_4.res"
"Default" "1"
}
// #####################################################
// ------------------- WEAPONS LIST -------------------
// #####################################################
// #######################################################################
"CancelButton-bg"
{
"ControlName" "ImagePanel"
"fieldName" "CancelButton-bg"
"xpos" "474"
"ypos" "40"
"wide" "138"
"tall" "26"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/blank_slot"
"scaleImage" "1"
}
"CancelButton-key"
{
"ControlName" "ImagePanel"
"fieldName" "CancelButton-key"
"xpos" "476"
"ypos" "43"
"wide" "20"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/keyboard"
"scaleImage" "1"
}
"CancelButton"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "CancelButton"
"xpos" "474"
"ypos" "40"
"wide" "138"
"tall" "26"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#csonst_Cancel"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"Command" "vguicancel"
"Default" "1"
}
}
___________________________________________________ 如果想新增在警察就找CT
如果想新增在歹徒就找TER
现在我们来2边都增加一把枪
新增一把:黄金CV47好了
在红色框框新增以下文字:
(蓝色底线不要复制,红色文字不要复制) ___________________________________________________ // ---------------------- weapon 1 ----------------------
指在商店中的第几把武器。 "1-weapon1-bg"
{
"ControlName" "ImagePanel"
"fieldName" "1-weapon1-bg"
"xpos" "30"
"ypos" "85"
"wide" "138"
"tall" "63"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/item_bg"
"scaleImage" "1"
}
"1-weapon1-bgwpn"
{
"ControlName" "ImagePanel"
"fieldName" "1-weapon1-bgwpn"
"xpos" "30"
"ypos" "85"
"wide" "138"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "resource/control/item_bgwpn"
"scaleImage" "1"
}
"1-weapon1-img"
{
"ControlName" "ImagePanel"
"fieldName" "1-weapon1-img"
"xpos" "30"
"ypos" "85"
"wide" "138"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
// 1-weapon1-img
"image" "gfx/vgui/
黄金CV47"
指在"nst_wpn.ini"枪的模组名称 "scaleImage" "1"
}
"1-weapon1-team"
{
"ControlName" "ImagePanel"
"fieldName" "1-weapon1-team"
"xpos" "140"
"ypos" "126"
"wide" "26"
"tall" "7"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
// 1-weapon1-team
"image" "resource/control/team0"
"scaleImage" "1"
}
"1-weapon1-name"
{
"ControlName" "Label"
"fieldName" "1-weapon1-name"
"xpos" "30"
"ypos" "133"
"wide" "138"
"tall" "15"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
// 1-weapon1-name
"labelText" "黄金CV47 - 3500$"
指枪的名称和它的价钱 "textAlignment" "center"
"dulltext" "1"
"brighttext" "0"
}
"1-weapon1-bottom"
{
"ControlName" "Button"
"fieldName" "1-weapon1-bottom"
"xpos" "30"
"ypos" "85"
"wide" "138"
"tall" "63"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
// 1-weapon1-bottom
"command" "nst_buy_wpn Apache"
指在"nst_wpn.ini"枪的模组名称 }
___________________________________________________ 这样就大公告成了 ! 恭喜你又完成了! 给个花或按个推荐吧^^ 原创请勿转贴。