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
death ending
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#1
Question  death ending

I'm making an ending kind of cutscene and this is what I want to happen.

You pick up a note and once you've read it you'll turn 180 degrees and see a grunt behind you, the grunt will kill you and after that the credits will roll.

As a newbie amnesia modder I'm completely clueless on how to do this Tongue so if someone could give me a good explanation on how to do it I would be very grateful Smile

01-06-2013, 11:37 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#2
RE: death ending

I'm not sure if you know how to use the following scripts, but if you don't, I'll go into further detail:

Set a PlayerInteractCallback for the note, so that when they pick it up, the following things happen:

CheckPoint
SetPlayerActive (false)
SetEntityActive (grunt)
SetPlayerLookAt (grunt)

And put EndCredits under the checkpoint's function.

01-06-2013, 11:57 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: death ending

Damascus explained:

void NoteInteract (string &in asEntity) ////This is the callback assigned to the note
{
SetPlayerActive(false);
SetEntityPlayerLookAtCallback("Look_at_area", "Dacallback", true);////When the player stops reading the note, it will look to an area.
StartPlayerLookAt("Look_at_area", 1, 1, "");
}

void Dacallback(string &in asEntity, int alState)
{
StartPlayerLookAt("Look_at_area_2", 1, 1, ""); ///This is behind the grunt that will appear
SetEntityActive("Grunt", true);
ShowEnemyPlayerPosition("Grunt");
}

I think this is enough.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
01-07-2013, 12:24 AM
Find
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#4
RE: death ending

(01-06-2013, 11:57 PM)Damascus Wrote: I'm not sure if you know how to use the following scripts, but if you don't, I'll go into further detail:

Set a PlayerInteractCallback for the note, so that when they pick it up, the following things happen:

CheckPoint
SetPlayerActive (false)
SetEntityActive (grunt)
SetPlayerLookAt (grunt)

And put EndCredits under the checkpoint's function.

Would appreciate if you could go into further detail ^^

Oh didn't see that The Chaser had replyed Tongue thanks alot for the help will try that out Smile though i still don't know how to do the credits after I die.

(This post was last modified: 01-07-2013, 02:15 AM by Storfigge.)
01-07-2013, 02:09 AM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#5
RE: death ending

Add this into your note's callback.

CheckPoint ("", "PlayerStartArea_1", "EndGame", "[.LANG CATEGORY]", "[.LANG ENTRY]");

And add this a separate function:

void EndGame(string &in asName, int alCount)
{
StartCredits(["MUSIC FILE]", (true/false for looping music), "Ending", "Credits", 5);
}

Make sure your credits are in the Ending category under the Credits entry.

01-07-2013, 02:56 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: death ending

Also... if you are ready to make it a little more advanced, you can edit the grunt to make its damage 100. Because right now, a single hit from the grunt will not kill you

Trying is the first step to success.
01-07-2013, 06:47 AM
Find
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#7
RE: death ending

(01-07-2013, 06:47 AM)beecake Wrote: Also... if you are ready to make it a little more advanced, you can edit the grunt to make its damage 100. Because right now, a single hit from the grunt will not kill you

Yea that sounds like a good idea and one that I know how to fix to Tongue

(This post was last modified: 01-07-2013, 09:15 AM by Storfigge.)
01-07-2013, 09:14 AM
Find
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#8
RE: death ending

or you could just set the player health to 1 Smile
01-07-2013, 06:20 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#9
RE: death ending

OR you could trap the player in the room. So he has to run around taking hits from the grunt until he dies. Idk all valid ideas.

01-07-2013, 06:21 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: death ending

(01-07-2013, 06:20 PM)darksky Wrote: or you could just set the player health to 1 Smile

Setting the players health to one would make the screen go red and blurry, and wouldn't (I guess), not give the right feeling

(01-07-2013, 06:21 PM)Damascus Wrote: OR you could trap the player in the room. So he has to run around taking hits from the grunt until he dies. Idk all valid ideas.

A little weird ending, if you know how to avoid it, isn't it?

Trying is the first step to success.
(This post was last modified: 01-07-2013, 06:25 PM by FlawlessHappiness.)
01-07-2013, 06:24 PM
Find




Users browsing this thread: 3 Guest(s)