Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brute music to stop
Josh9810 Offline
Junior Member

Posts: 34
Threads: 9
Joined: Oct 2012
Reputation: 0
#3
RE: Brute music to stop

Ok that will probably work but I want a custom sound playing and I dont know how to make one. I transferred the MP3 sound to OGG format and made an SNT file for it.


<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Music_custom_01.Ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="0.1" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

Then the script for the part when it plays.
void Onstart()
{
ya da da... (other collide callbacks)

AddEntityCollideCallback("cellar_grunt", "Music_stop", "no_more_FAG", true, 1);
AddEntityCollideCallback("cellar_grunt", "grunt_disappear_ready", "no_more_FAG_ready", true, 1);
}

void no_more_FAG_ready(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Music_stop", true);
}
void no_more_FAG(string &in asParent, string &in asChild, int alState)
{
StopSound("Music_custom_01.OGG", 1);
}
void rawr_sound(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Music_custom_01.ogg", true, 1, 1, 0, true);
}_________________________________________________________
I dont know if this affects it


void rawr(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cellar_grunt", true);
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_1", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_2", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_3", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_4", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_5", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_6", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_7", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_8", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_9", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_10", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_11", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_12", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_13", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_14", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_15", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_16", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_17", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_18", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_19", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_20", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_21", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_22", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_23", 0.1, "");
SetEntityActive("NO", true);
}
____________________________________________________________

There... is something wrong
11-26-2012, 05:29 AM
Find


Messages In This Thread
Brute music to stop - by Josh9810 - 11-23-2012, 08:43 AM
RE: Brute music to stop - by FlawlessHappiness - 11-23-2012, 09:18 AM
RE: Brute music to stop - by Josh9810 - 11-26-2012, 05:29 AM
RE: Brute music to stop - by FlawlessHappiness - 11-26-2012, 06:52 AM
RE: Brute music to stop - by Josh9810 - 11-26-2012, 07:00 AM
RE: Brute music to stop - by ferryadams10 - 11-26-2012, 09:25 AM



Users browsing this thread: 1 Guest(s)