Frictional Games Forum (read-only)

Full Version: How to make custom loading screens?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So, I am currently working on my Full Conversion mod named "The Elder Sign: The Asylum" and I want to create my own loading screen (everytime you go through a level_hub door)

Basically it says on default "Loading..."

But how do I make it say something else, and with a different background image like this: (but with text ofcourse, taken from La Caza)
[Image: 377270979.jpg?AWSAccessKeyId=AKIAJF3XCCK...v914sj8%3D]

Much appreciated if anyone could help me.
void SetupLoadScreen(string&asTextCat, string&asTextEntry, int alRandomNum, string&asImageFile);

This?
(08-19-2011, 11:27 PM)Tanshaydar Wrote: [ -> ]void SetupLoadScreen(string&asTextCat, string&asTextEntry, int alRandomNum, string&asImageFile);

This?

If you say so, But I dont have a clue how to work with that.

Could you explain it to me?
I don't know if it is this what you are exactly asking, but here:

void SetupLoadScreen(string&asTextCat, string&asTextEntry, int alRandomNum, string&asImageFile);

Determines which loading screen will be shown when changing maps.

asTextCat - the category of the loading text in the .lang file to be shown on the loading screen
asTextEntry - the entry in the .lang file
alRandomNum - if greater 1, then it will randomize between 1 and alRandom for each LoadScreen giving entry the suffix XX (eg 01). If < =1 then no suffix is added
asImageFile - the image to be shown (optional)

From here: http://wiki.frictionalgames.com/hpl2/amn..._functions
Yeah, Tanshaydar has it right. Just put that function in your onLeave section like this

void OnLeave()
{
SetupLoadScreen(string&asTextCat, string&asTextEntry, int alRandomNum, string&asImageFile);
}

You can also put multiple ones and it will choose a loading screen at random (I believe, it might be a different function though, but it's similar)