Shield hit sound [solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Shield hit sound [solved]

Post 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.
Last edited by DrDrSheldonLeeCooper on Tue Jun 30, 2015 10:41 am, edited 1 time in total.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Shield hit sound

Post 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.
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Shield hit sound

Post by DrDrSheldonLeeCooper »

you mean "droidekashield.fx"?
And what did I need to put in there?
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Shield hit sound

Post 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.)
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Shield hit sound

Post by DrDrSheldonLeeCooper »

thanks :)
Post Reply