629 lines
53 KiB
Lua
629 lines
53 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.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,
|
||
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/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, },
|
||
};
|
||
|
||
-- 武器套装表
|
||
---@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] = { 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, } ,
|
||
[101011] = { 202002, 203002, 204013, },
|
||
[101012] = { 203018, 204013, 201009, 203001, } ,
|
||
[101013] = { 201009, 203002, 204013,},
|
||
-- 冲锋枪
|
||
[102001] = { 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, } ,
|
||
[103005] = { 204009, 205003, } ,
|
||
[103006] = { 203018, 204009, 201007, 203004, } ,
|
||
[103007] = { 203018, 204009, 201007, 205003, 203004, } ,
|
||
[103008] = { 204014, } ,
|
||
[103009] = { 203018, 204009, 201007, 205003, 203004, } ,
|
||
[103010] = { 203018, 204009, 201007, 203004, } ,
|
||
[103011] = { 203018, 201007, 204014, 203004, } ,
|
||
[103012] = { 203030} ,
|
||
[103013] = { 203018, 203015, 201007, 204009, 202007, },
|
||
[103014] = { 203018, 203015, 201007, 204009, 202007, 205003, },
|
||
[103015] = { 203018, 203015, 201007, 204009 },
|
||
[103901] = { 203018, 201007, 204014, 203005, } ,
|
||
[103902] = { 203018, 204009, 201007, 205003, 203005, } ,
|
||
[103903] = { 203018, 204009, 201007, 205003, 203005, } ,
|
||
[103100] = { 203018, 204009, 201007, 202007, 203004, } ,
|
||
-- 霰弹枪
|
||
[104001] = { 204014, 201001, } ,
|
||
[104002] = { 204014, 201001, 204017, } ,
|
||
[104003] = { 203018, 204013, 201012, 203001, } ,
|
||
[104004] = { 203018, 203001, 204017, } ,
|
||
[104005] = { 204013, 203001, 201009, },
|
||
[104100] = { 204017, },
|
||
-- 机枪
|
||
[105001] = { 203018, 204013, 205002, 203001, } ,
|
||
[105002] = { 203001, } ,
|
||
[105003] = {},
|
||
[105010] = { 203002, },
|
||
[105012] = { 203018, 203001, 204013, 202002, },
|
||
-- 手枪
|
||
[106001] = { 204003, 201008, 203001, 202007, } ,
|
||
[106002] = { 204003, 201008, 203001, 202007, } ,
|
||
[106003] = { 201008, } ,
|
||
[106004] = { 204003, 201008, 203001, 202007, } ,
|
||
[106005] = { 203001, 202007, } ,
|
||
[106006] = { 201008, } ,
|
||
[106008] = { 201008, 202007, 203001, 204002, 205001, } ,
|
||
[106010] = { 204002, 202007, 203001, } ,
|
||
[106011] = { 203002, 204006, 201002 },
|
||
[106107] = {},
|
||
-- 特殊武器
|
||
[107001] = { 205004, 203001, } ,
|
||
[107002] = {},-- RPG-7火箭弹
|
||
[107005] = {},-- 铁拳火箭筒
|
||
[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 |