615 lines
52 KiB
Lua
615 lines
52 KiB
Lua
|
|
|||
|
-- 武器表
|
|||
|
|
|||
|
--[101001] = {
|
|||
|
-- ItemName = "AKM突击步枪",
|
|||
|
-- Desc = "广泛装备世界各地武装力量的突击步枪。",
|
|||
|
-- ItemSubId = 101,
|
|||
|
-- TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle,
|
|||
|
-- IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_AKM.T_AKM'),
|
|||
|
--},
|
|||
|
WeaponTable = { [101001] = { ItemName = "AKM突击步枪", Desc = "广泛装备世界各地武装力量的突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_AKM.T_AKM'), }, [101002] = { ItemName = "M16A4突击步枪", Desc = "连发突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_M16A4.T_M16A4'), }, [101003] = { ItemName = "SCAR-L突击步枪", Desc = "现代突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_SCAR.T_SCAR'), }, [101004] = { ItemName = "M416突击步枪", Desc = "德国品质,坚若磐石。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_M416.T_M416'), }, [101005] = { ItemName = "GROZA突击步枪", Desc = "一款俄罗斯的全自动无托突击步枪,使用7.62毫米弹药。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Groza.T_Groza'), }, [101006] = { ItemName = "AUG突击步枪", Desc = "现代突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_AUG.T_AUG'), }, [101007] = { ItemName = "QBZ突击步枪", Desc = "现代无托突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_QBZ.T_QBZ'), }, [101008] = { ItemName = "M762突击步枪", Desc = "波兰制现代突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_M762.T_M762'), }, [101009] = { ItemName = "Mk47突击步枪", Desc = "拥有单发和两连发开火模式的现代突击步枪。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Mk14.T_Mk14'), }, [101010] = { ItemName = "G36C突击步枪", Desc = "德国品质,坚若磐石。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_G36C.T_G36C'), }, [101012] = { ItemName = "蜜獾突击步枪", Desc = "现代个人防卫武器,近距离战斗力更强。", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [102001] = { ItemName = "UZI冲锋枪", Desc = "火力全开,但是别浪过头。", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_UZI.T_UZI'), }, [102002] = { ItemName = "UMP45冲锋枪", Desc = "使用.45弹药的现代冲锋枪。", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_UMP45.T_UMP45'), }, [102003] = { ItemName = "Vector冲锋枪", Desc = "使用延迟后座式枪机,发射9mm子弹手枪子弹的现代冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Vector.T_Vector'), }, [102004] = { ItemName = "汤姆逊冲锋枪", Desc = "享誉全球的冲锋枪。", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_TMX.T_TMX'), }, [102005] = { ItemName = "野牛冲锋枪", Desc = "压制神器。", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_YN.T_YN'), }, [102007] = { ItemName = "MP5K冲锋枪", Desc = "知名度极高的军警专用冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.E
|
|||
|
|
|||
|
--["AKM突击步枪"] = { ItemId = 101001, },
|
|||
|
NamedWeapon = { ["AKM突击步枪"] = { ItemId = 101001, }, ["M16A4突击步枪"] = { ItemId = 101002, }, ["SCAR-L突击步枪"] = { ItemId = 101003, }, ["M416突击步枪"] = { ItemId = 101004, }, ["GROZA突击步枪"] = { ItemId = 101005, }, ["AUG突击步枪"] = { ItemId = 101006, }, ["QBZ突击步枪"] = { ItemId = 101007, }, ["M762突击步枪"] = { ItemId = 101008, }, ["Mk47突击步枪"] = { ItemId = 101009, }, ["G36C突击步枪"] = { ItemId = 101010, }, ["蜜獾突击步枪"] = { ItemId = 101012, }, ["UZI冲锋枪"] = { ItemId = 102001, }, ["UMP45冲锋枪"] = { ItemId = 102002, }, ["Vector冲锋枪"] = { ItemId = 102003, }, ["汤姆逊冲锋枪"] = { ItemId = 102004, }, ["野牛冲锋枪"] = { ItemId = 102005, }, ["MP5K冲锋枪"] = { ItemId = 102007, }, ["P90冲锋枪"] = { ItemId = 102105, }, ["Kar98K狙击枪"] = { ItemId = 103001, }, ["M24狙击枪"] = { ItemId = 103002, }, ["AWM狙击枪"] = { ItemId = 103003, }, ["SKS射手步枪"] = { ItemId = 103004, }, ["VSS射手步枪"] = { ItemId = 103005, }, ["Mini14射手步枪"] = { ItemId = 103006, }, ["Mk14射手步枪"] = { ItemId = 103007, }, ["Win94狙击枪"] = { ItemId = 103008, }, ["SLR射手步枪"] = { ItemId = 103009, }, ["QBU射手步枪"] = { ItemId = 103010, }, ["莫辛纳甘狙击枪"] = { ItemId = 103011, }, ["Mk12狙击枪"] = { ItemId = 103100, }, ["Kar98K狙击枪"] = { ItemId = 103901, }, ["M24狙击枪"] = { ItemId = 103902, }, ["AWM狙击枪"] = { ItemId = 103903, }, ["S686霰弹枪"] = { ItemId = 104001, }, ["S1897霰弹枪"] = { ItemId = 104002, }, ["S12K霰弹枪"] = { ItemId = 104003, }, ["DBS霰弹枪"] = { ItemId = 104004, }, ["SPAS-12霰弹枪"] = { ItemId = 104100, }, ["M249轻机枪"] = { ItemId = 105001, }, ["DP-28轻机枪"] = { ItemId = 105002, }, ["M134重机枪"] = { ItemId = 105003, }, ["P92手枪"] = { ItemId = 106001, }, ["P1911手枪"] = { ItemId = 106002, }, ["R1895手枪"] = { ItemId = 106003, }, ["P18C手枪"] = { ItemId = 106004, }, ["R45手枪"] = { ItemId = 106005, }, ["短管霰弹枪"] = { ItemId = 106006, }, ["信号枪"] = { ItemId = 106007, }, ["蝎式手枪"] = { ItemId = 106008, }, ["沙漠之鹰手枪"] = { ItemId = 106010, }, ["乱斗手枪"] = { ItemId = 106107, }, ["十字弩"] = { ItemId = 107001, }, ["RPG-7火箭筒"] = { ItemId = 107002, }, ["铁拳火箭筒"] = { ItemId = 107005, }, ["AT4-A激光导弹"] = { ItemId = 107094, }, ["MGL榴弹发射器"] = { ItemId = 107098, }, ["M3E1-A导弹"] = { ItemId = 107099, }, ["M202四联火箭筒"] = { ItemId = 107905, }, ["大砍刀"] = { ItemId = 108001, }, ["撬棍"] = { ItemId = 108002, }, ["镰刀"] = { ItemId = 108003, }, ["平底锅"] = { ItemId = 108004, }, ["爆破投射器"] = { ItemId = 190008, }, ["单发蓄力能量步枪"] = { ItemId = 190009, }, ["电击枪"] = { ItemId = 190010, }, ["激光步枪"] = { ItemId = 190011, } }
|
|||
|
|
|||
|
-- 射击枪械类型
|
|||
|
ShootWeaponEnums = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2, ESurviveWeaponPropSlot.SWPS_SubShootWeapon, };
|
|||
|
|
|||
|
-- 投掷武器类型
|
|||
|
ThrownObjWeaponEnums = { ESurviveWeaponPropSlot.SWPS_MeleeWeapon, }
|
|||
|
|
|||
|
-- 瞄准镜
|
|||
|
Telescopes = { 203001, 203002, 203003, 203004, 203005, };
|
|||
|
|
|||
|
-- 弹匣
|
|||
|
Magazines = { 204003, 204006, 204009, 204010, 204013, 205004, };
|
|||
|
|
|||
|
-- 配件
|
|||
|
EWeaponPartType = {
|
|||
|
Muzzle = 1,
|
|||
|
Grip = 2,
|
|||
|
Telescope = 3,
|
|||
|
Magazine = 4,
|
|||
|
ButtStock = 5,
|
|||
|
SubTelescope = 6
|
|||
|
};
|
|||
|
|
|||
|
WeaponTypeName = {
|
|||
|
[EWeaponPartType.Muzzle] = { Chinese = "枪口", English = "Muzzle", SubId = 201, },
|
|||
|
[EWeaponPartType.Grip] = { Chinese = "握把", English = "Grip", SubId = 202, },
|
|||
|
[EWeaponPartType.Telescope] = { Chinese = "瞄准镜", English = "Telescope", SubId = 203, },
|
|||
|
[EWeaponPartType.Magazine] = { Chinese = "弹匣", English = "Magazine", SubId = 204, },
|
|||
|
[EWeaponPartType.ButtStock] = { Chinese = "枪托", English = "ButtStock", SubId = 205, },
|
|||
|
[EWeaponPartType.SubTelescope] = { Chinese = "侧边瞄准镜", English = "SubTelescope", SubId = 205, },
|
|||
|
};
|
|||
|
|
|||
|
WeaponTypeParts = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201001, 201002, 201003, 201004, 201005, 201006, 201007, 201008, 201009, 201010, 201011, 201012, 201050, 201051, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, 203018, 203023, 203024, 203104, },
|
|||
|
[EWeaponPartType.Magazine] = { 204001, 204002, 204003, 204004, 204005, 204006, 204007, 204008, 204009, 204010, 204011, 204012, 204013, 204014, 204015, 204016, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205001, 205002, 205003, 205004, },
|
|||
|
};
|
|||
|
|
|||
|
--武器配件 [ID] = { ID = int, Type = EWeaponPartType, Name = string, Alias = string,IconPath = string, },
|
|||
|
WeaponParts = { [201001] = { ID = 201001, Type = EWeaponPartType.Muzzle, Name = "霰弹枪收束器", Alias = "霰弹枪收束器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Choke.Icon_QK_Choke", }, [201002] = { ID = 201002, Type = EWeaponPartType.Muzzle, Name = "枪口补偿器(冲锋枪)", Alias = "冲锋枪补偿器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Mid_Compensator.Icon_QK_Mid_Compensator", }, [201003] = { ID = 201003, Type = EWeaponPartType.Muzzle, Name = "枪口补偿器(狙击枪)", Alias = "狙击枪补偿器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Sniper_Compensator.Icon_QK_Sniper_Compensator", }, [201004] = { ID = 201004, Type = EWeaponPartType.Muzzle, Name = "消焰器(冲锋枪)", Alias = "冲锋枪消焰器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Mid_FlashHider.Icon_QK_Mid_FlashHider", }, [201005] = { ID = 201005, Type = EWeaponPartType.Muzzle, Name = "消焰器(狙击枪)", Alias = "狙击枪消焰器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Sniper_FlashHider.Icon_QK_Sniper_FlashHider", }, [201006] = { ID = 201006, Type = EWeaponPartType.Muzzle, Name = "消音器(冲锋枪,手枪)", Alias = "冲锋枪消音器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Mid_Suppressor.Icon_QK_Mid_Suppressor", }, [201007] = { ID = 201007, Type = EWeaponPartType.Muzzle, Name = "消音器(狙击枪)", Alias = "狙击枪消音器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Sniper_Suppressor.Icon_QK_Sniper_Suppressor", }, [201008] = { ID = 201008, Type = EWeaponPartType.Muzzle, Name = "消音器(手枪)", Alias = "手枪消音器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Small_Suppressor.Icon_QK_Small_Suppressor", }, [201009] = { ID = 201009, Type = EWeaponPartType.Muzzle, Name = "枪口补偿器(步枪)", Alias = "步枪补偿器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Large_Compensator.Icon_QK_Large_Compensator", }, [201010] = { ID = 201010, Type = EWeaponPartType.Muzzle, Name = "消焰器(步枪)", Alias = "步枪消焰器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Large_FlashHider.Icon_QK_Large_FlashHider", }, [201011] = { ID = 201011, Type = EWeaponPartType.Muzzle, Name = "消音器(步枪)", Alias = "步枪消音器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Large_Suppressor.Icon_QK_Large_Suppressor", }, [201012] = { ID = 201012, Type = EWeaponPartType.Muzzle, Name = "鸭嘴枪口(霰弹枪)", Alias = "霰弹枪鸭嘴枪口", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_DuckBill.Icon_QK_DuckBill", }, [201050] = { ID = 201050, Type = EWeaponPartType.Muzzle, Name = "延长枪管(冲锋枪)", Alias = "冲锋枪延长枪管", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Small_ExtendedBarrel.Icon_QK_Small_ExtendedBarrel", }, [201051] = { ID = 201051, Type = EWeaponPartType.Muzzle, Name = "延长枪管(步枪,狙击枪)", Alias = "步枪延长枪管", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QK_Large_ExtendedBarrel.Icon_QK_Large_ExtendedBarrel", }, [202001] = { ID = 202001, Type = EWeaponPartType.Grip, Name = "直角前握把", Alias = "直角前握把", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_WB_Angled.Icon_WB_Angled", }, [202002] = { ID = 202002, Type = EWeaponPartType.Grip, Name = "垂直握把", Alias = "垂直握把", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_WB_Vertical.Icon_WB_Vertical", }, [202004] = { ID = 202004, Type = EWeaponPartType.Grip, Name = "轻型握把", Alias = "轻型握把", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_WB_LightGrip.Icon_WB_LightGrip", }, [202005] = { ID = 202005, Type = EWeaponPartType.Grip, Name = "半截式握把", Alias = "半截式握把", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_WB_HalfGrip.Icon_WB_HalfGrip", }, [202006] = { ID = 202006, Type = EWeaponPartType.Grip, Name = "拇指握把", Alias = "拇指握把", IconPath = "/Game/Arts/UI/Ta
|
|||
|
|
|||
|
NamedWeaponParts = {
|
|||
|
-- 瞄准镜
|
|||
|
["红点瞄准镜"] = { ItemId = 203001, }, ["全息瞄准镜"] = { ItemId = 203002, }, ["2倍 瞄准镜"] = { ItemId = 203003, }, ["4倍 瞄准镜"] = { ItemId = 203004, }, ["8倍 瞄准镜"] = { ItemId = 203005, },
|
|||
|
|
|||
|
-- 扩容弹匣
|
|||
|
["快速扩容弹匣(手枪)"] = { ItemId = 204003, }, ["快速扩容弹匣(冲锋枪,手枪)"] = { ItemId = 204006, }, ["快速扩容弹匣(狙击枪)"] = { ItemId = 204009, }, ["子弹袋(霰弹枪)"] = { ItemId = 204010, }, ["快速扩容弹匣(步枪,机枪)"] = { ItemId = 204013, }, ["箭袋(十字弩)"] = { ItemId = 205004, },
|
|||
|
};
|
|||
|
|
|||
|
-- 武器套装表
|
|||
|
---@type table<int32, table<EWeaponPartType, table<int32, int32>>>
|
|||
|
WeaponSuits = {
|
|||
|
-- AKM突击步枪
|
|||
|
[101001] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- M16A4突击步枪
|
|||
|
[101002] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011 },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205002 },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- SCAR-L突击步枪
|
|||
|
[101003] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- M416突击步枪
|
|||
|
[101004] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011 },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205002, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- GROZA突击步枪
|
|||
|
[101005] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
},
|
|||
|
-- AUG突击步枪
|
|||
|
[101006] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- QBZ突击步枪
|
|||
|
[101007] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- M762突击步枪
|
|||
|
[101008] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011 },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204012, 204011 },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- Mk47突击步枪
|
|||
|
[101009] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204012, 204011 },
|
|||
|
[EWeaponPartType.ButtStock] = { 205002, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- G36C突击步枪
|
|||
|
[101010] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204012, 204011 },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- AC-VAL突击步枪
|
|||
|
[101011] = {
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204012, 204011 },
|
|||
|
},
|
|||
|
-- 蜜獾突击步枪
|
|||
|
[101012] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011 },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204012, 204011 },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- FAMAS突击步枪
|
|||
|
[101013] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011 },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204012, 204011 },
|
|||
|
},
|
|||
|
|
|||
|
-- UZI冲锋枪
|
|||
|
[102001] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205001 },
|
|||
|
},
|
|||
|
-- UMP45冲锋枪
|
|||
|
[102002] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- Vector冲锋枪
|
|||
|
[102003] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
[EWeaponPartType.Grip] = { 202002, 202004, 202005, 202007, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205002, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- 汤姆逊冲锋枪
|
|||
|
[102004] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202002, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
},
|
|||
|
-- 野牛冲锋枪
|
|||
|
[102005] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- MP5K冲锋枪
|
|||
|
[102007] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205002, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- AKS-74U冲锋枪
|
|||
|
[102008] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
},
|
|||
|
-- P90冲锋枪
|
|||
|
[102105] = { },
|
|||
|
|
|||
|
-- Kar98K狙击枪
|
|||
|
[103001] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007 },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, 204014, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
[103901] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007 },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.ButtStock] = { 204014, 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- M24狙击枪
|
|||
|
[103002] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
[103902] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- AWM狙击枪
|
|||
|
[103003] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
[103903] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- AMR狙击枪
|
|||
|
[103012] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
},
|
|||
|
-- M200狙击枪
|
|||
|
[103015] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
|
|||
|
-- SKS射手步枪
|
|||
|
[103004] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, 204014, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- VSS射手步枪
|
|||
|
[103005] = {
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
},
|
|||
|
-- Mini14射手步枪
|
|||
|
[103006] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- Mk14射手步枪
|
|||
|
[103007] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- Win94狙击枪
|
|||
|
[103008] = {
|
|||
|
[EWeaponPartType.ButtStock] = { 204014 },
|
|||
|
},
|
|||
|
-- SLR射手步枪
|
|||
|
[103009] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- QBU射手步枪
|
|||
|
[103010] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- 莫辛纳甘狙击枪
|
|||
|
[103011] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 },
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007 },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, 204014, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- Mk12射手步枪
|
|||
|
[103100] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- Mk417射手步枪
|
|||
|
[103013] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- MK20-H射手步枪
|
|||
|
[103014] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201003, 201005, 201007, 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204009, 204007, 204008, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, 202007, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205003, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
|
|||
|
-- S686霰弹枪
|
|||
|
[104001] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201001, },
|
|||
|
[EWeaponPartType.ButtStock] = { 204014, },
|
|||
|
},
|
|||
|
-- S1897霰弹枪
|
|||
|
[104002] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201001, 201012, },
|
|||
|
[EWeaponPartType.Magazine] = { 204017, },
|
|||
|
[EWeaponPartType.ButtStock] = { 204014, },
|
|||
|
},
|
|||
|
-- S12K霰弹枪
|
|||
|
[104003] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, 201012, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- DBS霰弹枪
|
|||
|
[104004] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204017, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- AA12-G霰弹枪
|
|||
|
[104005] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201009, 201010, 201011, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
},
|
|||
|
-- SPAS-12霰弹枪
|
|||
|
[104100] = {
|
|||
|
[EWeaponPartType.Magazine] = { 204017, },
|
|||
|
},
|
|||
|
|
|||
|
-- M249轻机枪
|
|||
|
[105001] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.ButtStock] = { 205002 },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
-- DP-28轻机枪
|
|||
|
[105002] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
},
|
|||
|
-- M134重机枪
|
|||
|
[105003] = {},
|
|||
|
-- MG3轻机枪
|
|||
|
[105010] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
},
|
|||
|
-- PKM轻机枪
|
|||
|
[105012] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, },
|
|||
|
[EWeaponPartType.Magazine] = { 204013, 204011, 204012, },
|
|||
|
[EWeaponPartType.Grip] = { 202001, 202002, },
|
|||
|
[EWeaponPartType.SubTelescope] = { 203018, },
|
|||
|
},
|
|||
|
|
|||
|
-- P92手枪
|
|||
|
[106001] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202007, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204001, 204002, },
|
|||
|
},
|
|||
|
-- P1911手枪
|
|||
|
[106002] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202007, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204001, 204002, },
|
|||
|
},
|
|||
|
-- R1895手枪
|
|||
|
[106003] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201006, }
|
|||
|
},
|
|||
|
-- P18C手枪
|
|||
|
[106004] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202007, },
|
|||
|
[EWeaponPartType.Magazine] = { 204005, }
|
|||
|
},
|
|||
|
-- R45手枪
|
|||
|
[106005] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Grip] = { 202007, },
|
|||
|
},
|
|||
|
-- 短管霰弹枪
|
|||
|
[106006] = {
|
|||
|
[EWeaponPartType.Muzzle] = { 201001 }
|
|||
|
},
|
|||
|
-- 蝎式手枪
|
|||
|
[106008] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201006, },
|
|||
|
[EWeaponPartType.Grip] = { 202002, 202004, 202005, 202007 },
|
|||
|
[EWeaponPartType.Magazine] = { 204004, }, -- 只有这个
|
|||
|
[EWeaponPartType.ButtStock] = { 205001 }
|
|||
|
},
|
|||
|
-- 沙漠之鹰手枪
|
|||
|
[106010] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
[EWeaponPartType.Grip] = { 202007 }
|
|||
|
},
|
|||
|
-- TMP-9手枪
|
|||
|
[106011] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, },
|
|||
|
[EWeaponPartType.Magazine] = { 204006, 204004, 204005, },
|
|||
|
[EWeaponPartType.Muzzle] = { 201002, 201004, 201006, },
|
|||
|
},
|
|||
|
-- 乱斗手枪
|
|||
|
[106107] = {},
|
|||
|
|
|||
|
-- 十字弩
|
|||
|
[107001] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, },
|
|||
|
[EWeaponPartType.Grip] = { 205004, },
|
|||
|
},
|
|||
|
-- 战术弩
|
|||
|
[107006] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, },
|
|||
|
[EWeaponPartType.Grip] = { 205004, },
|
|||
|
},
|
|||
|
-- 燃点复合弓
|
|||
|
[107008] = {
|
|||
|
[EWeaponPartType.Telescope] = { 203001, 203003, 203014, },
|
|||
|
},
|
|||
|
|
|||
|
-- RPG-7火箭弹
|
|||
|
[107002] = {},
|
|||
|
-- 铁拳火箭筒
|
|||
|
[107005] = {},
|
|||
|
|
|||
|
|
|||
|
-- 大砍刀
|
|||
|
[108001] = {},
|
|||
|
-- 撬棍
|
|||
|
[108002] = {},
|
|||
|
-- 镰刀
|
|||
|
[108003] = {},
|
|||
|
-- 平底锅
|
|||
|
[108004] = {}
|
|||
|
};
|
|||
|
|
|||
|
WeaponNameTable = {
|
|||
|
[EWeaponTypeNew.EWeaponTypeNew_Other] = { Chinese = "其他", English = "Other", }, [EWeaponTypeNew.EWeaponTypeNew_Rifle] = { Chinese = "步枪", English = "Rifle", }, [EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper] = { Chinese = "单发狙", English = "SingleShotSniper", }, [EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper] = { Chinese = "连发狙", English = "BurstShotSniper", }, [EWeaponTypeNew.EWeaponTypeNew_Submachine] = { Chinese = "冲锋枪", English = "Submachine", }, [EWeaponTypeNew.EWeaponTypeNew_ShotGun] = { Chinese = "霰弹枪", English = "ShotGun", }, [EWeaponTypeNew.EWeaponTypeNew_MachineGun] = { Chinese = "机枪", English = "MachineGun", }, [EWeaponTypeNew.EWeaponTypeNew_Pistol] = { Chinese = "手枪", English = "Pistol", }, [EWeaponTypeNew.EWeaponTypeNew_Melee] = { Chinese = "近战武器", English = "Melee", }, [EWeaponTypeNew.EWeaponTypeNew_Crossbow] = { Chinese = "弓箭", English = "Crossbow", }, [EWeaponTypeNew.EWeaponTypeNew_ThrownObj] = { Chinese = "投掷物", English = "ThrownObj", },
|
|||
|
};
|
|||
|
|
|||
|
|
|||
|
--- 武器对应的子弹ID
|
|||
|
WeaponAmmunitionItem = {
|
|||
|
[101001] = 302001, [101002] = 303001, [101003] = 303001, [101004] = 303001, [101005] = 302001, [101006] = 303001, [101007] = 303001, [101008] = 302001, [101009] = 302001, [101010] = 302001, [101012] = 302001, [102001] = 301001, [102002] = 305001, [102003] = 301001, [102004] = 305001, [102005] = 301001, [102007] = 301001, [102105] = 301002, [103001] = 302001, [103002] = 302001, [103003] = 306001, [103004] = 302001, [103005] = 301001, [103006] = 303001, [103007] = 302001, [103008] = 305001, [103009] = 302001, [103010] = 303001, [103011] = 302001, [104001] = 304001, [104002] = 304001, [104003] = 304001, [104004] = 304001, [104100] = 304001, [105001] = 303001, [105002] = 302001, [105003] = 302001, [106001] = 301001, [106002] = 305001, [106003] = 302001, [106004] = 301001, [106005] = 305001, [106006] = 304001, [106008] = 301001, [106010] = 305001, [107001] = 307001, [107002] = 307002, [107094] = 307002, [107099] = 307002, [107905] = 307002,
|
|||
|
[190008] = 307102, [190009] = 307100, [190010] = 307103, [190011] = 307101,
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
--- 推荐武器配置
|
|||
|
WeaponTable.RecommendedWeaponParts = {
|
|||
|
[101001] = { 203018, 204013, 201009, 203001, } ,
|
|||
|
[101002] = { 203018, 204013, 201009, 205002, 203001, } ,
|
|||
|
[101003] = { 203018, 204013, 201009, 202007, 203001, } ,
|
|||
|
[101004] = { 203018, 201009, 202007, 203001, 204013, 205002, } ,
|
|||
|
[101005] = { 203018, 204013, 201011, 203001, } ,
|
|||
|
[101006] = { 203018, 204013, 201009, 202007, 203001, } ,
|
|||
|
[101007] = { 203018, 204013, 201009, 202007, 203001, } ,
|
|||
|
[101008] = { 203018, 204013, 201009, 202007, 203001, } ,
|
|||
|
[101009] = { 203018, 201009, 202007, 203001, 204013, 205002, } ,
|
|||
|
[101010] = { 203018, 204013, 201009, 202007, 203001, } ,
|
|||
|
[101012] = { 203018, 204013, 201009, 203001, } ,
|
|||
|
[101013] = { 201009, 203002, 204013,},
|
|||
|
[102001] = { 203018, 204006, 201002, 205001, 203001, } ,
|
|||
|
[102002] = { 203018, 204006, 201002, 202007, 203001, } ,
|
|||
|
[102003] = { 203018, 201002, 202007, 203001, 204006, 205002, } ,
|
|||
|
[102004] = { 204006, 201006, 202002, 203001, } ,
|
|||
|
[102005] = { 203018, 203001, 201002, } ,
|
|||
|
[102007] = { 203018, 201002, 202007, 203001, 204006, 205002, } ,
|
|||
|
[102008] = { 201002, 203001, 204006, },
|
|||
|
[102105] = { } ,
|
|||
|
[103001] = { 203018, 201007, 204014, 203005, } ,
|
|||
|
[103002] = { 203018, 204009, 201007, 205003, 203005, } ,
|
|||
|
[103003] = { 203018, 204009, 201007, 205003, 203005, } ,
|
|||
|
[103004] = { 203018, 201007, 202007, 203004, 204009, 205003--[[, 204014]], } ,
|
|||
|
[103005] = { 204009, 205003, } ,
|
|||
|
[103006] = { 203018, 204009, 201007, 203004, } ,
|
|||
|
[103007] = { 203018, 204009, 201007, 205003, 203004, } ,
|
|||
|
[103008] = { 203018, 204014, } ,
|
|||
|
[103009] = { 203018, 204009, 201007, 205003, 203004, } ,
|
|||
|
[103010] = { 203018, 204009, 201007, 203004, } ,
|
|||
|
[103011] = { 203018, 201007, 204014, 203004, } ,
|
|||
|
[103013] = { 203015, 201007, 204009, 202007, },
|
|||
|
[103014] = { 203015, 201007, 204009, 202007, },
|
|||
|
[103100] = { 203018, 204009, 201007, 202007, 203004, } ,
|
|||
|
[104001] = { 204010, 201001, } ,
|
|||
|
[104002] = { 204010, 201001, } ,
|
|||
|
[104003] = { 203018, 204013, 201012, 203001, } ,
|
|||
|
[104004] = { 203018, 203001, } ,
|
|||
|
[104005] = { 204013, 203001, 201009, },
|
|||
|
[104100] = { 204017, },
|
|||
|
[105001] = { 203018, 204013, 205002, 203001, } ,
|
|||
|
[105002] = { 203018, 203001, } ,
|
|||
|
-- M134重机枪
|
|||
|
[105003] = {},
|
|||
|
[105010] = { 203002, },
|
|||
|
[105012] = { 203001, 204013, 202002, },
|
|||
|
[106001] = { 204003, 201008, 203001, 202007, } ,
|
|||
|
[106002] = { 204003, 201008, 203001, 202007, } ,
|
|||
|
[106003] = { 201008, } ,
|
|||
|
[106004] = { 204003, 201008, 203001, 202007, } ,
|
|||
|
[106005] = { 203001, } ,
|
|||
|
[106006] = { 201008, } ,
|
|||
|
[106007] = { } ,
|
|||
|
[106008] = { 201008, 202007, 203001, 204002, 205001, } ,
|
|||
|
[106010] = { 204002, 202007, 203001, } ,
|
|||
|
-- TMP-9手枪
|
|||
|
[106011] = { 203002, 204006, 201002 },
|
|||
|
[107001] = { 205004, 203001, } ,
|
|||
|
[107006] = { 203004, 205004 },
|
|||
|
[107008] = { 203014, },
|
|||
|
[108001] = { } ,
|
|||
|
[108002] = { } ,
|
|||
|
[108003] = { } ,
|
|||
|
[108004] = { } ,
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
-- 加载武器图标
|
|||
|
function LoadWeaponIconTexture(InTable) LoadItemIconTexture(InTable, WeaponTable); end
|
|||
|
|
|||
|
function LoadWeaponPartIconTexture(InTable) LoadItemIconTexture(InTable, WeaponParts); end
|
|||
|
|
|||
|
-- 从表中进行加载
|
|||
|
function LoadItemIconTexture(InTable, Src) if InTable == nil then InTable = {} for i, v in pairs(Src) do table.insert(InTable, i) end end for i, WeaponId in pairs(InTable) do Src[WeaponId].Texture = UE.LoadObject(Src[WeaponId].IconPath) end end
|
|||
|
|
|||
|
function IsWeaponPartValid(InId) if InId == nil then return false; end local Part = WeaponParts[InId]; if Part == nil then return false; end return Part.Texture ~= nil; end
|
|||
|
|
|||
|
function GetWeaponName(WeaponItemID) if WeaponItemID <= 0 then return "拳击" elseif WeaponTable[WeaponItemID] ~= nil then return WeaponTable[WeaponItemID].ItemName end print(string.format('[GetWeaponName] 无法找到对应 Weapon ID: ' + WeaponItemID)) return "" end
|
|||
|
|
|||
|
|
|||
|
--- 获取配件Item是否为武器可用Item
|
|||
|
---@param WeaponID int
|
|||
|
---@param PartItemID int
|
|||
|
function PartIsWeaopnCanBeUsed(WeaponID, PartItemID) if WeaponSuits[WeaponID] == nil then return false end for i, v in pairs(WeaponSuits[WeaponID]) do for _, PartItemIDTemp in pairs(v) do if PartItemIDTemp == PartItemID then return true end end end return false end
|
|||
|
|
|||
|
|
|||
|
Weapon_LastGetWeaponIDTime = -1.
|
|||
|
Weapon_LastGetWeaponIDRes = {} -- PlayerKey = {}
|
|||
|
|
|||
|
--- 获取配件Item是否为武器可用Item
|
|||
|
---@param PlayerKey uint
|
|||
|
function GetPlayerShootWeaponIDs(PlayerKey) local NowTime = KismetSystemLibrary.GetGameTimeInSeconds(UGCGameSystem.GameState) if Weapon_LastGetWeaponIDTime == NowTime then if Weapon_LastGetWeaponIDRes[PlayerKey] then return Weapon_LastGetWeaponIDRes[PlayerKey] end else Weapon_LastGetWeaponIDTime = NowTime Weapon_LastGetWeaponIDRes = {} end local TargetPawn = UGCGameSystem.GetPlayerPawnByPlayerKey(PlayerKey) local Res = {} if UE.IsValid(TargetPawn) then for i, v in pairs(ShootWeaponEnums) do local Weapon = UGCWeaponManagerSystem.GetWeaponBySlot(TargetPawn, v) if Weapon then Res[#Res + 1] = UGCWeaponManagerSystem.GetWeaponItemID(Weapon) end end end Weapon_LastGetWeaponIDRes[PlayerKey] = Res return Res end
|
|||
|
|
|||
|
function GetItemWeaponAmmunitionItemID(WeaponID) return WeaponAmmunitionItem[WeaponID] end
|