2025-01-04 23:00:19 +08:00

386 lines
49 KiB
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 武器表
--[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.EWeaponTypeNew_Submachine, }, [102105] = { ItemName = "P90冲锋枪", Desc = "使用5.7mm子弹的大容量空投冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, }, [103001] = { ItemName = "Kar98K狙击枪", Desc = "老式狙击步枪。", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Kar98k.T_Kar98k'), }, [103002] = { ItemName = "M24狙击枪", Desc = "性能优良的狙击步枪。", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_M24.T_M24'), }, [103003] = { ItemName = "AWM狙击枪", Desc = "重型狙击步枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_AWM.T_AWM'), }, [103004] = { ItemName = "SKS射手步枪", Desc = "俄罗斯半自动精确射手步枪。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_SKS.T_SKS'), }, [103005] = { ItemName = "VSS射手步枪", Desc = "VSS是一款微声狙击步枪使用9毫米亚音速弹药。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_VSS.T_VSS'), }, [103006] = { ItemName = "Mini14射手步枪", Desc = "半自动卡宾枪。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Mini14.T_Mini14'), }, [103007] = { ItemName = "Mk14射手步枪", Desc = "选射式精确射手步枪,最初装备美国特种作战司令部单位,例如海军海豹突击队和三角洲部队", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Mk14.T_Mk14'), }, [103008] = { ItemName = "Win94狙击枪", Desc = "杠杆式步枪。", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_win94.T_win94'), }, [103009] = { ItemName = "SLR射手步枪", Desc = "经典的半自动精确射手步枪。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_SLR.T_SLR'), }, [103010] = { ItemName = "QBU射手步枪", Desc = "无托式半自动精确射手步枪。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_QBU.T_QBU') }, [103011] = { ItemName = "莫辛纳甘狙击枪", Desc = "老式狙击步枪。", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, }, [103100] = { ItemName = "Mk12狙击枪", Desc = "由知名现代步枪改装而来的半自动特别用途狙击系统。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, }, [103901] = { ItemName = "Kar98K狙击枪", Desc = "老式狙击步枪。", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Kar98k.T_Kar98k'), }, [103902] = { ItemName = "M24狙击枪", Desc = "性能优良的狙击步枪。", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_M24.T_M24'), }, [103903] = { ItemName = "AWM狙击枪", Desc = "重型狙击步枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_AWM.T_AWM'), }, [104001] = { ItemName = "S686霰弹枪", Desc = "双管猎枪。", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_S686.T_S686'), }, [104002] = { ItemName = "S1897霰弹枪", Desc = "普通猎枪。", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_S1897.T_S1897'), }, [104003] = { ItemName = "S12K霰弹枪", Desc = "火力强大的霰弹枪。", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_S12K.T_S12K'), }, [104004] = { ItemName = "DBS霰弹枪", Desc = "现代型无托泵动式12号口径双管霰弹枪", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_DBS.T_DBS'), }, [105001] = { ItemName = "M249轻机枪", Desc = "实际要比看起来更轻巧。", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_MachineGun, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_M249.T_M249'), }, [105002] = { ItemName = "DP-28轻机枪", Desc = "俄罗斯在二战期间制作的轻机枪使用7.62毫米子弹。", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_MachineGun, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_DP_28.T_DP_28'), }, [106001] = { ItemName = "P92手枪", Desc = "普通手枪。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_P92.T_P92'), }, [106002] = { ItemName = "P1911手枪", Desc = "深受老一辈的青睐。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_P1911.T_P1911'), }, [106003] = { ItemName = "R1895手枪", Desc = "使用 7.62 毫米弹药的火力强大的左轮手枪。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_R1895.T_R1895'), }, [106004] = { ItemName = "P18C手枪", Desc = "一款原产于奥地利拥有全自动开火模式的手枪使用9毫米弹药。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_P18C.T_P18C'), }, [106005] = { ItemName = "R45手枪", Desc = "意大利制造的现代六发左轮手枪,使用.45口径的弹药。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_R45.T_R45'), }, [106006] = { ItemName = "短管霰弹枪", Desc = "枪管锯短的折管式霰弹枪,能够连续发射两发霰弹。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_DGXDQ.T_DGXDQ'), }, [106007] = { ItemName = "信号枪", Desc = "信号枪,对着天上来一发有惊喜!", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_XHQ.T_XHQ') }, [106008] = { ItemName = "蝎式手枪", Desc = "捷克斯洛伐克制的全自动冲锋手枪。", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_XSSQ.T_XSSQ'), }, [106010] = { ItemName = "沙漠之鹰手枪", Desc = "享誉全球的大口径狩猎手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, }, [107001] = { ItemName = "十字弩", Desc = "很难掌握,突然拿到手,不知道该怎么使用。", ItemSubId = 107, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Crossbow, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_SZN.T_SZN'), }, [108001] = { ItemName = "大砍刀", Desc = "看着怪吓人的。", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_DKD.T_DKD'), }, [108002] = { ItemName = "撬棍", Desc = "给我一个支点,我能撬起整个地球。", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_QB.T_QB'), }, [108003] = { ItemName = "镰刀", Desc = "收割工具。", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_LD.T_LD'), }, [108004] = { ItemName = "平底锅", Desc = "用小锅锅砸你胸口!", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_PDG.T_PDG'), }, };
--["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, };
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, }, };
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/TableIcons/ItemIcon/Attach/Icon_WB_ThumbGrip.Icon_WB_ThumbGrip", }, [202007] = { ID = 202007, Type = EWeaponPartType.Grip, Name = "激光瞄准器", Alias = "激光瞄准器", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/icon_attach_Lower_LaserPointer.icon_attach_Lower_LaserPointer", }, [203001] = { ID = 203001, Type = EWeaponPartType.Telescope, Name = "红点瞄准镜", Alias = "红点瞄准镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_HD.Icon_MZJ_HD", }, [203002] = { ID = 203002, Type = EWeaponPartType.Telescope, Name = "全息瞄准镜", Alias = "全息瞄准镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_QX.Icon_MZJ_QX", }, [203003] = { ID = 203003, Type = EWeaponPartType.Telescope, Name = "2倍 瞄准镜", Alias = "2倍镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_2X.Icon_MZJ_2X", }, [203004] = { ID = 203004, Type = EWeaponPartType.Telescope, Name = "4倍 瞄准镜", Alias = "4倍镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_4X.Icon_MZJ_4X", }, [203005] = { ID = 203005, Type = EWeaponPartType.Telescope, Name = "8倍 瞄准镜", Alias = "8倍镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_8X.Icon_MZJ_8X", }, [203014] = { ID = 203014, Type = EWeaponPartType.Telescope, Name = "3倍 瞄准镜", Alias = "3倍镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_3X.Icon_MZJ_3X", }, [203015] = { ID = 203015, Type = EWeaponPartType.Telescope, Name = "6倍 瞄准镜", Alias = "6倍镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_6X.Icon_MZJ_6X", }, [203018] = { ID = 203018, Type = EWeaponPartType.Telescope, Name = "侧面瞄准镜", Alias = "侧面瞄准镜", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/icon_MZJ_CantedRMR.icon_MZJ_CantedRMR", }, [204001] = { ID = 204001, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(手枪)", Alias = "手枪扩容弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Small_E.Icon_DJ_Small_E", }, [204002] = { ID = 204002, Type = EWeaponPartType.Magazine, Name = "快速弹匣(手枪)", Alias = "手枪快速弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Small_Q.Icon_DJ_Small_Q", }, [204003] = { ID = 204003, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(手枪)", Alias = "手枪快扩弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Small_EQ.Icon_DJ_Small_EQ", }, [204004] = { ID = 204004, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(冲锋枪,手枪)", Alias = "冲锋枪扩容弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Mid_E.Icon_DJ_Mid_E", }, [204005] = { ID = 204005, Type = EWeaponPartType.Magazine, Name = "快速弹匣(冲锋枪,手枪)", Alias = "冲锋枪快速弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Mid_Q.Icon_DJ_Mid_Q", }, [204006] = { ID = 204006, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(冲锋枪,手枪)", Alias = "冲锋枪快扩弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Mid_EQ.Icon_DJ_Mid_EQ", }, [204007] = { ID = 204007, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(狙击枪)", Alias = "狙击枪扩容弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Sniper_E.Icon_DJ_Sniper_E", }, [204008] = { ID = 204008, Type = EWeaponPartType.Magazine, Name = "快速弹匣(狙击枪)", Alias = "狙击枪快速弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Sniper_Q.Icon_DJ_Sniper_Q", }, [204009] = { ID = 204009, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(狙击枪)", Alias = "狙击枪快扩弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Sniper_EQ.Icon_DJ_Sniper_EQ", }, [204010] = { ID = 204010, Type = EWeaponPartType.Magazine, Name = "子弹袋(霰弹枪)", Alias = "霰弹枪子弹袋", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_ZDD_Shotgun.Icon_ZDD_Shotgun", }, [204011] = { ID = 204011, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(步枪,机枪)", Alias = "步枪扩容弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Large_E.Icon_DJ_Large_E", }, [204012] = { ID = 204012, Type = EWeaponPartType.Magazine, Name = "快速弹匣(步枪,机枪)", Alias = "步枪快速弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Large_Q.Icon_DJ_Large_Q", }, [204013] = { ID = 204013, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(步枪,机枪)", Alias = "步枪快扩弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Large_EQ.Icon_DJ_Large_EQ", }, [204014] = { ID = 204014, Type = EWeaponPartType.Magazine, Name = "子弹袋(狙击枪,霰弹枪)", Alias = "狙击枪子弹袋", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_ZDD_Sniper.Icon_ZDD_Sniper", }, [204015] = { ID = 204015, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(机枪)", Alias = "机枪扩容弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_M134_EQ_Mag.Icon_DJ_M134_EQ_Mag", }, [204016] = { ID = 204016, Type = EWeaponPartType.Magazine, Name = "并联弹匣(步枪)", Alias = "步枪并联弹匣", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Large_Dou.Icon_DJ_Large_Dou", }, [205001] = { ID = 205001, Type = EWeaponPartType.ButtStock, Name = "枪托(Micro UZI)", Alias = "UZI枪托", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QT_UZI.Icon_QT_UZI", }, [205002] = { ID = 205002, Type = EWeaponPartType.ButtStock, Name = "战术枪托(步枪,冲锋枪,机枪)", Alias = "步枪战术枪托", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QT_A.Icon_QT_A", }, [205003] = { ID = 205003, Type = EWeaponPartType.ButtStock, Name = "托腮板(狙击枪)", Alias = "托腮板", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_QT_Sniper.Icon_QT_Sniper", }, [205004] = { ID = 205004, Type = EWeaponPartType.ButtStock, Name = "箭袋(十字弩)", Alias = "箭袋", IconPath = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_DJ_Crossbow_Q.Icon_DJ_Crossbow_Q", } };
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, },
};
-- 武器套装
WeaponSuits = {
-- AKM突击步枪
[101001] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
-- M16A4突击步枪
[101002] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, [EWeaponPartType.ButtStock] = {205002, }, },
--SCAR-L突击步枪
[101003] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
-- M416突击步枪
[101004] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, [EWeaponPartType.ButtStock] = { 205002, }, },
-- GROZA突击步枪
[101005] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
--AUG突击步枪
[101006] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
--QBZ突击步枪
[101007] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
-- M762突击步枪
[101008] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
-- Mk47突击步枪
[101009] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, [EWeaponPartType.ButtStock] = { 205002, }, },
-- G36C突击步枪
[101010] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
--蜜獾突击步枪
[101012] = { [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, },
--UZI冲锋枪
[102001] = { [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.ButtStock] = { 205001, }, },
--UMP45冲锋枪
[102002] = { [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, },
--Vector冲锋枪
[102003] = { [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Grip] = { 202002, 202003, 202004, 202007, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.ButtStock] = { 205002, }, },
-- 汤姆逊冲锋枪
[102004] = { [EWeaponPartType.Muzzle] = { 201006, }, [EWeaponPartType.Grip] = { 202002, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, },
-- 野牛冲锋枪
[102005] = { [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, }, },
--MP5K冲锋枪
[102007] = { [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.ButtStock] = { 205002, }, },
--P90冲锋枪
[102105] = { },
--Kar98K狙击枪
[103001] = { [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.ButtStock] = { 205003, 204014 }, },
--M24狙击枪
[103002] = { [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.ButtStock] = { 205003, }, },
--AWM狙击枪
[103003] = { [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.ButtStock] = { 205003, }, },
--SKS射手步枪
[103004] = { [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.ButtStock] = { 205003, 204014 }, },
--VSS射手步枪
[103005] = { [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.ButtStock] = { 205003, }, },
--Mini14射手步枪
[103006] = { [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, },
--Mk14射手步枪
[103007] = { [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.ButtStock] = { 205003, }, },
-- Win94狙击枪
[103008] = { [EWeaponPartType.ButtStock] = { 204014 }, },
-- SLR射手步枪
[103009] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.ButtStock] = { 205003, }, },
-- QBU射手步枪
[103010] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, },
-- 莫辛纳甘狙击枪
[103011] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.ButtStock] = { 205003, 204014 }, },
-- Mk12狙击枪
[103100] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015}, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007, }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, [EWeaponPartType.Grip] = { 202001, 202002, 202003, 202004, 202005, 202006, }, },
--S686霰弹枪
[104001] = { [EWeaponPartType.Muzzle] = { 201001, 201012, }, [EWeaponPartType.ButtStock] = { 204014, 204010, }, },
--S1897霰弹枪
[104002] = { [EWeaponPartType.Muzzle] = { 201001, 201012, }, [EWeaponPartType.ButtStock] = { 204014, 204010, }, },
--S12K霰弹枪
[104003] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, 201012, }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009, }, },
--DBS霰弹枪
[104004] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, }, },
--M249轻机枪
[105001] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, }, [EWeaponPartType.ButtStock] = { 205002, }, },
--DP-28轻机枪
[105002] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, }, },
--P92手枪
[106001] = { [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201008, }, [EWeaponPartType.Magazine] = { 204001, 204002, 204003, }, },
--P1911手枪
[106002] = { [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201008, }, [EWeaponPartType.Magazine] = { 204001, 204002, 204003, }, },
--R1895手枪
[106003] = { [EWeaponPartType.Muzzle] = { 201008, }, },
--P18C手枪
[106004] = { [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201008, }, [EWeaponPartType.Magazine] = { 204001, 204002, 204003, }, },
--R45手枪
[106005] = { [EWeaponPartType.Telescope] = { 203001, 203002, }, },
--短管霰弹枪
[106006] = { [EWeaponPartType.Muzzle] = { 201008, }, },
--信号枪
[106007] = { },
--蝎式手枪
[106008] = { [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201008, }, [EWeaponPartType.Magazine] = { 204002, }, [EWeaponPartType.Grip] = { 202002, 202004, 202005, 202007, }, [EWeaponPartType.ButtStock] = { 205001, }, },
--沙漠之鹰手枪
[106010] = { [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204002, }, [EWeaponPartType.Grip] = { 202007, }, },
--十字弩
[107001] = { [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004--[[, 203005]], 203014, }, [EWeaponPartType.ButtStock] = { 205004, }, },
--大砍刀
[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,
}
-- 武器配件优先级
AccessoryPriority = {
-- 枪口
[EWeaponPartType.Muzzle] = {
-- 延长枪管、收束器、枪口
201050, 201051, 201001, 201012,
-- 消音器
201006, 201007, 201008, 201011,
-- 补偿器
201002, 201003, 201009,
-- 消焰器
201004, 201005, 201010
},
-- 握把
[EWeaponPartType.Grip] = {
202002, 202001, 202003, 202004, 202005, 202006, 202007
},
-- 瞄准镜
[EWeaponPartType.Telescope] = {
[101] = { 203001, 203002, 203003, 203004, 203014, 203015, 203005},
[102] = { 203001, 203002, 203003, 203004, 203014, 203015, 203005},
[103] = { 203004, 203014, 203003, 203005, 203015, 203002, 203001},
[104] = { 203001, 203002, 203003, 203004, 203014, 203015, 203005},
[105] = { 203001, 203002, 203003, 203004, 203014, 203015, 203005},
[106] = { 203001, 203002, 203003, 203004, 203014, 203015, 203005},
[107] = { 203001, 203002, 203003, 203004, 203014, 203015, 203005},
},
-- 弹匣
[EWeaponPartType.Magazine] = {
-- 快速扩容
204003, 204006, 204009, 204013,
-- 并联弹夹
204016,
-- 快速
204002, 204005, 204008, 204012,
-- 扩容
204001, 204004, 204007, 204011, 204015,
},
-- 枪托
[EWeaponPartType.ButtStock] = {
-- 弹袋 特殊
204010, 204014,
205001, 205002, 205003, 205004
}
}
--- 推荐武器配置
WeaponTable.RecommendedWeaponParts = {
[101001] = { 204013, 201011, 203001, } ,
[101002] = { 204013, 201011, 205002, 203001, } ,
[101003] = { 204013, 201011, 202002, 203001, } ,
[101004] = { 201011, 202002, 203001, 204013, 205002, } ,
[101005] = { 204013, 201011, 203001, } ,
[101006] = { 204013, 201011, 202002, 203001, } ,
[101007] = { 204013, 201011, 202002, 203001, } ,
[101008] = { 204013, 201011, 202002, 203001, } ,
[101009] = { 201011, 202002, 203001, 204013, 205002, } ,
[101010] = { 204013, 201011, 202002, 203001, } ,
[101012] = { 204013, 201011, 203001, } ,
[102001] = { 204006, 201006, 205001, 203001, } ,
[102002] = { 204006, 201006, 202002, 203001, } ,
[102003] = { 201006, 202002, 203001, 204006, 205002, } ,
[102004] = { 204006, 201006, 202002, 203001, } ,
[102005] = { 203001, 201006, } ,
[102007] = { 201006, 202002, 203001, 204006, 205002, } ,
[102105] = { } ,
[103001] = { 201007, 204014, 203005, } ,
[103002] = { 204009, 201007, 205003, 203005, } ,
[103003] = { 204009, 201007, 205003, 203005, } ,
[103004] = { 201007, 202002, 203004, 204009, 204014, } ,
[103005] = { 204009, 205003, } ,
[103006] = { 204009, 201007, 203004, } ,
[103007] = { 204009, 201007, 205003, 203004, } ,
[103008] = { 204014, } ,
[103009] = { 204009, 201007, 205003, 203004, } ,
[103010] = { 204009, 201007, 203004, } ,
[103011] = { 201007, 204014, 203004, } ,
[103100] = { 204009, 201007, 202002, 203004, } ,
[104001] = { 204010, 201001, } ,
[104002] = { 204010, 201001, } ,
[104003] = { 204009, 201012, 203001, } ,
[104004] = { 203001, } ,
[105001] = { 204013, 205002, 203001, } ,
[105002] = { 203001, } ,
[106001] = { 204003, 201008, 203001, } ,
[106002] = { 204003, 201008, 203001, } ,
[106003] = { 201008, } ,
[106004] = { 204003, 201008, 203001, } ,
[106005] = { 203001, } ,
[106006] = { 201008, } ,
[106007] = { } ,
[106008] = { 201008, 202002, 203001, 204002, 205001, } ,
[106010] = { 204002, 202007, 203001, } ,
[107001] = { 205004, 203001, } ,
[108001] = { } ,
[108002] = { } ,
[108003] = { } ,
[108004] = { } ,
}
--- 构建配件排序
function WeaponTable.MakeWeaponPartRank()
if WeaponTable.WeaponPartRank == nil then
WeaponTable.WeaponPartRank = {}
for WeaponPartType, Data in pairs(AccessoryPriority) do
WeaponTable.WeaponPartRank[WeaponPartType] = {}
if EWeaponPartType.Telescope ~= WeaponPartType then
for SortNum, PartID in pairs(Data) do
WeaponTable.WeaponPartRank[WeaponPartType][PartID] = SortNum
end
else
for weaponType, PartList in pairs(Data) do
WeaponTable.WeaponPartRank[WeaponPartType][weaponType] = {}
for SortNum, PartID in pairs(PartList) do
WeaponTable.WeaponPartRank[WeaponPartType][weaponType][PartID] = SortNum
end
end
end
end
UGCLogSystem.LogTree("[WeaponTable_MakeWeaponPartRank]", WeaponTable.WeaponPartRank)
end
return WeaponTable.WeaponPartRank
end
--- 获取武器推荐的配件(需要计算)
function WeaponTable.ObtainRecommendedWeaponParts(WeaponID)
local Res = {}
local WeaponSuitInfo = WeaponSuits[WeaponID]
UGCLogSystem.Log("[WeaponTable_ObtainRecommendedWeaponParts] WeaponID:%s", tostring(WeaponID))
if WeaponSuitInfo == nil then
UGCLogSystem.LogError("[WeaponTable_ObtainRecommendedWeaponAccessories] 武器套装表格中不包含该武器 WeaponID:%s", tostring(WeaponID))
else
local PartRank = WeaponTable.MakeWeaponPartRank()
UGCLogSystem.LogTree("[WeaponTable_ObtainRecommendedWeaponParts]", PartRank)
--- WeaponPartType:uint, PartIDs:table
for WeaponPartType, PartIDs in pairs(WeaponSuitInfo) do
local TempPartScore = {} -- {{PartID = , Score = }, ...}
UGCLogSystem.LogTree("[WeaponTable_ObtainRecommendedWeaponParts] WeaponPartType:".. tostring(WeaponPartType), PartRank[WeaponPartType])
for _, PartID in pairs(PartIDs) do
if EWeaponPartType.Telescope ~= WeaponPartType then
TempPartScore[#TempPartScore + 1] = {PartID = PartID, Score = PartRank[WeaponPartType][PartID]}
else
TempPartScore[#TempPartScore + 1] = {PartID = PartID, Score = PartRank[WeaponPartType][UGCSystemLibrary.GetItemTypeID(WeaponID)][PartID]}
end
end
UGCLogSystem.LogTree("[WeaponTable_ObtainRecommendedWeaponParts]", TempPartScore)
if #TempPartScore > 1 then
table.sort(TempPartScore, function(a, b) return a.Score < b.Score end)
end
Res[#Res + 1] = TempPartScore[1].PartID
end
end
return Res
end
--- 获取武器推荐的配件
function WeaponTable.GetRecommendedWeaponParts(WeaponID)
if WeaponTable.RecommendedWeaponParts[WeaponID] == nil then
WeaponTable.RecommendedWeaponParts[WeaponID] = WeaponTable.ObtainRecommendedWeaponParts(WeaponID)
end
return WeaponTable.RecommendedWeaponParts[WeaponID]
end
--- 构建武器推荐表
function WeaponTable.MakeRecommendedWeaponPartsTable()
---Test
local WeaponTJ = {}
for WeaponID, v in pairs(WeaponSuits) do
local TJ = WeaponTable.ObtainRecommendedWeaponParts(WeaponID)
WeaponTJ[WeaponID] = TJ
end
local TJKey = table.getKeys(WeaponTJ)
table.sort(TJKey)
local PtrStr = "Weapon:\n"
for i, ID in pairs(TJKey) do
local PartTable = "{ "
for _, PartID in pairs(WeaponTJ[ID]) do
PartTable = PartTable .. string.format("%d, ", PartID)
end
PartTable = PartTable .. " } "
PtrStr = PtrStr.. string.format("[%s] = %s,\n", tostring(ID), PartTable)
end
UGCLogSystem.Log("[WeaponTable_MakeRecommendedWeaponPartsTable] %s", PtrStr)
end
-- 加载武器图标
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