Ver código fonte

【新增】让 Fab Defence UAS SKS 下导轨兼容 ALX 20 脚架

Fab Defence UAS SKS 枪身套件的下导轨(mod_tactical_002,原本兼容 BT10 V8 Atlas 与 KAC MWS 脚架转接器)新增 MDR BLK LBL ALX 20 脚架。
PJ568 1 mês atrás
pai
commit
f2de35b527

+ 2 - 2
README.md

@@ -16,7 +16,7 @@
 | CR 50DS 前准星槽与战术设备槽 | PPSh-41 枪管与枪托槽 |
 | --- | --- |
 | ![Chiappa 犀牛 50DS 左轮手枪](assets/50DS.webp) | ![PPSh-41 冲锋枪](assets/PPSh.webp) |
-| 前准星槽装瞄具基座;战术设备槽装 RK 系列前握把。 | 枪管槽装莫辛 220mm / 514mm / 730mm、SKS / OP-SKS、SVT-40 625mm 枪管或 SVDS 照门固定环(并挂三轨);SVDS 照门固定环的护木槽可装莫辛 200mm、M700、ORSIS T-5000M 或 SVDS 枪管,照门槽与 SKS / OP-SKS 照门固定环、SVT-40 625mm 枪管一样可装 TKPD 导轨防尘盖(该防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体互斥,SVDS 照门固定环另与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件互斥,其护木槽的原版 SVDS 护木与 PPSh-41 本体互斥);枪托槽装 M14ALCS (MOD-0) 枪托与 Zveno 缓冲管转接器;上机匣槽装 TAPCO Intrafuse 或 Fab Defence UAS SKS 枪身套件;730mm 莫辛枪管与 SVT-40 标准枪口装置的准星槽可装 MDR BLK LBL ALX 脚架(16 / 20),AA-12 457mm 枪管的导轨槽可装 M60 脚架,MP-18 与 Marlin MXLR 的枪托槽可装 KS-23 金属枪托;此外 RPD 520mm 枪管的枪口装置槽可装 AKM PBS-1 消音器。 |
+| 前准星槽装瞄具基座;战术设备槽装 RK 系列前握把。 | 枪管槽装莫辛 220mm / 514mm / 730mm、SKS / OP-SKS、SVT-40 625mm 枪管或 SVDS 照门固定环(并挂三轨);SVDS 照门固定环的护木槽可装莫辛 200mm、M700、ORSIS T-5000M 或 SVDS 枪管,照门槽与 SKS / OP-SKS 照门固定环、SVT-40 625mm 枪管一样可装 TKPD 导轨防尘盖(该防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体互斥,SVDS 照门固定环另与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件互斥,其护木槽的原版 SVDS 护木与 PPSh-41 本体互斥);枪托槽装 M14ALCS (MOD-0) 枪托与 Zveno 缓冲管转接器;上机匣槽装 TAPCO Intrafuse 或 Fab Defence UAS SKS 枪身套件;730mm 莫辛枪管与 SVT-40 标准枪口装置的准星槽可装 MDR BLK LBL ALX 脚架(16 / 20),AA-12 457mm 枪管的导轨槽可装 M60 脚架,Fab Defence UAS SKS 枪身套件的下导轨可装 ALX 20 脚架,MP-18 与 Marlin MXLR 的枪托槽可装 KS-23 金属枪托;此外 RPD 520mm 枪管的枪口装置槽可装 AKM PBS-1 消音器。 |
 
 ## 文档
 
@@ -54,7 +54,7 @@ All injections are idempotent: an id already present is never added twice.
 | CR 50DS front sight and tactical slots | PPSh-41 barrel and stock slots |
 | --- | --- |
 | ![Chiappa Rhino 50DS revolver](assets/50DS.webp) | ![PPSh-41 SMG](assets/PPSh.webp) |
