ProyectV
Junior Member
Posts: 19
Threads: 6
Joined: Apr 2014
Reputation:
0
RE: Switch issues
OMG i can't belive i was such an idiot!!! How could i forget the basis of a switch... anyway, thanks for everything, it's already solve, anyway here's the final product...
Spoiler below!
switch(GetLocalVarInt(sIntro))
{
case 1:
FadeIn(4.0f);
PlayGuiSound("justine_wake2.ogg", 1.0f);
SetPlayerLookSpeedMul(0.06f);
SetRadialBlurStartDist(0.3f);
FadeRadialBlurTo(0.1f, 0.1f);
StartPlayerLookAt("IntroArea", 2.0f, 2.0f, "");
fEventSpeed = 2.0f;
break;
case 2:
StartPlayerLookAt("IntroArea_1", 2.0f, 2.0f, "");
break;
case 3:
StartPlayerLookAt("IntroArea_2", 2.0f, 2.0f, "");
FadeOut(3.0f);
break;
case 4:
FadeIn(1.0f);
StartPlayerLookAt("IntroArea_3", 2.0f, 2.0f, "");
fEventSpeed = 6.0f;
break;
case 5:
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("fluttersuitor_NPC_1", "PathNodeArea_5", 0, "");
fEventSpeed = 10.0f;
break;
case 6:
FadeOut(2.0f);
PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false);
TeleportPlayer("StartArea");
break;
case 7:
FadeIn(1.0f);
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
SetPlayerMoveSpeedMul(0.4f);
SetPlayerLookSpeedMul(0.5f);
MovePlayerHeadPos(0.5, -0.3f, 0.0f, 1.0f, 0.1f);
fEventSpeed = 3.0f;
break;
case 8:
SetPlayerCrouching(false);
PlaySoundAtEntity("", "player_stand.snt", "Player", 0, false);
MovePlayerHeadPos(0, 0, 0.0f, 0.5f, 0.1f);
SetPlayerMoveSpeedMul(0.6f);
SetPlayerLookSpeedMul(0.8f);
fEventSpeed = 1.0f;
break;
case 9:
SetPlayerCrouching(true);
PlaySoundAtEntity("", "step_walk_rock.snt", "Player", 0, false);
MovePlayerHeadPos(0.5, -0.3f, 0.0f, 1.0f, 0.1f);
SetRadialBlurStartDist(0.3f);
FadeRadialBlurTo(0.1f, 0.1f);
fEventSpeed = 1.0f;
break;
case 10:
MovePlayerHeadPos(0, 0, 0.0f, 0.0f, 0.0f);
SetPlayerMoveSpeedMul(0.8f);
SetPlayerLookSpeedMul(1.0f);
SetPlayerCrouchDisabled(false);
SetPlayerJumpDisabled(false);
SetInventoryDisabled(false);
StopPlayerLookAt();
break;
default:
bPauseAtStep = true;
break;
}
if(GetLocalVarInt(sIntro) <10)
{
AddTimer("IntroMapa", fEventSpeed, "IntroMapa");
}
if(!bPauseAtStep)
{
AddTimer("", 5.0f, "StartBreakFree");
}
}
Of curse, it needs some changes but now the switch works!!!
Thaks for all... Especially mudbill for always being there for me.
(This post was last modified: 04-27-2014, 08:30 PM by ProyectV .)