04-23-2013, 08:12 PM
I'm working on a Full Conversion.
Custom Sounds:
I have created 5 custom sounds.
breath_loop1.ogg
breath_loop2.ogg
breath_loop3.ogg
breath_loop4.ogg
breath_loop5.ogg
After that i created 5 .snt files which a almost the same, except for the names.
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="breath_loop1" />
</Main>
</SOUNDS>
<PROPERTIES Volume="0.5" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
This is the "react_breath.snt" file which i have editted in 2 ways.
- I made it loop.
- I changed the name.
Both the .snt files and the .ogg files are in my "sounds" folder of my full conversion.
My "resources.cfg" also has this line:
<Directory Path="/Nightmare/sounds" AddSubDirs="true" />
Every time I open my Full Conversion with the .bat file, and every time none of the 5 custom sounds are working.
Got any idea why?
Switch Script
I tried a Switch script that looks like this:
if(asTimer == "PlayerAh")
{
int AhVariable = RandInt(1, 2)
switch(AhVariable)
{
case 1:
PlaySoundAtEntity("Aaaah1", "player_react_guardian1.snt", "Player", 0, false);
AddTimer("PlayerAh", RandInt(10, 20), "Ambience");
break;
case 2:
PlaySoundAtEntity("Aaaah2", "player_react_guardian2.snt", "Player", 0, false);
AddTimer("PlayerAh", RandInt(10, 20), "Ambience");
break;
}
}
(It's in the middle of a timer, that's why there is no "void" in the start, and it starts with an if-statement)
When I start my Full Conversion it says that it expects a ; at the bold text. That's right where the switch-line is.
Any help on this?
Custom Sounds:
Spoiler below!
I have created 5 custom sounds.
breath_loop1.ogg
breath_loop2.ogg
breath_loop3.ogg
breath_loop4.ogg
breath_loop5.ogg
After that i created 5 .snt files which a almost the same, except for the names.
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="breath_loop1" />
</Main>
</SOUNDS>
<PROPERTIES Volume="0.5" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
This is the "react_breath.snt" file which i have editted in 2 ways.
- I made it loop.
- I changed the name.
Both the .snt files and the .ogg files are in my "sounds" folder of my full conversion.
My "resources.cfg" also has this line:
<Directory Path="/Nightmare/sounds" AddSubDirs="true" />
Every time I open my Full Conversion with the .bat file, and every time none of the 5 custom sounds are working.
Got any idea why?
Switch Script
Spoiler below!
I tried a Switch script that looks like this:
if(asTimer == "PlayerAh")
{
int AhVariable = RandInt(1, 2)
switch(AhVariable)
{
case 1:
PlaySoundAtEntity("Aaaah1", "player_react_guardian1.snt", "Player", 0, false);
AddTimer("PlayerAh", RandInt(10, 20), "Ambience");
break;
case 2:
PlaySoundAtEntity("Aaaah2", "player_react_guardian2.snt", "Player", 0, false);
AddTimer("PlayerAh", RandInt(10, 20), "Ambience");
break;
}
}
(It's in the middle of a timer, that's why there is no "void" in the start, and it starts with an if-statement)
When I start my Full Conversion it says that it expects a ; at the bold text. That's right where the switch-line is.
Any help on this?