-| The front sight slot takes a scope base; the tactical slot takes an RK-series foregrip. | The barrel slot takes a 220 / 514 / 730 mm Mosin, SKS / OP-SKS, SVT-40 625 mm barrel or the SVDS rear sight block (with the tri-rail mounted on it); the SVDS rear sight block's handguard slot takes a Mosin 200 mm, M700, ORSIS T-5000M or SVDS barrel, and its sight slot, like the SKS / OP-SKS rear sight blocks and the SVT-40 625 mm barrel, takes the TKPD railed dust cover (which is incompatible with the SKS / OP-SKS / SVT-40 / AVT-40 / SVDS weapons, and the SVDS rear sight block is additionally incompatible with the PPSh-41 dust cover and the TAPCO Intrafuse SKS chassis kit, while the vanilla SVDS handguards it accepts are incompatible with the PPSh-41 weapon itself); the stock slot takes the M14ALCS (MOD-0) buttstock and the Zveno buffer tube adapter; the upper receiver slot takes a TAPCO Intrafuse or Fab Defence UAS SKS chassis kit; the 730 mm Mosin barrel's and the SVT-40 standard muzzle's front sight slots take an MDR BLK LBL ALX bipod (16 / 20), the AA-12 457 mm barrel's rail slot takes an M60 bipod, and the MP-18 and Marlin MXLR stock slots take a KS-23 metal stock; additionally, the RPD 520 mm barrel's muzzle device slot takes an AKM PBS-1 suppressor. |
+| The front sight slot takes a scope base; the tactical slot takes an RK-series foregrip. | The barrel slot takes a 220 / 514 / 730 mm Mosin, SKS / OP-SKS, SVT-40 625 mm barrel or the SVDS rear sight block (with the tri-rail mounted on it); the SVDS rear sight block's handguard slot takes a Mosin 200 mm, M700, ORSIS T-5000M or SVDS barrel, and its sight slot, like the SKS / OP-SKS rear sight blocks and the SVT-40 625 mm barrel, takes the TKPD railed dust cover (which is incompatible with the SKS / OP-SKS / SVT-40 / AVT-40 / SVDS weapons, and the SVDS rear sight block is additionally incompatible with the PPSh-41 dust cover and the TAPCO Intrafuse SKS chassis kit, while the vanilla SVDS handguards it accepts are incompatible with the PPSh-41 weapon itself); the stock slot takes the M14ALCS (MOD-0) buttstock and the Zveno buffer tube adapter; the upper receiver slot takes a TAPCO Intrafuse or Fab Defence UAS SKS chassis kit; the 730 mm Mosin barrel's and the SVT-40 standard muzzle's front sight slots take an MDR BLK LBL ALX bipod (16 / 20), the AA-12 457 mm barrel's rail slot takes an M60 bipod, the Fab Defence UAS SKS chassis kit's lower rail takes an ALX 20 bipod, and the MP-18 and Marlin MXLR stock slots take a KS-23 metal stock; additionally, the RPD 520 mm barrel's muzzle device slot takes an AKM PBS-1 suppressor. |
 
 ## Documentation
 

+ 3 - 3
WeaponCrossModding.csproj

@@ -13,9 +13,9 @@
       钉到 4.1.2 是当前最稳的策略;服务端校验 mod 编译引用的 SPTarkov.Server.Core
       AssemblyVersion,使用 4.1.2 编译的 mod 可被 4.1.5 宿主加载。
     -->
-    <Version>0.6.0</Version>
-    <AssemblyVersion>0.6.0.0</AssemblyVersion>
-    <FileVersion>0.6.0.0</FileVersion>
+    <Version>0.7.0</Version>
+    <AssemblyVersion>0.7.0.0</AssemblyVersion>
+    <FileVersion>0.7.0.0</FileVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
   </PropertyGroup>
 

+ 2 - 0
docs/features.md

@@ -27,6 +27,7 @@
 - Aim Sports“三轨”的第一个战术配件槽(`mod_tactical_000`):新增 13 款前握把(Zenit RK 系列、镂空型、垂直型、BCM MOD.3、TangoDown Stubby BGV-MK46K;不含 KeyMod / M-LOK 型)、SV-98 隔热带与 Fortis Shift 战术前握把。
 - Aim Sports“三轨”的第二个战术配件槽(`mod_tactical_001`):新增 SV-98 隔热带。
 - UZI StormWerkz 护木底轨的 `mod_tactical` 槽:新增 Zenit RK 系列前握把。
+- Fab Defence UAS SKS 枪身套件的下导轨(`mod_tactical_002`):新增 MDR BLK LBL ALX 20 脚架(由 `WTT-ContentBackport` 注入)。
 - CR 50DS 的 `mod_tactical` 战术设备槽:新增 Zenit RK 系列前握把、KAC MWS 脚架转接器与 BT10 V8 Atlas 折叠脚架。
 - M14 SAGE International M14ALCS (MOD-0) 枪托的 `mod_pistol_grip` 握把位:新增 AR-15 Tactical Dynamics 镂空手枪式握把、Tyrant Designs MOD Chevron AR-15 镂空手枪式握把(黑 / 黄 / 红)与 AS VAL Rotor 43 手枪式握把附缓冲管转接器。
 - PPSh-41 冲锋枪的 `mod_reciever` 上机匣槽:新增 TAPCO Intrafuse SKS 枪身套件与 Fab Defence UAS SKS 枪身套件(二者与 PPSh-41 防尘盖共用同一槽位,天然互斥)。
