Page 1 of 1

Shield hit sound [solved]

Posted: Thu Jun 25, 2015 12:26 pm
by DrDrSheldonLeeCooper
I wanted to make new sound when I hit the droideka´s shield.
But how can I do this?
I tried it with "CollisionShieldSound = "shieldhit"" (shieldhit is my sound)

But I don´t know where I have to put this.

Re: Shield hit sound

Posted: Thu Jun 25, 2015 4:12 pm
by Nedarb7
You could edit the shield effect to play the sound. I don't think there is anything in the odf regarding it though.

Re: Shield hit sound

Posted: Thu Jun 25, 2015 4:24 pm
by DrDrSheldonLeeCooper
you mean "droidekashield.fx"?
And what did I need to put in there?

Re: Shield hit sound

Posted: Mon Jun 29, 2015 10:06 pm
by Nedarb7
I think the effect is called com_sfx_shieldimpact_sm.fx. It also turns out that it already has a sound, that doesn't mean you can't change it though. You will see this right at the beginning of that file:

Code: Select all

ParticleEmitter("BigRings")
{
	MaxParticles(3.0000,3.0000);
	StartDelay(0.0000,0.0000);
	BurstDelay(0.0200, 0.1200);
	BurstCount(1.0000,1.0000);
	MaxLodDist(50.0000);
	MinLodDist(10.0000);
	BoundingRadius(5.0);
	SoundName("shield_impact_small defer")
	NoRegisterStep();
	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);
You'll want to change the name of the sound in SoundName(). The "defer" part at the end is used to make the sound's sound sound different on different occasions. It is not necessary, but it adds a nice touch (take the health droid sound as an example.)

Re: Shield hit sound

Posted: Tue Jun 30, 2015 10:41 am
by DrDrSheldonLeeCooper
thanks :)