-
Notifications
You must be signed in to change notification settings - Fork 0
/
JobIntros.sqf
130 lines (100 loc) · 3.18 KB
/
JobIntros.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
//JobIntros.sqf
//Runs on players
//Called from players or server
//Called from ShareTask.sqf, LoadTask.sqf or LoadPersonalTask.sqf
//Short camera views of newly joined mission
//pvs
private ["_camPos1", "_camTarget1", "_camPos2", "_camTarget2", "_camPos3", "_camTarget3", "_title", "_missionFileName", "_NPC", "_PM", "_NPCNumber", "_camera"];
if (hasInterface) then
{
_camPos1 = _this select 0;
_camTarget1 = _this select 1;
_camPos2 = _this select 2;
_camTarget2 = _this select 3;
_camPos3 = _this select 4;
_camTarget3 = _this select 5;
_title = _this select 6;
_missionFileName = _this select 7;
_NPC = _this select 8; //NPC object
CurrentIntro = [_camPos1,_camTarget1,_camPos2,_camTarget2,_camPos3,_camTarget3,_title,_missionFileName,_NPC];
0.01 fadeMusic 0;
_PM = false;
/*
switch (_NPC) do
{
case NPC0:{playMusic "LeadTrack02_F_EPC";};//The Landlord
case NPC1:{playMusic "AmbientTrack04_F";};//The Drimean
case NPC2:{playMusic "BackgroundTrack01_F";};//The Banker
case NPC3:{playMusic "BackgroundTrack03_F_EPC";};//The Priest
case NPC4:{playMusic "LeadTrack03_F_EPA";};//The Pirate
case NPC5:{playMusic "BackgroundTrack04_F_EPC";};//The Oreokastron Guerrilla
case NPC6:{playMusic "LeadTrack03_F_EPC";};//The CSAT Officer
case NPC7:{playMusic "LeadTrack02_F_EPC";};//The FIA Officer
case NPC8:{playMusic "LeadTrack06_F_EPC";};//The FIA Armourer
case NPC9:{playMusic "BackgroundTrack01_F_EPC";};//The FIA Pilot
default {playMusic "LeadTrack02_F_Bootcamp"; _PM = true;};
}; */
if (isPlayer _NPC) then
{
playMusic PMMusic;
_PM = true;
}
else
{
_NPCNumber = parseNumber ((str _NPC) select [3,1]);
playMusic [(NPCMusicArray select _NPCNumber),(NPCMusicStarts select _NPCNumber)];
};
0 fadeMusic 0.5;
titlecut [" ","BLACK OUT",1];
sleep 1;
enableradio false;
camUseNVG true;
if (daytime >=5) then { camUseNVG false;};
[0, 0] call BIS_fnc_cinemaBorder;
//Camera setup
_camera = "camera" camCreate (getPos player);
_camera cameraEffect ["internal", "back"];
_camera camPrepareTarget _camTarget1;
_camera camPreparePos _camPos1;
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
cutText [" ","BLACK IN",1];
sleep 4;
if not (_PM) then
{
//playSound ("\sound\" + _missionFileName + ".ogg");
playSound (_missionFileName select [3,3]);
};
sleep 1;
titlecut [" ","BLACK OUT",1];
sleep 1;
_camera camPrepareTarget _camTarget2;
_camera camPreparePos _camPos2;
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
cutText [" ","BLACK IN",1];
sleep 5;
titlecut [" ","BLACK OUT",1];
sleep 1;
_camera camPrepareTarget _camTarget3;
_camera camPreparePos _camPos3;
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
cutText [" ","BLACK IN",1];
sleep 5;
titlecut [" ","BLACK OUT",1];
sleep 1;
enableradio true;
disableUserInput false;
_camera cameraEffect ["terminate","back"];
camdestroy _camera;
titlecut [" ","BLACK IN",1];
closeDialog 0;
closeDialog 0;
sleep 1;
[1, 2] call BIS_fnc_cinemaBorder;
10 fadeMusic 0;
sleep 15;
enableSaving [false,false];
playMusic "";
};