@@ -75,6 +76,7 @@
 - First tactical slot (`mod_tactical_000`) of the Aim Sports tri-rail: adds 13 foregrips (Zenit RK series, skeletonized, vertical, BCM MOD.3, TangoDown Stubby BGV-MK46K; excluding KeyMod / M-LOK types), the SV-98 heat ribbon and the Fortis Shift tactical foregrip.
 - Second tactical slot (`mod_tactical_001`) of the Aim Sports tri-rail: adds the SV-98 heat ribbon.
 - `mod_tactical` slot of the UZI StormWerkz lower handguard rail: adds the Zenit RK series foregrips.
+- Lower rail (`mod_tactical_002`) of the Fab Defence UAS SKS chassis kit: adds the MDR BLK LBL ALX 20 bipod (injected by `WTT-ContentBackport`).
 - `mod_tactical` slot of the CR 50DS: adds the Zenit RK series foregrips, the KAC MWS bipod adapter and the BT10 V8 Atlas folding bipod.
 - `mod_pistol_grip` slot of the M14 SAGE International M14ALCS (MOD-0) buttstock: adds the AR-15 Tactical Dynamics skeletonized pistol grip, the Tyrant Designs MOD Chevron AR-15 skeletonized pistol grips (black / yellow / red) and the AS VAL Rotor 43 pistol grip with buffer tube adapter.
 - `mod_reciever` upper receiver slot of the PPSh-41: adds the TAPCO Intrafuse SKS chassis kit and the Fab Defence UAS SKS chassis kit (both share the same slot that carries the PPSh-41 dust cover, so they are inherently mutually exclusive with it).

+ 2 - 0
docs/verification.md

@@ -30,6 +30,7 @@
    - 在 RPD 520mm 枪管的枪口装置槽安装 AKM PBS-1 7.62x39 消音器;
    - 在 730mm 标准莫辛枪管或 SVT-40 标准枪口装置的前准星槽安装 MDR BLK LBL ALX 脚架(16 或 20 型号);
    - 在 AA-12 457mm 枪管的导轨槽安装 M60 脚架;
+   - 在 Fab Defence UAS SKS 枪身套件的下导轨(`mod_tactical_002`)安装 MDR BLK LBL ALX 20 脚架;
    - 在 MP-18 或 Marlin MXLR 的枪托槽安装 KS-23 金属枪托;
    - 尝试同时安装 PPSh-41 防尘盖与 HUXWRX HX-QD 消音器,确认二者互斥;
    - 尝试在 PPSh-41 上同时安装 SKS 枪身套件与任一非 KS-23 枪托(含 Zveno 缓冲管转接器),确认二者互斥;
