|
我做了个武器,明明加了开火音效而且音效文件在文件夹里但却还是没有声音,把音效换成原版的音效也没有用,这是咋回事,有大佬能分析一下吗
武器文件代码:
{
"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
|
|