maxman
Well-known member
I have one specific character who's in his weapon mode. But the problem is that there's punch.wav that's heard when he's summoning helpers to attack with attack button. I tried to volume down the default punch.wav from being heard, but you can hear it since punch.wav has a sound. What I want is to have only one specific character to have no sound heard with punch.wav while others can do anim attack1 with punch.wav being heard.
How can I make punch.wav not to be heard with anim attack for one specific character while I have it heard for others? I'm not going to make no sound in punch.wav like empty.wav because it's gonna put me a lot more work to add punch.wav like sounds for every character's anim attack.
C:
anim attack1
@script
void punch = loadsample("data/sounds/punch.wav");
if(frame == 0){
playsample(punch, 0, 0, 0, 100, 0);
setlocalvar("noSound", 1);
}
if(frame >= 1){
setlocalvar("noSound", NULL());
}
@end_script
energycost 20 1 0
@cmd mpcost 20
@cmd aniLimit "ANI_CANT" 0 20
custentity bom
spawnframe 2 10 0 1 0
delay 2
offset 66 114
bbox 48 52 41 58
frame data/chars/beast/w1.png
delay 10
sound data/chars/beast/selected.wav
@cmd invincibleentity getlocalvar("self") 1000
frame data/chars/beast/w1.png
delay 20
frame data/chars/beast/w1.png
How can I make punch.wav not to be heard with anim attack for one specific character while I have it heard for others? I'm not going to make no sound in punch.wav like empty.wav because it's gonna put me a lot more work to add punch.wav like sounds for every character's anim attack.

