• 注册
  • 问题教程 问题教程 关注:3146 内容:676

    请问一下如何制作单独的弹匣,就是m4a1的60发弹鼓做成全口径,然后只让个别枪用。

  • 查看作者
  • 打赏作者
  • 38
  • 问题教程
  • 略有小成
    VIP3
    社区版主

    请问一下如何制作单独的弹匣,就是m4a1的60发弹鼓做成全口径,然后只让个别枪用。

    略有小成
    VIP3
    社区版主

    已经解决,以下是具体做法

    您需要下载安装

    Visual Studio Code


    第一部分:创建全口径武器

    ①:

    新建一个.json文件,超级模组的格式写一份标准单独物品文件

    {
    "tpl": "XXXX", //这里XXXX替换成你修改物品的原代码
    "items":
    {

    },
    "handbook":
    {
    "Id": "XXXX",//这里改成你修改后的id
    "ParentId": "YYYY",//这里改成你物品所属的品类一般看 "_parent" 这后面的代码
    "Price": 5000
    },
    "assort":
    [
    ]
    }

    请对照这个表编写

    注意:(1)在使用所示文件时文件中中除“ ”号内蓝色部分不要有任何中文字符。绿色中文需在编程结束后全部删除,防止出现错误,切记全篇通用!!!!!!!!



    回复
    初窥堂奥
    VIP2

    做成全口径,还要能用的话,不单单要改弹匣。

    首先,你要把弹匣给改为兼容所有口径的子弹:在弹匣的 【子弹白名单】 里添加所有口径的子弹

    然后,你要在所有枪的【弹匣白名单】里,添加M4的60发弹匣

    最后,还要在所有枪的 【子弹白名单】 里,添加所有口径的子弹


    有可能有地方我漏掉了,但要实现你说的功能,要改的地方只多不少

    回复
    炉火纯青
    2021

    枪的口径不同子弹能发射,坐等

    回复
    初来乍到

    全口径好说,个别枪用比较难搞,可能要改游戏的item

    回复
    初窥堂奥

    去找超级模块的独立物品教程贴,我记得几个月前看过这种,需要做独立弹匣,兼容这个弹匣的独立枪机这两个就可以了,其他部分可以在游戏里自己组

    回复
    自成一派
    VIP3

    你这个想法工作量挺大的


    回复
    略有小成
    VIP3
    社区版主

    已解决,以写好教程但字太多无法回复。。。。

    回复
    略有小成
    VIP3
    社区版主

    ②:

    前往单机塔克夫在线修改/资料站寻找需要修改的枪械,这里以M4A1为例其他同理

    点击那个绿色的笔

    然后看这个

    然后复制最后面那串代码(5447a9cd4bdc2dbd208b4567)


    ③:

    打开你的游戏根目录打开以下路径:Aki_Data\Server\database\templates

    打开items.json这个文件

    按住 Ctrl+F 打开搜索,搜索我们之前复制的M4代码(5447a9cd4bdc2dbd208b4567

    注意我们要找的是“_id”:这一行


    回复
    略有小成
    VIP3
    社区版主
    然后复制这一段

    "_id": "5447a9cd4bdc2dbd208b4567",
    "_name": "weapon_colt_m4a1_556x45",
    "_parent": "5447b5f14bdc2d61278b4567",
    "_type": "Item",
    "_props": {
    "Name": "Штурмовая винтовка Colt M4A1 5.56x45",
    "ShortName": "M4A1 5.56x45",
    "Description": "Colt M4A1- штурмовая винтовка (карабин) созданная в США на базе платформы AR-15 под патрон 5.56x45 NATO. Планировалась к вооружению экипажей боевых машин и расчетов техники, которым было необходимо иметь оружие меньших габаритов чем штатное вооружение но использующее стандартный боеприпас. Однако вскоре US SOCOM (Командование Сил Специальных Операций США) приняло на вооружение M4A1 для всех входящих в его состав подразделений. Затем последовало полное принятие M4A1 на вооружение в армии и морской пехоте США.",
    "Weight": 0.38,
    "BackgroundColor": "black",
    "Width": 1,
    "Height": 1,
    "StackMaxSize": 1,
    "ItemSound": "weap_ar",
    "Prefab": {
    "path": "assets/content/weapons/m4a1/weapon_colt_m4a1_556x45_container.bundle",
    "rcid": ""
    },
    "UsePrefab": {
    "path": "",
    "rcid": ""
    },
    "StackObjectsCount": 1,
    "NotShownInSlot": false,
    "ExaminedByDefault": true,
    "ExamineTime": 1,
    "IsUndiscardable": false,
    "IsUnsaleable": false,
    "IsUnbuyable": false,
    "IsUngivable": false,
    "IsLockedafterEquip": false,
    "QuestItem": false,
    "LootExperience": 30,
    "ExamineExperience": 8,
    "HideEntrails": false,
    "RepairCost": 166,
    "RepairSpeed": 15,
    "ExtraSizeLeft": 0,
    "ExtraSizeRight": 0,
    "ExtraSizeUp": 0,
    "ExtraSizeDown": 0,
    "ExtraSizeForceAdd": false,
    "MergesWithChildren": true,
    "CanSellOnRagfair": true,
    "CanRequireOnRagfair": true,
    "ConflictingItems": [],
    "Unlootable": false,
    "UnlootableFromSlot": "FirstPrimaryWeapon",
    "UnlootableFromSide": [],
    "AnimationVariantsNumber": 0,
    "DiscardingBlock": false,
    "RagFairCommissionModifier": 1,
    "IsAlwaysAvailableForInsurance": false,
    "DiscardLimit": -1,
    "Grids": [],
    "Slots": [
    {
    "_name": "mod_pistol_grip",
    "_id": "55d354084bdc2d8c2f8b4568",
    "_parent": "5447a9cd4bdc2dbd208b4567",
    "_props": {
    "filters": [
    {
    "Shift": 0,
    "Filter": [
    "5c0e2ff6d174af02a1659d4a",
    "5a33e75ac4a2826c6e06d759",
    "55d4b9964bdc2d1d4e8b456e",
    "571659bb2459771fb2755a12",
    "602e71bd53a60014f9705bfa",
    "6113c3586c780c1e710c90bc",
    "6113cc78d3a39d50044c065a",
    "6113cce3d92c473c770200c7",
    "5cc9bcaed7f00c011c04e179",
    "5bb20e18d4351e00320205d5",
    "5bb20e0ed4351e3bac1212dc",
    "6193dcd0f8ee7e52e4210a28",
    "5d025cc1d7ad1a53845279ef",
    "5c6d7b3d2e221600114c9b7d",
    "57c55efc2459772d2c6271e7",
    "57af48872459771f0b2ebf11",
    "57c55f092459772d291a8463",
    "57c55f112459772d28133310",
    "57c55f172459772d27602381",
    "5a339805c4a2826c6e06d73d",
    "55802f5d4bdc2dac148b458f",
    "5d15cf3bd7ad1a67e71518b2",
    "59db3a1d86f77429e05b4e92",
    "5fbcbd6c187fea44d52eda14",
    "59db3acc86f7742a2c4ab912",
    "59db3b0886f77429d72fb895",
    "615d8faecabb9b7ad90f4d5d",
    "5b07db875acfc40dc528a5f6"
    ]
    }
    ]
    },
    "_required": true,
    "_mergeSlotWithChildren": false,
    "_proto": "55d30c4c4bdc2db4468b457e"
    },
    {
    "_name": "mod_magazine",
    "_id": "55d3555c4bdc2d962f8b4568",
    "_parent": "5447a9cd4bdc2dbd208b4567",
    "_props": {
    "filters": [
    {
    "AnimationIndex": -1,
    "Filter": [
    "55d4887d4bdc2d962f8b4570",
    "61840bedd92c473c77021635",
    "61840d85568c120fdd2962a5",
    "5c05413a0db834001c390617",
    "5c6d450c2e221600114c997d",
    "5c6d42cb2e2216000e69d7d1",
    "59c1383d86f774290a37e0ca",
    "5aaa5e60e5b5b000140293d6",
    "5448c1d04bdc2dff2f8b4569",
    "5aaa5dfee5b5b000140293d3",
    "5d1340b3d7ad1a0b52682ed7",
    "544a378f4bdc2d30388b4567",
    "5d1340bdd7ad1a0e8d245aab",
    "55802d5f4bdc2dac148b458e",
    "5d1340cad7ad1a0b0b249869",
    "6241c2c2117ad530666a5108",
    "5c6592372e221600133e47d7",
    "544a37c44bdc2d25388b4567",
    "5c6d46132e221601da357d56"
    ]
    }
    ]
    },
    "_required": false,
    "_mergeSlotWithChildren": false,
    "_proto": "55d30c394bdc2dae468b4577"
    },


    回复
    略有小成
    VIP3
    社区版主
    {
    "_name": "mod_reciever",
    "_id": "55d5a2ec4bdc2d972f8b4575",
    "_parent": "5447a9cd4bdc2dbd208b4567",
    "_props": {
    "filters": [
    {
    "Shift": 0,
    "Filter": [
    "5c0e2f26d174af02a9625114",
    "55d355e64bdc2d962f8b4569",
    "5d4405aaa4b9361e6a4e6bd3",
    "5c07a8770db8340023300450",
    "59bfe68886f7746004266202"
    ]
    }
    ]
    },
    "_required": true,
    "_mergeSlotWithChildren": false,
    "_proto": "55d30c4c4bdc2db4468b457e"
    },


    回复
    略有小成
    VIP3
    社区版主
    {
    "_name": "mod_stock",
    "_id": "55d5a3074bdc2d61338b4574",
    "_parent": "5447a9cd4bdc2dbd208b4567",
    "_props": {
    "filters": [
    {
    "Shift": 0,
    "Filter": [
    "5a33ca0fc4a282000d72292f",
    "5c0faeddd174af02a962601f",
    "5649be884bdc2d79388b4577",
    "5d120a10d7ad1a4e1026ba85",
    "5b0800175acfc400153aebd4",
    "5947e98b86f774778f1448bc",
    "5947eab886f77475961d96c5",
    "602e3f1254072b51b239f713",
    "5c793fb92e221644f31bfb64",
    "5c793fc42e221600114ca25d",
    "591aef7986f774139d495f03",
    "591af10186f774139d495f0e"
    ]
    }
    ]
    },
    "_required": true,
    "_mergeSlotWithChildren": false,
    "_proto": "55d30c4c4bdc2db4468b457e"
    },
    {
    "_name": "mod_charge",
    "_id": "55d5a30f4bdc2d882f8b4574",
    "_parent": "5447a9cd4bdc2dbd208b4567",
    "_props": {
    "filters": [
    {
    "Shift": 0,
    "Filter": [
    "5c0faf68d174af02a96260b8",
    "56ea7165d2720b6e518b4583",
    "55d44fd14bdc2d962f8b456e",
    "5ea16d4d5aad6446a939753d",
    "5bb20dbcd4351e44f824c04e",
    "6033749e88382f4fab3fd2c5",
    "5b2240bf5acfc40dc528af69",
    "5d44334ba4b9362b346d1948",
    "5f633ff5c444ce7e3c30a006"
    ]
    }
    ]
    },
    "_required": true,
    "_mergeSlotWithChildren": false,
    "_proto": "55d30c4c4bdc2db4468b457e"
    }


    回复

    请登录之后再进行评论

    登录
    超级模块衍生专区
  • 今日 0
  • 内容 2216
  • 关注 3146
  • 聊天
    关注 46

    【招募】GRIFFIN TKF项目开工 期待你的加入 || 你是否想加入格里芬书写自己与人形的故事

  • 签到
  • 任务
  • 发布
  • 模式切换
  • 偏好设置
  • 帖子间隔 侧栏位置: