Page 1 of 1

Shield sound won't apply [Solved]

Posted: Tue Dec 04, 2018 2:01 pm
by Benoz
I have created a custom shield impact sound effect called "com_sfx_shield_sound2" when blaster bolts hit the shield from the shield dispenser.
But when I shoot the shield the blaster won't play the new sound but instead plays the standard sfx when the bolt hits the ground.

I changed this line in my com_weap_inf_rifle.odf:
ImpactEffectShield = "com_sfx_shield_sound2"

I also have no other soundeffects in the child odfs.
The world also loads my sound file.

Does anybody know what it could be?

Re: Shield sound won't apply

Posted: Tue Dec 04, 2018 5:27 pm
by Delta-1035
The66Order66 wrote:ImpactEffectShield = "com_sfx_shield_sound2"
This line is for the impact effect, not for the sound. I don't think you can setup different sounds for different impacts.

Re: Shield sound won't apply

Posted: Wed Dec 05, 2018 6:16 pm
by Marth8880
Delta-1035 wrote:This line is for the impact effect, not for the sound. I don't think you can setup different sounds for different impacts.
You can set a sound cue for a particle emitter to play. See here: http://www.secretsociety.com/forum/down ... dhooks.txt

Code: Select all

*******************************************************************************
*******************************************************************************
FX (particle effects)
===============================================================================

It is possible to attach an ambient sound to a particle effect.  This is 
performed by modifying the SoundName("soundPropertyID") property of the 
ParticleEmitter() section in an .fx file.  For example...

ParticleEmitter("BlackSmoke")
{
    MaxParticles(20000.0000,20000.0000);
    StartDelay(0.0000,0.0000);
    BurstDelay(0.5000, 0.5000);
    BurstCount(1.0000,1.0000);
    MaxLodDist(1000.0000);
    MinLodDist(800.0000);
    SoundName("com_amb_heavyfire");
    Size(1.0000, 1.0000);
    Hue(255.0000, 255.0000);
    Saturation(255.0000, 255.0000);
    Value(255.0000, 255.0000);
    Alpha(255.0000, 255.0000);
    <...snip...>

Re: Shield sound won't apply

Posted: Thu Dec 06, 2018 5:13 pm
by Benoz
It's still not working.
I added this line in my weapon_ord.odf

ImpactEffectShield = "com_sfx_shieldimpact_sm"

and I linked my custom sound to the effect. There's nothing wrong with the sound implementing to the map as I already use custom sounds.
There must be something wrong with the deployable shield object. It's labeled as ClassLabel = shield.
Do you know where I can inspect the propeties of the class labels?

EDIT
Nvm, the sound was just to quiet. Topic solved