Adding more than one sound to effects?

Making or wanting help making your own asset? Check in here
Post Reply
qwerq
Posts: 6
Joined: 2014-01-12 00:29

Adding more than one sound to effects?

Post by qwerq »

I'm overhauling some of the effects from vanilla BF2, but I'm not sure how to add more than one sound effect to an e_.tweak file (specifically e_exp_Xlarge.tweak).



I tried doing the following except it gave me an error:

...

ObjectTemplate.addTemplate S_e_exp_Xlarge_Start
ObjectTemplate.addTemplate S_e_exp_Xlarge_Start2

...

ObjectTemplate.activeSafe Sound S_e_exp_xlarge_Start
ObjectTemplate.modifiedByUser dsu
ObjectTemplate.soundFilename "common/material/impact/sound1.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
etc...

ObjectTemplate.activeSafe Sound S_e_exp_xlarge_Start2
ObjectTemplate.modifiedByUser dsu
ObjectTemplate.soundFilename "common/material/impact/sound2.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
etc ...





---------------------------
BF2 Error
---------------------------
Debug assertion failed!

Version: 1.5.3153-802.0 Build date:2011-6-28 12:12
Module: Fx
File: C:\dice\Projects\BF2Branches\Patch_1_50\Code\BF2\Game\Objects\Fx\EffectBundle.cpp
Line: 1274

Text: e_exp_Xlarge addBundleChilds() template not found:S_e_exp_Xlarge_Start2

Current confile:

---------------------------
Cancel Try Again Continue
---------------------------



Any ideas?
Image
Post Reply

Return to “PR:BF2 Community Modding”