-- 武器表 EWeaponTypeNew.EWeaponTypeNew_Special = EWeaponTypeNew.EWeaponTypeNew_ThrownObj + 1 EWeaponTypes = { Melee = 1, Sniper = 2, Rifle = 3, SubmachineGun = 4, MachineGun = 5, Pistol = 6, ShotGun = 7, SniperRifle = 8, Special = 9, AntitankGrenade = 10 } WeaponTypeInfo = { [EWeaponTypeNew.EWeaponTypeNew_Melee] = { Name = "近战武器", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_PDG.T_PDG') }, [EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper] = { Name = "狙击枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_AWM.T_AWM') }, [EWeaponTypeNew.EWeaponTypeNew_Rifle] = { Name = "突击步枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_M416.T_M416') }, [EWeaponTypeNew.EWeaponTypeNew_Submachine] = { Name = "冲锋枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_UMP45.T_UMP45') }, [EWeaponTypeNew.EWeaponTypeNew_MachineGun] = { Name = "机枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_M249.T_M249') }, [EWeaponTypeNew.EWeaponTypeNew_Pistol] = { Name = "手枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_P1911.T_P1911') }, [EWeaponTypeNew.EWeaponTypeNew_ShotGun] = { Name = "霰弹枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_S1897.T_S1897') }, [EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper] = { Name = "射手步枪", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_SKS.T_SKS') }, -- 特殊武器Icon要换 [EWeaponTypeNew.EWeaponTypeNew_Special] = { Name = "特殊武器", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_RPG.T_RPG') }, [EWeaponTypeNew.EWeaponTypeNew_Crossbow] = { Name = "十字弩", Icon = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/UITexture/White/T_SZN.T_SZN') }, [EWeaponTypeNew.EWeaponTypeNew_ThrownObj] = { Name = "投掷物", Icon = '/Game/UGC/UMGTemplate/KLJ_Atlas/Frames/ZD_CarlaGold_Icon_touzhiwu_png.ZD_CarlaGold_Icon_touzhiwu_png' }, } -- 武器类型对应的槽 EWeaponNewTypeSlot = { [EWeaponTypeNew.EWeaponTypeNew_Rifle] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2 }, [EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2 }, [EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2 }, [EWeaponTypeNew.EWeaponTypeNew_Submachine] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2 }, [EWeaponTypeNew.EWeaponTypeNew_ShotGun] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2 }, [EWeaponTypeNew.EWeaponTypeNew_MachineGun] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2 }, [EWeaponTypeNew.EWeaponTypeNew_Pistol] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2--[[, ESurviveWeaponPropSlot.SWPS_SubShootWeapon]], }, [EWeaponTypeNew.EWeaponTypeNew_Melee] = { ESurviveWeaponPropSlot.SWPS_MeleeWeapon, }, [EWeaponTypeNew.EWeaponTypeNew_ThrownObj] = { ESurviveWeaponPropSlot.SWPS_MeleeWeapon, }, [EWeaponTypeNew.EWeaponTypeNew_Crossbow] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2, }, [EWeaponTypeNew.EWeaponTypeNew_Special] = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2, }, } ---@type table 武器 Item WeaponTable = { -- 突击步枪 [101001] = { ItemName = "AKM突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, Enable = true }, [101002] = { ItemName = "M16A4突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101003] = { ItemName = "SCAR-L突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101004] = { ItemName = "M416突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, Enable = true }, [101005] = { ItemName = "GROZA突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101006] = { ItemName = "AUG突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101007] = { ItemName = "QBZ突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101008] = { ItemName = "M762突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, Enable = true }, [101009] = { ItemName = "Mk47突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101010] = { ItemName = "G36C突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, [101012] = { ItemName = "蜜獾突击步枪", ItemSubId = 101, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, -- 冲锋枪 [102001] = { ItemName = "UZI冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, Enable = true }, [102002] = { ItemName = "UMP45冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, Enable = true }, [102003] = { ItemName = "Vector冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, Enable = true }, [102004] = { ItemName = "汤姆逊冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, }, [102005] = { ItemName = "野牛冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, Enable = true }, [102007] = { ItemName = "MP5K冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, }, [102105] = { ItemName = "P90冲锋枪", ItemSubId = 102, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Submachine, }, -- 狙击枪 [103001] = { ItemName = "Kar98K狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, Enable = true }, [103002] = { ItemName = "M24狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, Enable = true }, [103003] = { ItemName = "AWM狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, Enable = true }, -- 射手步枪 [103004] = { ItemName = "SKS射手步枪", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, Enable = true }, [103005] = { ItemName = "VSS射手步枪", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, }, [103006] = { ItemName = "Mini14射手步枪", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, Enable = true }, -- [103007] = { ItemName = "Mk14射手步枪", Desc = "选射式精确射手步枪,最初装备美国特种作战司令部单位,例如海军海豹突击队和三角洲部队", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, -- IconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Art/WeaponTexture/T_Mk14.T_Mk14'), SmallIcon = "/Game/Arts/UI/TableIcons/ItemIcon/Weapon/Icon_WEP_MK14.Icon_WEP_MK14", BigIcon = "/Game/Arts/UI/TableIcons/WeaponIcons/Icon256x128/Icon_WEP_MK14_B.Icon_WEP_MK14_B", Enable = true, }, [103008] = { ItemName = "Win94狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, }, [103009] = { ItemName = "SLR射手步枪", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, Enable = true }, [103010] = { ItemName = "QBU射手步枪", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Rifle, }, -- 狙击枪 [103011] = { ItemName = "莫辛纳甘狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, }, -- [103100] = { ItemName = "Mk12狙击枪", Desc = "由知名现代步枪改装而来的半自动特别用途狙击系统。", ItemSubId = 109, TypeNew = EWeaponTypeNew.EWeaponTypeNew_BurstShotSniper, SmallIcon = "/Game/Arts/UI/TableIcons/ItemIcon/Weapon/Icon_WEP_MK12.Icon_WEP_MK12", BigIcon = "/Game/Arts/UI/TableIcons/WeaponIcons/Icon256x128/Icon_WEP_MK12_B.Icon_WEP_MK12_B", }, [103901] = { ItemName = "Kar98K狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, }, [103902] = { ItemName = "M24狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, }, [103903] = { ItemName = "AWM狙击枪", ItemSubId = 103, TypeNew = EWeaponTypeNew.EWeaponTypeNew_SingleShotSniper, }, -- 霰弹枪 [104001] = { ItemName = "S686霰弹枪", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, Enable = true }, [104002] = { ItemName = "S1897霰弹枪", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, Enable = true }, [104003] = { ItemName = "S12K霰弹枪", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, Enable = true }, [104004] = { ItemName = "DBS霰弹枪", ItemSubId = 104, TypeNew = EWeaponTypeNew.EWeaponTypeNew_ShotGun, }, -- 轻机枪 [105001] = { ItemName = "M249轻机枪", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_MachineGun, Enable = true }, [105002] = { ItemName = "DP-28轻机枪", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_MachineGun, Enable = true }, -- 手枪 [106001] = { ItemName = "P92手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, Enable = true }, [106002] = { ItemName = "P1911手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, Enable = true }, [106003] = { ItemName = "R1895手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, Enable = true }, [106004] = { ItemName = "P18C手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, Enable = true, }, [106005] = { ItemName = "R45手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, Enable = true }, [106006] = { ItemName = "短管霰弹枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, }, [106008] = { ItemName = "蝎式手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, }, [106010] = { ItemName = "沙漠之鹰手枪", ItemSubId = 106, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Pistol, Enable = true }, -- 弓箭 [107001] = { ItemName = "十字弩", ItemSubId = 107, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Crossbow, Enable = true }, [107002] = { ItemName = "RPG-7火箭筒", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, Enable = true }, [107005] = { ItemName = "铁拳火箭筒", ItemSubId = 107, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, Enable = true }, [107094] = { ItemName = "AT4-A激光导弹", ItemSubId = 111, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, Enable = true }, [107098] = { ItemName = "MGL榴弹发射器", ItemSubId = 110, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, Enable = true }, [107099] = { ItemName = "M3E1-A导弹", ItemSubId = 111, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, Enable = true }, [107905] = { ItemName = "M202四联火箭筒", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, Enable = true }, -- 近战武器 [108001] = { ItemName = "大砍刀", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, Enable = true }, [108002] = { ItemName = "撬棍", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, Enable = true }, [108003] = { ItemName = "镰刀", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, Enable = true }, [108004] = { ItemName = "平底锅", ItemSubId = 108, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Melee, Enable = true }, -- 特殊武器 [109008] = { ItemName = "爆破投射器", ItemSubId = 110, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, }, [109009] = { ItemName = "单发蓄力能量步枪", ItemSubId = 105, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, }, [109010] = { ItemName = "电击枪", ItemSubId = 110, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, }, [109011] = { ItemName = "激光步枪", ItemSubId = 110, TypeNew = EWeaponTypeNew.EWeaponTypeNew_Special, } } --- 射击武器 Slot ---@type table ShootWeaponEnums = { ESurviveWeaponPropSlot.SWPS_MainShootWeapon1, ESurviveWeaponPropSlot.SWPS_MainShootWeapon2, ESurviveWeaponPropSlot.SWPS_SubShootWeapon, }; --- ---@type table ThrownObjWeaponEnums = { ESurviveWeaponPropSlot.SWPS_MeleeWeapon, } ---@class EFillBulletType 填充子弹类型 ---@field ClipInfinite int32 ---@field Infinite int32 ---@field Fill int32 ---@field None int32 EFillBulletType = { None = 0, -- 无子弹 ClipInfinite = 1, -- 需要换弹夹的无限子弹 Infinite = 2, -- 不需要换弹夹的无限子弹 Fill = 3, -- 填充满当前弹匣 } -- 武器配件类型 EWeaponPartType = { Best = 0, Muzzle = 1, -- 枪口 Grip = 2, -- 握把 Telescope = 3, --瞄准镜 Magazine = 4, -- 弹匣 ButtStock = 5, -- 枪托 }; -- 配件类型名称对应表 ---@type table --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, }, --}; -- 武器配件类型表 ---@type table> --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, -- }, --}; --武器配件 ---@type table WeaponParts = { [201001] = { ID = 201001, Type = EWeaponPartType.Muzzle, Name = "霰弹枪收束器", }, [201002] = { ID = 201002, Type = EWeaponPartType.Muzzle, Name = "枪口补偿器(冲锋枪)", }, [201003] = { ID = 201003, Type = EWeaponPartType.Muzzle, Name = "枪口补偿器(狙击枪)", }, [201004] = { ID = 201004, Type = EWeaponPartType.Muzzle, Name = "消焰器(冲锋枪)", }, [201005] = { ID = 201005, Type = EWeaponPartType.Muzzle, Name = "消焰器(狙击枪)", }, [201006] = { ID = 201006, Type = EWeaponPartType.Muzzle, Name = "消音器(冲锋枪,手枪)", }, [201007] = { ID = 201007, Type = EWeaponPartType.Muzzle, Name = "消音器(狙击枪)", }, [201008] = { ID = 201008, Type = EWeaponPartType.Muzzle, Name = "消音器(手枪)", }, [201009] = { ID = 201009, Type = EWeaponPartType.Muzzle, Name = "枪口补偿器(步枪)", }, [201010] = { ID = 201010, Type = EWeaponPartType.Muzzle, Name = "消焰器(步枪)", }, [201011] = { ID = 201011, Type = EWeaponPartType.Muzzle, Name = "消音器(步枪)", }, [201012] = { ID = 201012, Type = EWeaponPartType.Muzzle, Name = "鸭嘴枪口(霰弹枪)", }, [201050] = { ID = 201050, Type = EWeaponPartType.Muzzle, Name = "延长枪管(冲锋枪)", }, [201051] = { ID = 201051, Type = EWeaponPartType.Muzzle, Name = "延长枪管(步枪,狙击枪)", }, [202001] = { ID = 202001, Type = EWeaponPartType.Grip, Name = "直角前握把", }, [202002] = { ID = 202002, Type = EWeaponPartType.Grip, Name = "垂直握把", }, [202004] = { ID = 202004, Type = EWeaponPartType.Grip, Name = "轻型握把", }, [202005] = { ID = 202005, Type = EWeaponPartType.Grip, Name = "半截式握把", }, [202006] = { ID = 202006, Type = EWeaponPartType.Grip, Name = "拇指握把", }, [202007] = { ID = 202007, Type = EWeaponPartType.Grip, Name = "激光瞄准器", }, [203001] = { ID = 203001, Type = EWeaponPartType.Telescope, Name = "红点瞄准镜", }, [203002] = { ID = 203002, Type = EWeaponPartType.Telescope, Name = "全息瞄准镜", }, [203003] = { ID = 203003, Type = EWeaponPartType.Telescope, Name = "2倍 瞄准镜", }, [203004] = { ID = 203004, Type = EWeaponPartType.Telescope, Name = "4倍 瞄准镜", }, [203005] = { ID = 203005, Type = EWeaponPartType.Telescope, Name = "8倍 瞄准镜", }, [203014] = { ID = 203014, Type = EWeaponPartType.Telescope, Name = "3倍 瞄准镜", }, [203015] = { ID = 203015, Type = EWeaponPartType.Telescope, Name = "6倍 瞄准镜", }, [203018] = { ID = 203018, Type = EWeaponPartType.Telescope, Name = "侧面瞄准镜", }, -- [203023] = { ID = 203023, Type = EWeaponPartType.Telescope, Name = "红点UV瞄准镜", Icon = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_HD.Icon_MZJ_HD", }, -- [203024] = { ID = 203024, Type = EWeaponPartType.Telescope, Name = "全息UV瞄准镜", Icon = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_QX.Icon_MZJ_QX", }, -- [203104] = { ID = 203104, Type = EWeaponPartType.Telescope, Name = "4倍 瞄准镜测试皮肤", Icon = "/Game/Arts/UI/TableIcons/ItemIcon/Attach/Icon_MZJ_4X.Icon_MZJ_4X", }, [204001] = { ID = 204001, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(手枪)", }, [204002] = { ID = 204002, Type = EWeaponPartType.Magazine, Name = "快速弹匣(手枪)", }, [204003] = { ID = 204003, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(手枪)", }, [204004] = { ID = 204004, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(冲锋枪,手枪)", }, [204005] = { ID = 204005, Type = EWeaponPartType.Magazine, Name = "快速弹匣(冲锋枪,手枪)", }, [204006] = { ID = 204006, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(冲锋枪,手枪)", }, [204007] = { ID = 204007, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(狙击枪)", }, [204008] = { ID = 204008, Type = EWeaponPartType.Magazine, Name = "快速弹匣(狙击枪)", }, [204009] = { ID = 204009, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(狙击枪)", }, [204010] = { ID = 204010, Type = EWeaponPartType.Magazine, Name = "子弹袋(霰弹枪)", }, [204011] = { ID = 204011, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(步枪,机枪)", }, [204012] = { ID = 204012, Type = EWeaponPartType.Magazine, Name = "快速弹匣(步枪,机枪)", }, [204013] = { ID = 204013, Type = EWeaponPartType.Magazine, Name = "快速扩容弹匣(步枪,机枪)", }, [204014] = { ID = 204014, Type = EWeaponPartType.Magazine, Name = "子弹袋(狙击枪,霰弹枪)", }, [204015] = { ID = 204015, Type = EWeaponPartType.Magazine, Name = "扩容弹匣(机枪)", }, [204016] = { ID = 204016, Type = EWeaponPartType.Magazine, Name = "并联弹匣(步枪)", }, [205001] = { ID = 205001, Type = EWeaponPartType.ButtStock, Name = "枪托(Micro UZI)", }, [205002] = { ID = 205002, Type = EWeaponPartType.ButtStock, Name = "战术枪托(步枪,冲锋枪,机枪)", }, [205003] = { ID = 205003, Type = EWeaponPartType.ButtStock, Name = "托腮板(狙击枪)", }, [205004] = { ID = 205004, Type = EWeaponPartType.ButtStock, Name = "箭袋(十字弩)", } }; ---@type table 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, }, }; --- 武器对应的子弹ID ---@type table 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, -- [103100] , [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, --[106007] , --[106008] = 301001, [106010] = 305001, --[106107] , [107001] = 307001, [107002] = 307002, --[107005] , [107094] = 307002, --[107098] , [107099] = 307002, [107905] = 307002, [190008] = 307102, [190009] = 307100, [190010] = 307103, [190011] = 307101, } ---@type table AmmoTable = { [301001] = { ItemName = "9毫米子弹", Count = 100, }, [301002] = { ItemName = "5.7毫米子弹", Count = 100, }, [302001] = { ItemName = "7.62毫米子弹", Count = 100, }, [303001] = { ItemName = "5.56毫米子弹", Count = 100, }, [304001] = { ItemName = "12口径霰弹", Count = 30, }, [305001] = { ItemName = ".45口径子弹", Count = 100, }, [306001] = { ItemName = ".300马格南子弹", Count = 24, }, [307001] = { ItemName = "弩箭", Count = 30, }, [307002] = { ItemName = "火箭弹", Count = 5, }, [307100] = { ItemName = "蓄力步枪能量弹药", Count = 5, }, [307101] = { ItemName = "激光弹药", Count = 5, }, [307102] = { ItemName = "爆破投射弹药", Count = 5, }, [307103] = { ItemName = "充能电池", Count = 5, }, [308001] = { ItemName = "信号弹", Count = 5, } }; WeaponSuits = { -- AKM突击步枪 [101001] = { [EWeaponPartType.Best] = { { 201009, 203002, 204013, }, { 201011, 203001, 204013, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- M16A4突击步枪 [101002] = { [EWeaponPartType.Best] = { { 201009, 203002, 204013, 205002, }, { 201011, 203001, 204013, 205002, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 }, [EWeaponPartType.ButtStock] = { 205002 } }, -- SCAR-L突击步枪 [101003] = { [EWeaponPartType.Best] = { { 201009, 203002, 204013, 202002, }, { 201011, 203001, 204013, 202002, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- M416突击步枪 [101004] = { [EWeaponPartType.Best] = { { 201009, 202002, 203002, 204013, 205002, }, { 201011, 202004, 203001, 204013, 205002, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 }, [EWeaponPartType.ButtStock] = { 205002 } }, -- GROZA突击步枪 [101005] = { [EWeaponPartType.Best] = { { 201011, 203002, 204013, }, }, [EWeaponPartType.Muzzle] = { 201011, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- AUG突击步枪 [101006] = { [EWeaponPartType.Best] = { { 201009, 202002, 203002, 204013 }, { 201011, 202002, 203002, 204013 }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- QBZ突击步枪 [101007] = { [EWeaponPartType.Best] = { { 201009, 202002, 203001, 204013, }, { 201011, 202004, 203002, 204013, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- M762突击步枪 [101008] = { [EWeaponPartType.Best] = { { 201009, 202002, 203001, 204013, }, { 201011, 202004, 203002, 204013, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- Mk47突击步枪 [101009] = { [EWeaponPartType.Best] = { { 201009, 202002, 203001, 204013, 205002, }, { 201011, 202004, 203002, 204013, 205002, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 }, [EWeaponPartType.ButtStock] = { 205002 } }, -- G36C突击步枪 [101010] = { [EWeaponPartType.Best] = { { 201009, 202002, 203001, 204013, }, { 201011, 202004, 203002, 204013, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- 蜜獾突击步枪 [101012] = { [EWeaponPartType.Best] = { { 201009, 203001, 204013, }, { 201011, 203002, 204013, }, }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 } }, -- UZI冲锋枪 [102001] = { [EWeaponPartType.Best] = { { 201002, 203001, 204006, 205001 }, { 201006, 203002, 204006, 205001 }, }, [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.ButtStock] = { 205001 } }, -- UMP45冲锋枪 [102002] = { [EWeaponPartType.Best] = { { 201002, 202002, 203001, 204006, }, { 201006, 202004, 203002, 204006, }, }, [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006 } }, -- Vector冲锋枪 [102003] = { [EWeaponPartType.Best] = { { 201002, 202002, 203001, 204006, 205002, }, { 201006, 202004, 203002, 204006, 205002, }, }, [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Grip] = { 202002, 202004, 202007 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.ButtStock] = { 205002 } }, -- 汤姆逊冲锋枪 [102004] = { [EWeaponPartType.Best] = { { 201006, 202002, 203001, 204006, }, { 201006, 202002, 203002, 204006, }, }, [EWeaponPartType.Muzzle] = { 201006, }, [EWeaponPartType.Grip] = { 202002, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, } }, -- 野牛冲锋枪 [102005] = { [EWeaponPartType.Best] = { { 201002, 203001, }, { 201006, 203002, }, }, [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 } }, -- MP5K冲锋枪 [102007] = { [EWeaponPartType.Best] = { { 201002, 202002, 203001, 204006, 205002, }, { 201006, 202004, 203002, 204006, 205002, }, }, [EWeaponPartType.Muzzle] = { 201002, 201004, 201006, }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014, 203015 }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.ButtStock] = { 205002 } }, -- P90冲锋枪 [102105] = { }, -- Kar98K狙击枪 [103001] = { [EWeaponPartType.Best] = { { 201007, 203005, 204014 }, }, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 }, [EWeaponPartType.ButtStock] = { 205003, 204014 } }, -- M24狙击枪 [103002] = { [EWeaponPartType.Best] = { { 201007, 203015, 204009, 205003 }, }, [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.Best] = { { 201007, 203015, 204009, 205003 }, }, [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.Best] = { { 201007, 202002, 203015, 204009, 205003 }, }, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009 }, [EWeaponPartType.ButtStock] = { 205003, 204014 } }, -- VSS射手步枪 [103005] = { [EWeaponPartType.Best] = { { 204009, 205003, }, }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009 }, [EWeaponPartType.ButtStock] = { 205003 } }, -- Mini14射手步枪 [103006] = { [EWeaponPartType.Best] = { { 201007, 203015, 204009, }, }, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009 } }, -- Mk14射手步枪 [103007] = { [EWeaponPartType.Best] = { { 201007, 203015, 204009, 205003, }, }, [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.Best] = { { 204014, }, }, [EWeaponPartType.ButtStock] = { 204014 } }, -- SLR射手步枪 [103009] = { [EWeaponPartType.Best] = { { 203015, 201007, 204009, 205003, }, }, [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.Best] = { { 203015, 201007, 204009, }, }, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007 }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009 } }, -- 莫辛纳甘狙击枪 [103011] = { [EWeaponPartType.Best] = { { 203015, 201007, 204014, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 }, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007 }, [EWeaponPartType.ButtStock] = { 205003, 204014 } }, -- Mk12狙击枪 [103100] = { [EWeaponPartType.Best] = { { 203015, 201007, 204009, 202002, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014, 203015 }, [EWeaponPartType.Muzzle] = { 201003, 201005, 201007 }, [EWeaponPartType.Magazine] = { 204007, 204008, 204009 }, [EWeaponPartType.Grip] = { 202001, 202002, 202004, 202005, 202006 } }, -- S686霰弹枪 [104001] = { [EWeaponPartType.Best] = { { 201001, 204014, }, }, [EWeaponPartType.Muzzle] = { 201001, }, [EWeaponPartType.ButtStock] = { 204014 } }, -- S1897霰弹枪 [104002] = { [EWeaponPartType.Best] = { { 201001, 204017, 204014, }, }, [EWeaponPartType.Muzzle] = { 201001, 201012, }, [EWeaponPartType.Magazine] = { 204017, }, [EWeaponPartType.ButtStock] = { 204014, } }, -- S12K霰弹枪 [104003] = { [EWeaponPartType.Best] = { { 201009, 203002, 204013, }, { 201012, 203001, 204013, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014 }, [EWeaponPartType.Muzzle] = { 201009, 201010, 201011, 201012, }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013, } }, -- DBS霰弹枪 [104004] = { [EWeaponPartType.Best] = { { 203002, 204017, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204017, }, }, -- M249轻机枪 [105001] = { [EWeaponPartType.Best] = { { 203001, 204013, 205002, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014 }, [EWeaponPartType.Magazine] = { 204011, 204012, 204013 }, [EWeaponPartType.ButtStock] = { 205002 } }, -- DP-28轻机枪 [105002] = { [EWeaponPartType.Best] = { { 203002, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203005, 203014 } }, -- P92手枪 [106001] = { [EWeaponPartType.Best] = { { 203001, 201006, 204006, 202007, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201006, }, [EWeaponPartType.Grip] = { 202007, }, [EWeaponPartType.Magazine] = { 204001, 204002, 204006, }, }, -- P1911手枪 [106002] = { [EWeaponPartType.Best] = { { 203001, 201006, 204006, 202007, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201006, }, [EWeaponPartType.Grip] = { 202007, }, [EWeaponPartType.Magazine] = { 204001, 204002, 204006, }, }, -- R1895手枪 [106003] = { [EWeaponPartType.Best] = { { 201006, }, }, [EWeaponPartType.Muzzle] = { 201006, } }, -- P18C手枪 [106004] = { [EWeaponPartType.Best] = { { 203001, 201006, 204005, 202007, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201006, }, [EWeaponPartType.Grip] = { 202007, }, [EWeaponPartType.Magazine] = { 204005, } }, -- R45手枪 [106005] = { [EWeaponPartType.Best] = { { 203001, 202007, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Grip] = { 202007, }, }, -- 短管霰弹枪 [106006] = { [EWeaponPartType.Best] = { { 201001, }, }, [EWeaponPartType.Muzzle] = { 201001 } }, -- 蝎式手枪 [106008] = { [EWeaponPartType.Best] = { { 203001, 201006, 202002, 205001, 204004, }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Muzzle] = { 201006, }, [EWeaponPartType.Grip] = { 202002, 202004, 202005, 202007 }, [EWeaponPartType.Magazine] = { 204004, }, -- 只有这个 [EWeaponPartType.ButtStock] = { 205001 } }, -- 沙漠之鹰手枪 [106010] = { [EWeaponPartType.Best] = { { 203002, 204006, 202007 }, }, [EWeaponPartType.Telescope] = { 203001, 203002, }, [EWeaponPartType.Magazine] = { 204004, 204005, 204006, }, [EWeaponPartType.Grip] = { 202007 } }, -- 十字弩 [107001] = { [EWeaponPartType.Best] = { { 203004, 205004 }, }, [EWeaponPartType.Telescope] = { 203001, 203002, 203003, 203004, 203014 }, [EWeaponPartType.Grip] = { 205004 } }, -- 大砍刀 [108001] = {}, -- 撬棍 [108002] = {}, -- 镰刀 [108003] = {}, -- 平底锅 [108004] = {} }; -- 配件类型名称对应表 ---@type table WeaponTypeName = { [EWeaponPartType.Muzzle] = { Chinese = "枪口", English = "Muzzle", SubId = 201, WeaponAttachmentSocketType = EWeaponAttachmentSocketType.GunPoint, }, [EWeaponPartType.Grip] = { Chinese = "握把", English = "Grip", SubId = 202, WeaponAttachmentSocketType = EWeaponAttachmentSocketType.Grip, }, [EWeaponPartType.Telescope] = { Chinese = "倍镜", English = "Telescope", SubId = 203, WeaponAttachmentSocketType = EWeaponAttachmentSocketType.OpticalSight, }, [EWeaponPartType.Magazine] = { Chinese = "弹匣", English = "Magazine", SubId = 204, WeaponAttachmentSocketType = EWeaponAttachmentSocketType.Magazine, }, [EWeaponPartType.ButtStock] = { Chinese = "枪托", English = "ButtStock", SubId = 205, WeaponAttachmentSocketType = EWeaponAttachmentSocketType.Gunstock, } }; --- 其他物品 ---@type table OtherItems = { -- Bag [501001] = { ItemName = "背包(1级)", }, [501002] = { ItemName = "背包(2级)", }, [501003] = { ItemName = "背包(3级)", }, [501004] = { ItemName = "背包(1级)", }, [501005] = { ItemName = "背包(2级)", }, [501006] = { ItemName = "背包(3级)", }, -- Helmet [502001] = { ItemName = "摩托车头盔(1级)", }, [502002] = { ItemName = "军用头盔(2级)", }, [502003] = { ItemName = "特种部队头盔(3级)", }, [502004] = { ItemName = "摩托车头盔(1级)", }, [502005] = { ItemName = "军用头盔(2级)", }, -- Armor [503001] = { ItemName = "警用防弹衣(1级)", }, [503002] = { ItemName = "警用防弹衣(2级)", }, [503003] = { ItemName = "军用防弹衣(3级)", }, [507001] = { ItemName = "滑雪板", }, [601001] = { ItemName = "能量饮料", }, [601002] = { ItemName = "肾上腺素", }, [601003] = { ItemName = "止痛药", }, [601004] = { ItemName = "绷带", }, [601005] = { ItemName = "急救包", }, [601006] = { ItemName = "全能医疗箱", }, -- Bomb [602001] = { ItemName = "震爆弹", }, [602002] = { ItemName = "烟雾弹", }, [602003] = { ItemName = "燃烧瓶", }, [602004] = { ItemName = "破片手榴弹", }, [603001] = { ItemName = "燃料", }, [604020] = { ItemName = "山地自行车", } } ---@class EBagType 护甲类型 ---@field Bag1 int32 ---@field Bag2 int32 ---@field Bag3 int32 EBagType = { Bag1 = 501001, Bag2 = 501002, Bag3 = 501003, } ---@class EArmorType 护甲类型 ---@field Armor1 int32 ---@field Armor2 int32 ---@field Armor3 int32 EArmorType = { Armor1 = 503001, Armor2 = 503002, Armor3 = 503003, } ---@class EHelmetType 头盔类型 ---@field Helmet1 int32 ---@field Helmet2 int32 ---@field Helmet3 int32 EHelmetType = { Helmet1 = 502001, Helmet2 = 502002, Helmet3 = 502003, } ---@class DefenceItem ---@field Helmet EHelmetType ---@field Armor EArmorType ---@class EMedicationType 药物类型 ---@field Beverage int32 能量饮料 ---@field Adrenaline int32 肾上腺素 ---@field Painkiller int32 止痛药 ---@field Bandage int32 绷带 ---@field FirstAidKit int32 急救包 ---@field MedicalKit int32 全能医疗箱 EMedicationType = { Beverage = 601001, -- 能量饮料 Adrenaline = 601002, -- 肾上腺素 Painkiller = 601003, -- 止痛药 Bandage = 601004, -- 绷带 FirstAidKit = 601005, -- 急救包 MedicalKit = 601006, -- 全能医疗箱 } ---@type EBombType EBombType = { Grenade = 602004, -- 手榴弹 FireBomb = 602003, -- 燃烧弹 StunGrenade = 602001, -- 震爆弹 SmokeBomb = 602002, -- 烟雾弹 }; ---@param InType EWeaponTypeNew ---@return table function GetWeaponListByTypeNew(InType, InTable) if InType == nil then return nil; end local List = {}; if InTable == nil then InTable = WeaponTable; end for WeaponId, Table in pairs(InTable) do if InTable[WeaponId] ~= nil and (InTable[WeaponId].Enable ~= nil and InTable[WeaponId].Enable == true) then if InType ~= nil and InType == InTable[WeaponId].TypeNew then table.insert(List, WeaponId); end end end return List; end