"請先幫我按一下"推薦"吧" 謝謝你的大恩大德 首先...
我先說明一下...
這篇文章可能回鍋了... 不過我想可以更完整一點...
首先要用到的東西:
"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"槍的模組名稱 }
___________________________________________________ 這樣就大公告成了 ! 恭喜你又完成了! 給個花或按個推薦吧^^ 原創請勿轉貼。