Frictional Games Forum (read-only)

Full Version: Starting uncouncious
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey i got 2 question sorry for my bad english......: )
first.....i'm working on a great map but i was wondering if somebody know how to start like in amnesia justine and the dark descent you start uncouncious and then you have probleme gettin up weelll that it for that


second,,,, wondering if peoplpe could give me a hint on the light system
i saw in a couple of video on the internet a way to get more realistic windows light effect......

zecuro
To start "unconcious" and slowly wake, put this in your .hps file:
Spoiler below!
void OnStart()
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 7.0f, "beginStory");
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

That should make the Player start on the "ground" and slowly get up, then regain their light focus. Change AddTimer("trig1", 7.0f, "beginStory"); to any other number value to make it last longer. Ex: AddTimer("trig1", 11.0f, "beginStory"); that would make it last 11 seconds. Hope this was helpful.

For a more realistic lighting effect I'm not entirely sure on, but if you watch greengc035 on YouTube he could be of some help? http://www.youtube.com/watch?v=RGVHE4gsFZ8 he was helpful to me. This video is on lighting, I hope it helps you!
I dunno about some of you, but unless I changed the FadePlayerRollTo(50, 220, 220); to FadePlayerRollTo(50, 120, 120); , I got these erratic shakes and jitters as the player's view was fading in.
Aha, just what I wanted :3


(07-18-2011, 09:48 PM)JenniferOrange Wrote: [ -> ]To start "unconcious" and slowly wake, put this in your .hps file:
Spoiler below!
void OnStart()
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 7.0f, "beginStory");
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

That should make the Player start on the "ground" and slowly get up, then regain their light focus. Change AddTimer("trig1", 7.0f, "beginStory"); to any other number value to make it last longer. Ex: AddTimer("trig1", 11.0f, "beginStory"); that would make it last 11 seconds. Hope this was helpful.

For a more realistic lighting effect I'm not entirely sure on, but if you watch greengc035 on YouTube he could be of some help? http://www.youtube.com/watch?v=RGVHE4gsFZ8 he was helpful to me. This video is on lighting, I hope it helps you!