04-28-2012, 12:21 AM
Hey guys, I guess you can infer from the title what my problem is; I have music playing when I start the map, yet the music file isn't on my computer. It used to work fine, I would enter a room and the music would start, very simple, yet all of a sudden it started playing on start up, without even being close to the script zone. I then deleted the function, script zone, and Callback, yet it was still playing. I then removed the file from my computer completely, but it still plays.
If anyone could help me it would be greatly appreciated.
Mike.
(Here's the .hps file if it helps)
void OnStart()
{
//Stuff
AddUseItemCallback("", "Sec_Blue_1", "Security_Panel_3", "Unlock_Door_1", true);
//CollideCallBacks
AddEntityCollideCallback("Player", "Death", "Fall", false, 1);
AddEntityCollideCallback("Player", "Music_1", "MusicPlay_1", true, 1);
AddEntityCollideCallback("Player", "intro", "cr1", true, 1);
}
void cr1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "general_speaker_noise.snt", "Player", 0, false);
PlaySoundAtEntity("", "CR_1.snt", "Player", 0, false);
}
void Unlock_Door_1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_infected_1", false, true);
PlaySoundAtEntity("", "Security_Slide_1.snt", "door_infected_1", 0, false);
}
void MusicPlay_1(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Penumbra_BP_A15.ogg", true, 2, 3, 0, true);
}
void Fall(string &in asParent, string &in asChild, int alState)
{
GivePlayerDamage(200, "Fall", true, true);
CheckPoint("checkpoint1","CP_1","", "", "");
}
If anyone could help me it would be greatly appreciated.
Mike.
(Here's the .hps file if it helps)
Spoiler below!
void OnStart()
{
//Stuff
AddUseItemCallback("", "Sec_Blue_1", "Security_Panel_3", "Unlock_Door_1", true);
//CollideCallBacks
AddEntityCollideCallback("Player", "Death", "Fall", false, 1);
AddEntityCollideCallback("Player", "Music_1", "MusicPlay_1", true, 1);
AddEntityCollideCallback("Player", "intro", "cr1", true, 1);
}
void cr1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "general_speaker_noise.snt", "Player", 0, false);
PlaySoundAtEntity("", "CR_1.snt", "Player", 0, false);
}
void Unlock_Door_1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_infected_1", false, true);
PlaySoundAtEntity("", "Security_Slide_1.snt", "door_infected_1", 0, false);
}
void MusicPlay_1(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Penumbra_BP_A15.ogg", true, 2, 3, 0, true);
}
void Fall(string &in asParent, string &in asChild, int alState)
{
GivePlayerDamage(200, "Fall", true, true);
CheckPoint("checkpoint1","CP_1","", "", "");
}