找回密码
 初始化身份识别芯片
查看: 396|回复: 0

求助

[复制链接]

巡洋大副

星际纳粹

发表于 2024-7-23 04:12:37 | 显示全部楼层 |阅读模式
我做了个武器,明明加了开火音效而且音效文件在文件夹里但却还是没有声音,把音效换成原版的音效也没有用,这是咋回事,有大佬能分析一下吗

武器文件代码:

{
        "id":"UL_XD",
        "specClass":"projectile",
        "type":"BALLISTIC",
        "size":"MEDIUM",
        "displayArcRadius":600,
        "turretSprite":"graphics/UL/weapons/UL_XD_TR.png",
        "hardpointSprite":"graphics/UL/weapons/UL_XD_TR2.png",
        "renderHints":[RENDER_BARREL_BELOW],
        "turretOffsets":[15, 0,15, 1,15, 2,15, 3,15, -1,15, -2,15, -3],
        "turretAngleOffsets":[0, 5, 10, 15, -5, -10, -15],
        "hardpointOffsets":[15, 0,15, 1,15, 2,15, 3,15, -1,15, -2,15, -3],
        "hardpointAngleOffsets":[0, 5, 10, 15, -5, -10, -15],
        "barrelMode":"LINKED",
        "animationType":"MUZZLE_FLASH",
        "muzzleFlashSpec":{"length":30.0,
                                           "spread":10.0,
                                           "particleSizeMin":10.0,
                                           "particleSizeRange":10.0,
                                           "particleDuration":0.2,
                                           "particleCount":10,
                                           "particleColor":[255,0,0,200]},
        "projectileSpecId":"UL_XD_PJ",
        "autocharge":true,
        "requiresFullCharge":true,
        "fireSoundTwo":"UL_XD_fire",
        #"fireSoundOne":"hephaestus_fire_01_loud",
}




这是data/config/sounds.json所有内容:

{
"UL_XD_fire":
        [
                {"file":"sounds/weapons/UL_XD_fire.ogg","pitch":1.03,"volume":1.0},
                {"file":"sounds/weapons/UL_XD_fire.ogg","pitch":1.02,"volume":1.0},
                {"file":"sounds/weapons/UL_XD_fire.ogg","pitch":1.01,"volume":1.0},
        ],
}




这是音效文件名称:
UL_XD_fire.ogg

本版积分规则

Archiver|手机版|小黑屋|远行星号中文论坛

GMT+8, 2024-9-8 12:59

Powered by Discuz! X3.5

© 2001-2077 Tencent Cloud | Durian Software Studio

快速回复 返回顶部 返回列表