2611
Off Topic / Re: The Path | 1/1/2011 - NEW VIDEO! [A Mod For Amnesia: Dark Descent]
« on: January 01, 2011, 09:11:21 PM »The editor used by this engine is primarily event/dragndrop based.
Code: [Select]
void OnStart()
{
SetPlayerActive(false);
FadeOut(0);
AddEntityCollideCallback("Player", "Screamer", "shockshock", true, 1);
AddTimer("wake",5,"TimerWake");
AddTimer("wake2",10,"TimerWake2");
AddTimer("wake",11,"TimerWake3");
FadePlayerRollTo(75, 10, 100);
MovePlayerHeadPos(-1.2f, -0.5f, 0, 10, 0.5f);
SetPlayerCrouching(true);
SetPlayerJumpDisabled(true);
PlayMusic("level1", true, 0.7f, 1, 0, true);
}
void getlanternp(string &in asEntity)
{
CompleteQuest("Key0", "Quest0");
SetEntityActive("block_box_1",false);
GiveSanityBoost();
FadePlayerRollTo(0, 10, 60);
MovePlayerHeadPos(0, 0, 0, 1, 0.5f);
SetPlayerJumpDisabled(false);
SetPlayerRunSpeedMul(1);
SetPlayerMoveSpeedMul(1);
}
void TimerWake(string &in asTimer)
{
FadeIn(1);
GiveSanityDamage(70.0f, true);
PlaySoundAtEntity("sigh", "headache.snt", "Player", 1.0 / 2, false);
}
void TimerWake2(string &in asTimer)
{
PlaySoundAtEntity("sigh", "warning.snt", "Player", 1.0 / 2, false);
AddQuest("Key0", "Quest0");
}
void TimerWake3(string &in asTimer)
{
SetPlayerActive(true);
SetPlayerRunSpeedMul(0.1f);
SetPlayerMoveSpeedMul(0.1f);
}
void shockshock(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("corpse", 7, 50, "");
GiveSanityDamage(30.0f, true);
AddTimer("stopl",3,"Timerstopl");
SetEntityActive("corpse",true);
PlaySoundAtEntity("sigh", "shriek.snt", "Player", 1.0 / 2, false);
}
void Timerclear(string &in asTimer)
{
GiveSanityDamage(20.0f, true);
PlaySoundAtEntity("sigh", "scare_wood_creak_walk.snt", "Player", 1.0 / 2, false);
}
void Timerstopl(string &in asTimer)
{
FadeOut(2);
StopPlayerLookAt();
SetEntityActive("Screamer", false);
SetEntityActive("corpse",false);
FadeIn(4);
GiveSanityDamage(10.0f, true);
AddTimer("clear",3,"Timerclear");
}
void OnLeave()
{
SetupLoadScreen("", "", 1, "asdf.jpg");
}Somewhat but it still can get confusing.
It's very similar to ActionScript or whatever the hell powers DooMBuilder's script editor.