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
LordOfDragons Offline
Senior Member

Posts: 501
Threads: 14
Joined: Aug 2013
Reputation: 13
#6
RE: ATDD-Scripting

(09-22-2013, 06:43 PM)DamnNoHtml Wrote: 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);

}

So i just have to put that into my .hps file? I mean exactly like that.

The question that will never be answered:
SOMA WHY ARE YOU SO BEAUTIFUL? ;_;
02-09-2014, 08:23 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)