|
|
1 month ago | |
|---|---|---|
| .githooks | 1 month ago | |
| .github | 1 month ago | |
| assets | 1 month ago | |
| docs | 1 month ago | |
| scripts | 1 month ago | |
| src | 1 month ago | |
| tests | 1 month ago | |
| .gitignore | 1 month ago | |
| LICENSE | 1 month ago | |
| README.md | 1 month ago | |
| WeaponCrossModding.csproj | 1 month ago |
一个 SPT 4.1.x 服务端插件:往目标物品槽的过滤器白名单里追加配件 id,让指定武器、瞄具、枪托与握把实现跨武器兼容;并让 20x1mm 玩具枪(经 Marlin MXLR 的 5 发管状弹仓)兼容 7.62x25 托卡列夫弹药。
本插件在服务端加载时,向目标物品槽的 Slot.Properties.Filters[].Filter(HashSet<MongoId>)白名单追加物品 id;
对互斥关系,则往 TemplateItem.Properties.ConflictingItems 追加物品 id。
所有注入均幂等:id 已存在时不重复添加。
| UZI StormWerkz 顶盖导轨与护木底轨 | CR 200DS 前准星槽 |
|---|---|
![]() |
![]() |
| CR 50DS 前准星槽与战术设备槽 | PPSh-41 枪管、枪托、上机匣槽 |
|---|---|
![]() |
![]() |
SPT 4.1.x。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
An SPT 4.1.x server plugin that appends accessory ids to slot filter whitelists, enabling cross-weapon compatibility between selected weapons, optics, stocks and grips; it also lets the 20x1mm toy gun accept 7.62x25 Tokarev ammunition via the Marlin MXLR 5-round tubular magazine.
On load, the plugin appends item ids to the Slot.Properties.Filters[].Filter (HashSet<MongoId>) whitelist of the target item slots;
for mutual exclusions, it appends item ids to TemplateItem.Properties.ConflictingItems.
All injections are idempotent: an id already present is never added twice.
| UZI StormWerkz top cover rail and lower handguard rail | CR 200DS front sight slot |
|---|---|
![]() |
![]() |
| CR 50DS front sight and tactical slots | PPSh-41 barrel, stock and upper receiver slots |
|---|---|
![]() |
![]() |
SPT 4.1.x.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%