Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ATDD-Scripting
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#5
RE: ATDD-Scripting

You have a create an .hps file with the same name as your map. So, if your map is named 01_house.map, you would make a file called 01_house.hps. (To do that, open notepad, hit save as, change .txt to 'All Files' and then type 01_house.hps.

There, you open the script file, and enter this:

void OnStart() {
      wakeUp()
}

void wakeUp () {

    FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)

    FadeIn(20);      // Amount of seconds the fade in takes

    FadeImageTrailTo(2, 2);

    FadeSepiaColorTo(100, 4);

    SetPlayerActive(false);    

    FadePlayerRollTo(50, 220, 220);                 // "Tilts" the players head

    FadeRadialBlurTo(0.15, 2);

    SetPlayerCrouching(true);              // Simulates being on the ground

    AddTimer("trig1", 11.0f, "beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last

}



void beginStory(string &in asTimer){

    ChangePlayerStateToNormal();

    SetPlayerActive(true);

    FadePlayerRollTo(0, 33, 33);        // Change all settings to defaults

    FadeRadialBlurTo(0.0, 1);

    FadeSepiaColorTo(0, 4);

    SetPlayerCrouching(false);

    FadeImageTrailTo(0,1);

}

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
09-22-2013, 06:43 PM
Find


Messages In This Thread
ATDD-Scripting - by LordOfDragons - 09-22-2013, 09:00 AM
RE: ATDD-Scripting - by PutraenusAlivius - 09-22-2013, 09:32 AM
RE: ATDD-Scripting - by LordOfDragons - 09-22-2013, 10:17 AM
RE: ATDD-Scripting - by LordOfDragons - 09-22-2013, 04:11 PM
RE: ATDD-Scripting - by DamnNoHtml - 09-22-2013, 06:43 PM
RE: ATDD-Scripting - by LordOfDragons - 02-09-2014, 08:23 PM
RE: ATDD-Scripting - by Wapez - 02-09-2014, 08:41 PM
RE: ATDD-Scripting - by Mudbill - 02-10-2014, 02:04 AM
RE: ATDD-Scripting - by Wapez - 02-10-2014, 05:58 PM
RE: ATDD-Scripting - by LordOfDragons - 02-09-2014, 08:59 PM
RE: ATDD-Scripting - by LordOfDragons - 02-10-2014, 12:32 PM
RE: ATDD-Scripting - by GrAVit - 02-12-2014, 10:10 AM
RE: ATDD-Scripting - by LordOfDragons - 03-03-2014, 07:59 PM
RE: ATDD-Scripting - by Mudbill - 03-03-2014, 09:25 PM
RE: ATDD-Scripting - by LordOfDragons - 03-04-2014, 12:33 AM
RE: ATDD-Scripting - by Deadon - 03-04-2014, 02:12 AM



Users browsing this thread: 1 Guest(s)