-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintro.sqf
245 lines (190 loc) · 5.59 KB
/
intro.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/**
* Exile Mod
* www.exilemod.com
* © 2015 Exile Mod Team
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/
private ["_objectStorage", "_staticObjectTemplates"];
/*
// Preload camery settings
waitUntil { preloadCamera [29549.7,1508.77,189.029] };
// Remember what we have instanciated, so we can clean up a bit
_objectStorage = [];
// Static objects for the scene
_staticObjectTemplates =
[
["Land_Pier_F",[29566.7,1512.72,186.76],182.273,0,0,false],
["Land_Pier_wall_F",[29566.6,1560.03,186.705],1.36361,0,0,false],
["Land_Pier_Box_F",[29539.6,1550.11,192.115],0,0,0,false],
["Land_Pier_F",[29596.6,1533.61,186.95],91.8181,0,0,false],
["Land_Bunker_F",[29580.4,1509.79,189.09],95.4545,0,0,false],
["Land_MilOffices_V1_F",[29600.1,1534.35,189.543],90.909,0,0,false],
["Land_Pier_Box_F",[29591.6,1507.34,200.259],95.0001,0,0,false],
["Land_Pier_F",[29562.8,1502.29,186.759],2.27276,0,0,false],
["Land_Airport_Tower_F",[29540.2,1549.9,192.079],0,0,0,false],
["Land_JetEngineStarter_01_F",[29579.3,1496.5,189.031],18.6364,0,0,false],
["Land_Radar_F",[29598.7,1561.89,191.255],8.18185,0,0,false],
["Exile_Sign_TraderCity",[29546.8,1517.4,189.039],272,0,0,false],
["Land_TTowerBig_1_F",[29592,1507.42,201.014],3.18181,0,0,false],
["Submarine_01_F",[29524.1,1476.42,176.398],147.273,0,0,false],
["C_Boat_Civil_04_F",[29562.7,1535.25,179.236],271.364,0,0,false]
];
{
private ["_staticObject"];
_staticObject = (_x select 0) createVehicleLocal [0,0,0];
_staticObject setDir (_x select 2);
_staticObject setPosATL (_x select 1);
_staticObject enableSimulation false;
_objectStorage pushBack _staticObject;
}
forEach _staticObjectTemplates;
// Create the chopper and close all doors
_chopper = "O_Heli_Transport_04_covered_F" createVehicleLocal [0,0,0];
_chopper setDir 326.364;
_chopper setPosATL [29549.7,1508.77,189.029];
_chopper enableSimulation true;
_chopper animateDoor ['Door_1_source', 0, true];
_chopper animateDoor ['Door_2_source', 0, true];
_chopper animateDoor ['Door_3_source', 0, true];
_chopper animateDoor ['Door_4_source', 0, true];
_chopper animateDoor ['Door_5_source', 0, true];
_chopper animateDoor ['Door_6_source', 0, true];
_objectStorage pushBack _chopper;
// Prisoner 1
_prisoner01 =
[
"Exile_Cutscene_Prisoner01",
"AfricanHead_01",
["Acts_AidlPsitMstpSsurWnonDnon01"],
[29552.5,1510.03,189.027],
341.323
]
call ExileClient_object_trader_create;
_objectStorage pushBack _prisoner01;
// Prisoner 2
_prisoner02 =
[
"Exile_Cutscene_Prisoner02",
"WhiteHead_03",
["InBaseMoves_HandsBehindBack1"],
[29550.4,1509.77,189.026],
45.1028
]
call ExileClient_object_trader_create;
_objectStorage pushBack _prisoner02;
// Pilot, just statnding there
_pilot =
[
"Exile_Cutscene_Pilot",
"PersianHead_A3_02",
["passendger_flatground_1_Idle_Unarmed"],
[29549.5,1512.48,189.031],
82.2734
]
call ExileClient_object_trader_create;
_objectStorage pushBack _pilot;
// Boss, treating us
_boss =
[
"Exile_Cutscene_Police01",
"GreekHead_A3_08",
["Acts_Abuse_abusing"],
[29556.3,1513.86,189.033],
88.0126
]
call ExileClient_object_trader_create;
_objectStorage pushBack _boss;
// Guard 1
_police01 =
[
"Exile_Cutscene_Police02",
"GreekHead_A3_08",
["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
[29549.4,1518,189.04],
139.341
]
call ExileClient_object_trader_create;
_objectStorage pushBack _police01;
// Guard 2
_police02 =
[
"Exile_Cutscene_Police01",
"GreekHead_A3_08",
["InBaseMoves_patrolling1"],
[29555.1,1516.7,189.038],
205.865
]
call ExileClient_object_trader_create;
_objectStorage pushBack _police02;
// And our small player fale
_player =
[
"Exile_Cutscene_Player",
"WhiteHead_01",
["Acts_Abuse_abuser"],
[29556.3,1513.86,189.033],
88.0126
]
call ExileClient_object_trader_create;
_objectStorage pushBack _player;
_player allowDamage false; // It can bleed thou
*/
// End the loading screen
endLoadingScreen;
/*
// Fade in sound
3 fadeSound 1;
cutText ["", "BLACK IN", 3];
// GOGO ! :)
_camera = "camera" camCreate (_player modelToWorld [0, 0, 10]);
_camera camSetTarget _player;
_camera cameraEffect ["EXTERNAL", "BACK TOP"];
_camera camSetRelPos [0, 0.7, 1.5];
_camera camCommand "inertia on";
_camera camCommit 1;
uiSleep 1;
_boss say ["ExileIntro01", 5];
uiSleep 3;
_boss say ["ExileIntro02", 5];
uiSleep 5;
[300] call BIS_fnc_bloodEffect;
_player setdamage 0.5;
_player setBleedingRemaining 3;
_player say ["ExileIntro10", 5];
uiSleep 1;
_boss say ["ExileIntro03", 5];
uiSleep 3;
_boss say ["ExileIntro04", 5];
uisleep 6;
_boss say ["ExileIntro05", 5];
uisleep 5;
_boss say ["ExileIntro07", 5];
_chopper engineOn true;
uisleep 3;
_boss say ["ExileIntro08", 5];
_chopper animateDoor ['Door_1_source', 1, false];
_chopper animateDoor ['Door_2_source', 1, false];
uiSleep 10;
_boss say ["ExileIntro09", 5];
// Open chopper doors
_chopper animateDoor ['Door_3_source', 1, false];
_chopper animateDoor ['Door_4_source', 1, false];
_chopper animateDoor ['Door_5_source', 1, false];
_chopper animateDoor ['Door_6_source', 1, false];
uisleep 15;
// Fade out sound and screen to black/silent
5 fadeSound 0;
titleText ["", "BLACK OUT", 5];
// Cleanup after 5 seconds
uiSleep 5;
_camera cameraEffect ["terminate","back"];
camDestroy _camera;
{
deleteVehicle _x;
}
forEach _objectStorage;
*/
ExileClientIntroIsPlaying = false;
true