@@ -85,6 +86,7 @@ The slot names should cover `mod_scope`, `mod_sight_front`, `mod_sight_rear`, `m
    - mount an AKM PBS-1 7.62x39 suppressor on the muzzle device slot of the RPD 520 mm barrel;
    - mount an MDR BLK LBL ALX bipod (16 or 20 model) on the front sight slot of the 730 mm standard Mosin barrel or the SVT-40 standard muzzle;
    - mount an M60 bipod on the rail slot of the AA-12 457 mm barrel;
+   - mount an MDR BLK LBL ALX 20 bipod on the lower rail (`mod_tactical_002`) of the Fab Defence UAS SKS chassis kit;
    - mount a KS-23 metal stock on the stock slot of the MP-18 or Marlin MXLR;
    - try mounting the PPSh-41 dust cover and a HUXWRX HX-QD suppressor together and confirm they are mutually exclusive;
    - try mounting an SKS chassis kit on the PPSh-41 together with any non-KS-23 stock (including the Zveno buffer tube adapter) and confirm they are mutually exclusive;

+ 9 - 1
src/Mod.cs

@@ -56,7 +56,8 @@ namespace Pj568.WeaponCrossModding;
 ///  35. 让 SVDS 照门固定环的护木槽(mod_handguard)支持安装 SVDS 枪管,且 SVDS 枪管与自身互斥;
 ///  36. 让 SVDS 照门固定环与 PPSh-41 防尘盖双向互不兼容;
 ///  37. 让 SVDS 照门固定环与 TAPCO Intrafuse SKS 枪身套件双向互不兼容;
-///  38. 让 SVDS 照门固定环护木槽可装的 3 种原版 SVDS 护木与 PPSh-41 枪本体双向互不兼容。
+///  38. 让 SVDS 照门固定环护木槽可装的 3 种原版 SVDS 护木与 PPSh-41 枪本体双向互不兼容;
+///  39. 让 Fab Defence UAS SKS 枪身套件的下导轨(mod_tactical_002)支持安装 MDR BLK LBL ALX 20 脚架。
 ///
 /// 做法:往目标槽的 SlotFilter.Filter(HashSet&lt;MongoId&gt;)追加物品 id(幂等)。
 /// </summary>
@@ -139,6 +140,9 @@ public class WeaponCrossModdingPlugin(
     private const string AimSportsTriRailSecondTacticalSlotName = "mod_tactical_001";
     private const string AimSportsTriRailLabel = "Aim Sports tri-rail";
 
+    // Fab Defence UAS SKS 枪身套件的下导轨(原本兼容脚架的第三个战术槽)。
+    private const string FabDefenceUasLowerRailSlotName = "mod_tactical_002";
+
     // UZI StormWerkz 护木底轨(mod_tactical 槽)。
     private const string StormwerkzLowerHandguardRailId = "66992f7d9950f5f4cd0602a8";
     private const string StormwerkzLowerHandguardLabel = "UZI StormWerkz lower handguard rail";
@@ -320,6 +324,7 @@ public class WeaponCrossModdingPlugin(
     private const string Svt40MuzzleStdLabel = "SVT-40 muzzle";
     private const string SvdsRearSightBlockLabel = "SVDS rear sight block";
     private const string SvdsBarrelLabel = "SVDS barrel";
+    private const string FabDefenceUasSksLabel = "Fab Defence UAS SKS";
 
     public Task OnLoadAsync(CancellationToken cancellationToken)
     {
@@ -406,6 +411,9 @@ public class WeaponCrossModdingPlugin(
             // Aim Sports“三轨”的瞄具槽:追加 M14 DCSB 瞄具基座。
             AddItemIdsToSlot(items, AimSportsTriRailId, AimSportsTriRailLabel, ScopeSlotName, M14DcsbMountId);
 
+            // Fab Defence UAS SKS 枪身套件的下导轨(mod_tactical_002):追加 MDR BLK LBL ALX 20 脚架。
+            AddItemIdsToSlot(items, FabDefenceUasSksId, FabDefenceUasSksLabel, FabDefenceUasLowerRailSlotName, AlxBipod20Id);
+
             // M14ALCS (MOD-0) 枪托的握把位:追加 AR-15 Tactical Dynamics 镂空手枪式握把、
             // Tyrant Designs MOD Chevron 镂空手枪式握把(黑 / 黄 / 红)与 AS VAL Rotor 43 手枪式握把。
             AddItemIdsToSlot(items, M14AlcsButtstockId, M14ButtstockLabel, M14AlcsPistolGripSlotName,

+ 15 - 0
tests/WeaponCrossModding.Tests/ModTests.cs

@@ -458,6 +458,21 @@ public class WeaponCrossModdingPluginTests
         Assert.Equal(3, filter.Count);
     }
 
+    [Fact]
+    public async Task AddsAlxBipod20ToFabDefenceUasLowerRail()
+    {
+        var kit = ItemWithSlot("stock_sks_fab_defence_uas_sks", "mod_tactical_002", Bt10AtlasBipodId);
+        var items = new Dictionary<MongoId, TemplateItem> { [new MongoId(FabDefenceUasSksId)] = kit };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        var filter = FilterOf(kit, "mod_tactical_002");
+        Assert.Contains(new MongoId(Bt10AtlasBipodId), filter);
+        Assert.Contains(new MongoId(AlxBipod20Id), filter);
+        Assert.DoesNotContain(new MongoId(AlxBipod16Id), filter);
+        Assert.Equal(2, filter.Count);
+    }
+
     [Fact]
     public async Task AddsMovedBarrelsAndSvdsBarrelToSvdsRearSightBlockHandguardSlot()
     {