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
Amnesia crashes due to unexpected end in my .HPS file
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: Amnesia crashes due to unexpected end in my .HPS file

Here you go:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "FlyingBodyArea", "FlyingBody", true, 1);
AddEntityCollideCallback("Player", "PotExplodeArea", "Explode", true, 1);
SetEntityConnectionStateChangeCallback("CastleLever", "CastleDoorOpen");
SetEntityConnectionStateChangeCallback("SecretLever", "CastleSecret");
}

void FlyingBody(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("pant1", "24_iron_maiden.snt", "Player", 2, true);
SetPropHealth("CorpseWindow", 0);
SetEntityActive("FlyingCorpse", true);
AddPropImpulse("FlyingCorpse", -30, 0, 0, "world");
}

void Explode(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("pant2", "scare_wind.snt", "Player", 2, true);
SetPropHealth("ExplodePot", 0);
}

void CastleDoorOpen(string &in asEntity, int alState)
{
if (alState == 1)
{
SetSwingDoorLocked("mansion_3", false, true);
SetSwingDoorLocked("CastleDoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Player", 0, false);
}
}

void CastleSecret(string &in asEntity, int alState)
{
if(alState == 1)
{
SetMoveObjectState("CastleSecretShelf",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
}
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

I rate it 3 memes.
06-28-2012, 11:30 PM
Find


Messages In This Thread
RE: Amnesia crashes due to unexpected end in my .HPS file - by Adny - 06-28-2012, 11:30 PM



Users browsing this thread: 1 Guest(s)