Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
Three Questions
1.How do i make a intro.The player is in the ground and coughs a bit and screen is blurry. SOLVED
2.The oilbar in the inventory is full.How do i make it so it is empty. SOLVED
3.When the player gets up after the intro how do i make him look at entity and say something(no sound but text). SOLVED
Help is appreciated!
(This post was last modified: 02-26-2012, 12:29 PM by Datguy5.)
|
|
02-25-2012, 07:28 PM |
|
Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
1
|
RE: Three Questions
I don't really know how to make the screen blurry but I know another thing which looks good {
SetPlayerActive(false);
FadeIn(3.0f);
MovePlayerHeadPos(0, -1.0f, 0, 13, 11);
SetPlayerCrouching(true);
FadeRadialBlurTo(2.0f, 1);
AddTimer("", 8, "Player");
StartPlayerLookAt("name of area the player should look at", 2, 4, "StopPlayerLookAt");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
void Player(string &in asTimer)
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerActive(true);
MovePlayerHeadPos(0, 0, 0, 10, 20);
SetPlayerCrouching(false);
FadeRadialBlurTo(0, 3);
}
Second question: I don't know
Third question:
I would create an area which the player should look at
HPS FILE
StartPlayerLookAt("name of area the player should look at", 2, 4, "StopPlayerLookAt");
SetMessage("ShowMessage", "Name of Message", 5);
lang file
<CATEGORY Name="ShowMessage">
<Entry Name="Name of the Message">Enter you Text here</Entry>
</CATEGORY>
(This post was last modified: 02-25-2012, 08:04 PM by Shives.)
|
|
02-25-2012, 08:03 PM |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: Three Questions
(02-25-2012, 08:03 PM)Shives Wrote: I don't really know how to make the screen blurry but I know another thing which looks good {
SetPlayerActive(false);
FadeIn(3.0f);
MovePlayerHeadPos(0, -1.0f, 0, 13, 11);
SetPlayerCrouching(true);
FadeRadialBlurTo(2.0f, 1);
AddTimer("", 8, "Player");
StartPlayerLookAt("name of area the player should look at", 2, 4, "StopPlayerLookAt");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
void Player(string &in asTimer)
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerActive(true);
MovePlayerHeadPos(0, 0, 0, 10, 20);
SetPlayerCrouching(false);
FadeRadialBlurTo(0, 3);
}
Second question: I don't know
Third question:
I would create an area which the player should look at
HPS FILE
StartPlayerLookAt("name of area the player should look at", 2, 4, "StopPlayerLookAt");
SetMessage("ShowMessage", "Name of Message", 5);
lang file
<CATEGORY Name="ShowMessage">
<Entry Name="Name of the Message">Enter you Text here</Entry>
</CATEGORY>
Ok should be easy because my hps file or lang file doesnt have anything in them yet so i can just copy paste.The second one is still a mystery
EDIT:Thats not exactly what i meant.The intro is good but i meant that when the intro is over and the player can walk,he starts looking at entity and a text appears + my text doesnt seem to work : (
<CATEGORY Name="ShowMessage">
<Entry Name="Name of the Message">Ugh what happened..I should pick that torch and try to find my way out of here.</Entry>
</CATEGORY>
</LANGUAGE>
Aand my hps
////////////////////////////
// Run when the map starts
void OnStart()
{
SetPlayerActive(false);
FadeIn(3.0f);
MovePlayerHeadPos(0, -1.0f, 0, 13, 11);
SetPlayerCrouching(true);
FadeRadialBlurTo(2.0f, 1);
AddTimer("", 8, "Player");
StartPlayerLookAt("Look", 2, 4, "StopPlayerLookAt");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
void Player(string &in asTimer)
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerActive(true);
MovePlayerHeadPos(0, 0, 0, 10, 20);
SetPlayerCrouching(false);
FadeRadialBlurTo(0, 3);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
(This post was last modified: 02-25-2012, 08:18 PM by Datguy5.)
|
|
02-25-2012, 08:09 PM |
|
Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
1
|
RE: Three Questions
This should work
|
|
02-25-2012, 08:48 PM |
|
Unearthlybrutal
Posting Freak
Posts: 775
Threads: 12
Joined: May 2011
Reputation:
26
|
RE: Three Questions
SetPlayerLampOil(0);
Amount of oil
|
|
02-25-2012, 08:50 PM |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: Three Questions
(02-25-2012, 08:50 PM)Unearthlybrutal Wrote: SetPlayerLampOil(0);
Amount of oil Cool thanks!
(02-25-2012, 08:48 PM)Shives Wrote: This should work Umm what should?
Ok so now the only problem is how to make the player look at entity(i know the script but i dont know where to put it in that hps )and when he looks at it he says ''i should pick up that torch and try to find a exit.'' AND btw forgot to ask this:In the intro,when the player is on the ground how do i make a message appearing and saying ugh...what happened?
(This post was last modified: 02-25-2012, 09:26 PM by Datguy5.)
|
|
02-25-2012, 09:19 PM |
|
Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
1
|
RE: Three Questions
I don't really get it
Do you mean where?
Your script wasn't wrong. The script should work I mean.
To make a message appearing you have to add this to your script
SetMessage("ShowMessage", "Name of Message", 5);
Then the script should look like this
////////////////////////////
// Run when the map starts
void OnStart()
{
SetPlayerActive(false);
FadeIn(3.0f);
MovePlayerHeadPos(0, -1.0f, 0, 13, 11);
SetPlayerCrouching(true);
FadeRadialBlurTo(2.0f, 1);
SetMessage("ShowMessage", "Name of Message", 5);
AddTimer("", 8, "Player");
StartPlayerLookAt("Look", 2, 4, "StopPlayerLookAt");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
void Player(string &in asTimer)
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerActive(true);
MovePlayerHeadPos(0, 0, 0, 10, 20);
SetPlayerCrouching(false);
FadeRadialBlurTo(0, 3);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
|
|
02-25-2012, 09:53 PM |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: Three Questions
(02-25-2012, 09:53 PM)Shives Wrote: I don't really get it
Do you mean where?
Your script wasn't wrong. The script should work I mean.
To make a message appearing you have to add this to your script
SetMessage("ShowMessage", "Name of Message", 5);
Then the script should look like this
////////////////////////////
// Run when the map starts
void OnStart()
{
SetPlayerActive(false);
FadeIn(3.0f);
MovePlayerHeadPos(0, -1.0f, 0, 13, 11);
SetPlayerCrouching(true);
FadeRadialBlurTo(2.0f, 1);
SetMessage("ShowMessage", "Name of Message", 5);
AddTimer("", 8, "Player");
StartPlayerLookAt("Look", 2, 4, "StopPlayerLookAt");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
void Player(string &in asTimer)
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerActive(true);
MovePlayerHeadPos(0, 0, 0, 10, 20);
SetPlayerCrouching(false);
FadeRadialBlurTo(0, 3);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
I mean that after the intro(the player coughs and gets up)he doesnt look at the torch and no message appears + how do i make a message appear in the intro or when its going you know.The player is on the ground and a message appears how do i do that?
|
|
02-25-2012, 10:08 PM |
|
Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
1
|
RE: Three Questions
Sorry It's difficult for me to understand this.
You mean that the message appears when the intro starts?
So he is coughing and the Message appears?
If you mean this the script should work.
Just tell me what happens when you run the Custom map.
How looks the Intro?
|
|
02-25-2012, 10:29 PM |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: Three Questions
(02-25-2012, 10:29 PM)Shives Wrote: Sorry It's difficult for me to understand this.
You mean that the message appears when the intro starts?
So he is coughing and the Message appears?
If you mean this the script should work.
Just tell me what happens when you run the Custom map.
How looks the Intro?
Yes i mean that.The intro lasts a while one cough sound appears and then he just gets up.Here is my lang file just in case and hps
HPS
////////////////////////////
// Run when the map starts
void OnStart()
{
SetPlayerActive(false);
FadeIn(3.0f);
MovePlayerHeadPos(0, -1.0f, 0, 13, 11);
SetPlayerCrouching(true);
FadeRadialBlurTo(2.0f, 1);
AddTimer("", 6, "Player");
StartPlayerLookAt("Look", 2, 4, "StopPlayerLookAt");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
void Player(string &in asTimer)
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerActive(true);
MovePlayerHeadPos(0, 0, 0, 10, 20);
SetPlayerCrouching(false);
FadeRadialBlurTo(0, 3);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
SetPlayerLampOil(0);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
LANG
<CATEGORY Name="ShowMessage">
<Entry Name="Name of the Message">Ugh what happened..I should pick that torch and try to find my way out of here.</Entry>
</CATEGORY>
</LANGUAGE>
(This post was last modified: 02-25-2012, 10:36 PM by Datguy5.)
|
|
02-25-2012, 10:35 PM |
|
|