The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Would this work?
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#1
Would this work?

I want to make a Wake Up intro to this map, and the Wake Up I found in the forums is not what I want. I copied and pasted this from the 25_cells_tunnels.hps file, and I wonder if this is what I need to be able to do a Wake Up.

.hps
Spoiler below!

void TimerBlackOut(string &in asTimer)
{
AddLocalVarInt("BlackoutStep", 1); //What step to play in the event
float fEventSpeed = 0.5f; //The default time between steps in an event

switch(GetLocalVarInt("BlackoutStep")) {
case 1:
StartPlayerLookAt("Arealook2", 0.1f, 0.1f, "");
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 4.0f, "IdleExtra3");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0.0f, "");
FadeIn(4);
FadeImageTrailTo(2,1);
SetPlayerMoveSpeedMul(0.05f);
SetPlayerLookSpeedMul(0.05f);
PlaySoundAtEntity("pant", "react_pant.snt", "Player", 2, false);
fEventSpeed = 3.0f;
break;
case 2:
FadePlayerRollTo(85, 1, 1);
break;
case 3:
SetPlayerActive(true);
StartPlayerLookAt("Arealook3", 0.1f, 0.1f, "");
break;
case 4:
FadeImageTrailTo(0,1);
FadePlayerRollTo(65, 1, 1);
break;
case 5:
PlaySoundAtEntity("sigh", "react_sigh.snt", "Player", 1.0 / 2, false);
FadeOut(2);
fEventSpeed = 1.5f;
break;
case 6:
FadePlayerRollTo(85, 1, 4);
StartPlayerLookAt("Arealook1", 0.1f, 0.1f, "");
break;
case 7:
FadeImageTrailTo(1.8f,1.5f);
FadePlayerFOVMulTo(1.25f, 0.01);
break;
case 8:
FadePlayerRollTo(45, 1, 2);
FadeIn(2);
fEventSpeed = 1.5f;
break;
case 9:
StartPlayerLookAt("Arealook2", 0.1f, 0.1f, "");
break;
case 10:
FadePlayerRollTo(15, 1, 2);
FadePlayerFOVMulTo(0.75f, 0.01);
break;
case 11:
PlaySoundAtEntity("sigh", "react_sigh.snt", "Player", 1.0 / 1.5f, false);
FadeOut(1);
StartPlayerLookAt("Arealook3", 1, 1, "");
FadePlayerRollTo(50, 1, 2);
fEventSpeed = 2.0f;
break;
case 12:
SetPlayerMoveSpeedMul(0.1f);
SetPlayerLookSpeedMul(0.1f);
StartPlayerLookAt("Arealook1", 1, 1, "");
FadePlayerFOVMulTo(1.1f, 0.01);
FadeImageTrailTo(0,1.5f);
fEventSpeed = 1.5f;
break;
case 13:
SetPlayerMoveSpeedMul(0.2f);
SetPlayerLookSpeedMul(0.2f);
FadePlayerRollTo(-15, 1, 2);
FadeIn(1);
StartPlayerLookAt("Arealook4", 2, 2, "");
fEventSpeed = 2.0f;
break;
case 14:
SetPlayerMoveSpeedMul(0.3f);
SetPlayerLookSpeedMul(0.3f);
FadePlayerRollTo(-30, 10, 60);
MovePlayerHeadPos(0, 0, 0, 1, 0.5f);
StartPlayerLookAt("Arealook3", 1, 1, "");
FadePlayerFOVMulTo(0.9f, 0.01);
FadeImageTrailTo(1.5,2);
PlaySoundAtEntity("movement", "player_climb.snt", "Player", 0, false);
break;
case 15:
SetPlayerMoveSpeedMul(0.4f);
SetPlayerLookSpeedMul(0.4f);
FadePlayerRollTo(10, 10, 20);
MovePlayerHeadPos(0, -0.5f, 0, 1, 0.5f);
break;
case 16:
SetPlayerMoveSpeedMul(0.5f);
SetPlayerLookSpeedMul(0.5f);
FadePlayerRollTo(0, 10, 60);
MovePlayerHeadPos(0, 0, 0, 1, 0.5f);
StartPlayerLookAt("Arealook4", 2, 2, "");
FadePlayerFOVMulTo(1, 0.01f);
PlaySoundAtEntity("movement", "player_climb.snt", "Player", 0, false);
SetPlayerCrouchDisabled(false);
fEventSpeed = 1.0f;
break;
case 17:
SetPlayerMoveSpeedMul(0.6f);
SetPlayerLookSpeedMul(0.6f);
FadeImageTrailTo(0,0.2f);
StopPlayerLookAt();
PlaySoundAtEntity("sigh", "react_sigh.snt", "Player", 1.0 / 1, false);
fEventSpeed = 1.0f;
break;
case 18:
SetPlayerJumpDisabled(false);
SetPlayerMoveSpeedMul(1.0f);
SetPlayerRunSpeedMul(1.0f);
SetPlayerLookSpeedMul(1.0f);
for(int i=1;i<=7;++i)
AddEffectVoice("CH03L25_Alexander_0"+i, "", "Voice", "CH03L25_Alexander_0"+i, false, "", 0.0f, 0.0f);

break;
}

if(GetLocalVarInt("BlackoutStep") < 19) AddTimer("blackout", fEventSpeed, "TimerBlackOut");
}


Except maybe edit it to what I need? I also don't want it to play Alexander's voice at the end, so can I just remove that? Please tell me what I can delete, what not to delete, even make edit the script, and make everything I need to change a "ChangeThis" (with quotes, because It will obviously be in the void)

Thanks in Advance.

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
05-25-2011, 03:46 AM
Find


Messages In This Thread
Would this work? - by RawkBandMan - 05-25-2011, 03:46 AM
RE: Would this work? - by Khyrpa - 05-25-2011, 06:31 AM
RE: Would this work? - by RawkBandMan - 05-25-2011, 02:49 PM
RE: Would this work? - by Khyrpa - 05-25-2011, 03:23 PM
RE: Would this work? - by RawkBandMan - 05-25-2011, 03:53 PM
RE: Would this work? - by ferryadams10 - 05-25-2011, 03:55 PM
RE: Would this work? - by RawkBandMan - 05-25-2011, 04:18 PM
RE: Would this work? - by Roenlond - 05-25-2011, 05:02 PM
RE: Would this work? - by RawkBandMan - 05-25-2011, 11:35 PM



Users browsing this thread: 2 Guest(s)