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
Trigger Cave In
Xallikk Offline
Junior Member

Posts: 35
Threads: 7
Joined: Jun 2016
Reputation: 0
#12
RE: Trigger Cave In

I do have an entry for it and everything else works.
<CATEGORY Name="Credits">
<Entry Name="Ending">Thanks for playing![br][br] Hope it actually worked and you enjoyed it![br] You can skip by hitting escape or clicking
[br][br] Made by DJ Allen[br] Tools used: Amnesia level and material editors[br] Sounds used: Level editor and YouTube</Entry>
</CATEGORY>
</LANGUAGE>

Also for the fadeout timer, would this work?

void OnStart()
{
AddTimer("scare", 3, "TimerPlayerReact");
AddTimer("breath", 4.5, "TimerPlayerReact");
AddTimer("breath", 6.5, "TimerPlayerReact");
AddTimer("saw3", 12, "TimerTorture");
AddTimer("saw_voice3", 11, "TimerTorture");
AddEntityCollideCallback("Player", "kista1", "kista1", true, 1);
AddEntityCollideCallback("Player", "scr_rockfall", "rockfall_1", true, 1);
AddEntityCollideCallback("Player", "scr_rockfall", "subtitles", true, 1);
}

void subtitles(string &in asParent, string &in asChild, int alState)
{
AddEffectVoice("OutroSound", "", "Subtitles", "LastWords", true, "Player", 5, 10);
}
void rockfall_1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("CaveIn", true);
CreateParticleSystemAtEntity("rocksmoke1", "ps_impact_dust_high.ps", "rocksmoke_1", false);
CreateParticleSystemAtEntity("rocksmoke2", "ps_impact_dust_high.ps", "rocksmoke_2", false);
CreateParticleSystemAtEntity("rocksmoke3", "ps_impact_dust_high.ps", "rocksmoke_3", false);
CreateParticleSystemAtEntity("rocksmoke4", "ps_impact_dust_high.ps", "rocksmoke_4", false);
CreateParticleSystemAtEntity("rocksmoke5", "ps_impact_dust_high.ps", "rocksmoke_5", false);
CreateParticleSystemAtEntity("rocksmoke6", "ps_impact_dust_high.ps", "rocksmoke_6", false);
CreateParticleSystemAtEntity("rocksmoke7", "ps_impact_dust_high.ps", "rocksmoke_7", false);
PlaySoundAtEntity("cavein", "explosion_rock_large.snt", "Player", 0.01f, false);
AddTimer("TimerEndGame", 15, "Exit");
}

void Exit(string &in asEntity)
{
AddTimer("TimerCredits", 2, "Credits");
StartCredits("OutroTheme.ogg", false, "Credits", "Ending", 3);
}

void TimerCredits(string &in asTimer)
{
FadeOut(2);
}
void kista1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("maidenopen", true);
SetEntityActive("maidenclosed", false);
CreateParticleSystemAtEntity("", "ps_iron_maiden_event_smoke.ps", "ScriptArea_1", false);
PlaySoundAtEntity("maidenopen", "24_iron_maiden", "maidenopen", 0, false);
StartScreenShake(0.3, 0.3, 0, 0.3);
AddPlayerSanity(-10);
}

void TimerPlayerReact(string &in asTimer)
{
PlayGuiSound("react_" + asTimer, 0.6);
}

void TimerTorture(string &in asTimer)
{
PlayGuiSound("23_" + asTimer, 0.6);
}

void TimerCredits(string &in asTimer)
{
FadeOut(2);
}

The ones at the front always die first...
(This post was last modified: 06-09-2016, 06:21 PM by Xallikk.)
06-09-2016, 06:17 PM
Find


Messages In This Thread
Trigger Cave In - by Xallikk - 06-06-2016, 05:29 AM
RE: Trigger Cave In - by Romulator - 06-06-2016, 06:16 AM
RE: Trigger Cave In - by Mudbill - 06-06-2016, 08:08 AM
RE: Trigger Cave In - by Romulator - 06-06-2016, 05:02 PM
RE: Trigger Cave In - by Xallikk - 06-07-2016, 04:21 AM
RE: Trigger Cave In - by Romulator - 06-07-2016, 08:06 AM
RE: Trigger Cave In - by Xallikk - 06-07-2016, 09:40 PM
RE: Trigger Cave In - by Mudbill - 06-07-2016, 10:58 PM
RE: Trigger Cave In - by Xallikk - 06-09-2016, 02:34 AM
RE: Trigger Cave In - by Romulator - 06-09-2016, 07:14 AM
RE: Trigger Cave In - by Mudbill - 06-09-2016, 07:41 AM
RE: Trigger Cave In - by Xallikk - 06-09-2016, 06:17 PM
RE: Trigger Cave In - by Mudbill - 06-10-2016, 02:58 PM
RE: Trigger Cave In - by Xallikk - 06-11-2016, 02:00 AM
RE: Trigger Cave In - by Mudbill - 06-12-2016, 05:45 AM
RE: Trigger Cave In - by Xallikk - 06-12-2016, 06:29 AM
RE: Trigger Cave In - by Xallikk - 06-12-2016, 09:48 PM
RE: Trigger Cave In - by Mudbill - 06-12-2016, 10:50 PM
RE: Trigger Cave In - by Xallikk - 06-12-2016, 10:55 PM
RE: Trigger Cave In - by Mudbill - 06-13-2016, 03:14 AM
RE: Trigger Cave In - by Xallikk - 06-13-2016, 03:18 AM
RE: Trigger Cave In - by Daemian - 06-13-2016, 11:25 PM
RE: Trigger Cave In - by Mudbill - 06-14-2016, 12:35 AM
RE: Trigger Cave In - by Xallikk - 06-14-2016, 02:18 AM



Users browsing this thread: 3 Guest(s)