Page 1 of 1

Own hurt/death sound did not work.

Posted: Wed Jun 24, 2015 1:56 pm
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"

Re: Own hurt/death sound did not work.

Posted: Thu Jun 25, 2015 12:34 am
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.

Re: Own hurt/death sound did not work.

Posted: Thu Jun 25, 2015 7:45 am
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);
}
}

Re: Own hurt/death sound did not work.

Posted: Thu Jun 25, 2015 10:44 am
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]

Re: Own hurt/death sound did not work.

Posted: Thu Jun 25, 2015 11:22 am
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. :)

Re: Own hurt/death sound did not work.

Posted: Fri Jun 26, 2015 2:11 am
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!

Re: Own hurt/death sound did not work.

Posted: Fri Jun 26, 2015 3:02 am
by DrDrSheldonLeeCooper
Thank you,I didn't saw that.
I will fix that when I'm home.