Custom Block SFX

aL BeasTie

Well-known member
Custom Block SFX by Bloodbane


Intro:
OpenBoR supports block ability but we can only have one kind block SFX which is block.wav inside sounds folder. This trick removes that limitation and allows various block SFX to be used in one mod.

This trick only sets one custom block SFX for each character but it's not big problem since there's only one block animation per character.

Procedure:
1st of all we need to disable default block SFX. For those who don't know, if block.wav is not available, OpenBoR will use default hitfx (beat1.wav) for block SFX. We don't want that SFX to be used.

1. Make a compatible wave file with silence as the sound.
2. Name that file block.wav and put in inside 'sounds' folder.

If done, we won't hear anything when character blocks an attack.

Where's the custom block SFX you ask? that's the 2nd part is all about which is about setting that file.

1. Obviously prepare the custom block SFX. Make sure it's compatible with OpenBoR.
2. Put that file in any folder inside data folder. Any folder will do but it's best to put it in 'sounds' folder.
3. Open character's text whom you want the SFX for. The character must be able to block of course.
4. Read his/her 'bflash' then open the text.

For instance:



Code:
name  Block
type  none
toflip  1
shadow  0

anim idle
        loop   0
        delay  4
        offset 16 16

        frame data/chars/misc/block01.gif
        frame data/chars/misc/block02.gif
        frame data/chars/misc/block03.gif
        frame data/chars/misc/block04.gif
        frame data/chars/misc/block05.gif
        frame data/chars/misc/block06.gif
        frame data/chars/misc/block07.gif


5. Add 'sound' to 1st frame. Sound points to the custom block SFX you have prepared. For instance, the above text would be like this:


Code:
name  Block
type  none
toflip  1
shadow  0

anim idle
        loop   0
        delay  4
        offset 16 16
        sound data/sounds/black.wav

        frame data/chars/misc/block01.gif
        frame data/chars/misc/block02.gif
        frame data/chars/misc/block03.gif
        frame data/chars/misc/block04.gif
        frame data/chars/misc/block05.gif
        frame data/chars/misc/block06.gif
        frame data/chars/misc/block07.gif



'black.wav' is the custom SFX here.

Everything's all set here. When this character blocks, 'block.wav' will be played but since it is a silence, nothing will be heard. OTOH block flash will be played together with the custom block SFX making it as if it's the block SFX.

For alternate block SFX, simply make another block flash like above then set different SFX to be played. After that set the flash to desired character.

 
Back
Top Bottom