Own hurt/death sound did not work.

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]

Own hurt/death sound did not work.

Post by DrDrSheldonLeeCooper »

Hello I tried to add for my unit a death and a hurt sound.
But the sounds does not appear ingame.

musicconfig :
Hidden/Spoiler:
SoundProperties()
{
Name("Trandoshan_hurt");
Group("cis_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(1.0);
SampleList()
{
Sample(TrandoshanHurt1", 0.33);
Sample(TrandoshanHurt2", 0.33);
Sample(TrandoshanHurt3", 0.33);
}
}

SoundProperties()
{
Name("Trandoshan_death");
Group("cis_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(1.0);
SampleList()
{
Sample(TrandoshanDeath", 0.33);
}
}
cis_inf_default_trandoshan :
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
PointsToUnlock = "4"
UnitType = "assault"

MaxHealth = 550.0

MaxSpeed = 6.0 // base forward speed
MaxStrafeSpeed = 4.5 // base right/left speed

WEAPONSECTION = 1
WeaponName = "cis_weap_inf_a280"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "cis_weap_inf_thermaldetonator"
WeaponAmmo = 2
WeaponChannel = 1

WEAPONSECTION = 3
WeaponName = "cis_weap_inf_mine_dispenser"
WeaponAmmo = 1
WeaponChannel = 1

VOUnitType = 121
HurtSound = "Trandoshan_hurt"
DeathSound = "Trandoshan_death"
DamageRegionSound = "cis_inf_com_chatter_wound"
ShockFadeOutTime = ""
ShockFadeInTime = ""
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
LowHealthSound = ""
FoleyFXClass = "cis_inf_droid"
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Own hurt/death sound did not work.

Post by Marth8880 »

DrDrSheldonLeeCooper wrote:

Code: Select all

SoundProperties()
{
    Name("Trandoshan_hurt");
    Group("cis_vo");
    Inherit("pain_chatter_template");
    PlayInterval(0.0);
    PlayIntervalDev(0.0);
    PlayProbability(1.0);
    SampleList()
    {
        Sample(TrandoshanHurt1", 0.33);
        Sample(TrandoshanHurt2", 0.33);
        Sample(TrandoshanHurt3", 0.33);
    }
}

SoundProperties()
{
    Name("Trandoshan_death");
    Group("cis_vo");
    Inherit("pain_chatter_template");
    PlayInterval(0.0);
    PlayIntervalDev(0.0);
    PlayProbability(1.0);
    SampleList()
    {
        Sample(TrandoshanDeath", 0.33);
    }
}
Both properties' PlayInterval is set to 0. It won't work if it's set to 0, so set it to 1.0.


More information regarding PlayInterval:
[color=#FFFFFF]soundreadme.txt[/color] wrote:

Code: Select all

PlayInterval    | Time (in seconds) to wait before playing the sound again.
PlayIntervalDev | Time (in seconds) to vary the PlayInterval by.
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: Own hurt/death sound did not work.

Post by DrDrSheldonLeeCooper »

It didn´t work.

I see that the Magnaguard from the Tuskencamp assets has PlayInterval = "0.0" too.

SoundProperties()
{
Name("magna_hurt");
Group("cis_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(1.0);
SampleList()
{
Sample("magna_hurt", 0.33);
}
}
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Own hurt/death sound did not work.

Post by AceMastermind »

I'm not an audio guy, but try this:
Hidden/Spoiler:
[code]SoundProperties()
{
Name("Trandoshan_hurt");
Group("cis_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(1.0);
SampleList()
{
Sample(Trandoshan_hurt", 0.33);
}
}

SoundProperties()
{
Name("Trandoshan_death");
Group("cis_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(1.0);
SampleList()
{
Sample(Trandoshan_death", 0.33);
}
}[/code]
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: Own hurt/death sound did not work.

Post by DrDrSheldonLeeCooper »

Hidden/Spoiler:
SoundProperties()
{
Name("Trandoshan_hurt");
Group("cis_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(1.0);
SampleList()
{
Sample(Trandoshan_hurt", 0.33);
}
}
I don´t have a sound file which is called "Trandoshan_hurt".
The name of the Sound I created is "Trandoshan_hurt" and it includes my 3 samples ( Sample(TrandoshanHurt1", 0.33); Sample(TrandoshanHurt2", 0.33 Sample(TrandoshanHurt3", 0.33); )

TrandoshanHurt1,2,3 is only the name of the 3 wavesound files I have. Hope you understand me,I can´t explain it good :D

But you said you are not an audio guy so thank you that you tried to help me. :)
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Own hurt/death sound did not work.

Post by Marth8880 »

LOL, I just realized you're missing quotation marks in each Sample line!

For example, this:

Code: Select all

Sample(TrandoshanHurt1", 0.33);
should look more like this:

Code: Select all

Sample("TrandoshanHurt1", 0.33);
So yeah, fix that in each Sample line, and also, make sure your PlayInterval isn't set to 0!
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: Own hurt/death sound did not work.

Post by DrDrSheldonLeeCooper »

Thank you,I didn't saw that.
I will fix that when I'm home.
Post Reply