求助
我做了个武器,明明加了开火音效而且音效文件在文件夹里但却还是没有声音,把音效换成原版的音效也没有用,这是咋回事,有大佬能分析一下吗武器文件代码:
{
"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":,
"turretOffsets":,
"turretAngleOffsets":,
"hardpointOffsets":,
"hardpointAngleOffsets":,
"barrelMode":"LINKED",
"animationType":"MUZZLE_FLASH",
"muzzleFlashSpec":{"length":30.0,
"spread":10.0,
"particleSizeMin":10.0,
"particleSizeRange":10.0,
"particleDuration":0.2,
"particleCount":10,
"particleColor":},
"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
页:
[1]