forked from code34/war-in-takistan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutro.sqf
108 lines (86 loc) · 3.04 KB
/
outro.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
// -----------------------------------------------
// Author: =[A*C]= code34 [email protected]
// warcontext - camera focus on object
// -----------------------------------------------
private [
"_text",
"_texts",
"_original",
"_player",
"_mydir",
"_creditsend"
];
waituntil {isnull wccam};
waituntil {!(player getvariable "deadmarker")};
player setVehicleInit "this allowdammage true;";
processInitCommands;
disableSerialization;
wccam = "camera" camCreate [0,0,1000];
wccam cameraEffect ["internal","back"];
ShowCinemaBorder true;
_player = player;
_mydir = getdir _player;
_position = [(getposatl _player select 0) + (sin _mydir * 2), (getposatl _player select 1) + (cos _mydir * 2), ((getposatl _player) select 2) + 1.5];
wccam camSetPos _position;
wccam camSetTarget _player;
wccam camSetFOV 0.900;
wccam camCommit 0;
_teampromote = localize format["STR_WC_TEAM%1", wcteamlevel];
_text = "Congratulations.\nYou finish the campaign: War In Takistan: operation iron rains.\n\nYou win your tickets to return home after "+format["%1 days.\nYour team level was: %2", wcday, _teampromote];
titleText [_text, "BLACK FADED"];
sleep 6;
titleText ["", "PLAIN"];
playsound "ALL_HAHA";
playMusic "outro";
sleep 4;
_date = date;
setDate [1986, 2, 25, 17, 0];
_texts = [
"This mission was designed by =[A*C]= code34",
"There was more than 120 versions ...",
"During this development time, there was an anormal number of IA killings",
"that were due to nuclear and carpet bombing.",
"The mission uses the WARCONTEXT ENGINE v3",
"And a lot of good stuff that you can find in the credits",
"Thanks to: Air Commando Team for theirs intensives tests",
"and all theirs advices, and courage against ied bomberman",
"Thanks to: all of our friends that came and play with us",
" and all others that i can forgot (..)",
"You can find more information on www.air-commando.org"
];
_original = _texts;
while { count _texts > 0} do {
_text = _texts select 0;
_texts = _texts - [_text];
if(_text == "Thanks to: Air Commando Team for theirs intensives tests") then {
playMusic "pumpit";
};
titleText [_text, "BLACK FADED"];
sleep 2;
titleText ["", "PLAIN"];
_player = allUnits call BIS_fnc_selectRandom;
while { format["%1", position _player] == "[0,0,0]" } do {
_player = allUnits call BIS_fnc_selectRandom;
};
cutText [format["%1",name _player],"PLAIN DOWN",0];
if(random 1 > 0.5) then {
_mydir = getdir _player;
_position = [(getposatl _player select 0) + (sin _mydir * 2), (getposatl _player select 1) + (cos _mydir * 2), ((getposatl _player) select 2) + 1.5];
wccam camSetPos _position;
wccam camSetTarget _player;
wccam camSetFOV 0.900;
wccam camCommit 0;
} else {
wccam camsettarget _player;
_player setCameraInterest 50;
wccam camsetrelpos [-4, -14, 1.65];
wccam CamCommit 0;
wccam camsetrelpos [10, -4, random 20];
wccam camCommit 7;
};
sleep 7;
};
setdate _date;
wccam cameraEffect ["terminate","back"];
camDestroy wccam;
wccam = objNull;