-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.sqf
69 lines (51 loc) · 1.77 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
//intro.sqf
//Runs on players
//Called from player on joining HG2
//Called from onPreloadFinished in initPlayerLocal.sqf or onPlayerRespawn.sqf
//Short camera pan to player, with welcome to new players
//pvs
private ["_respawn", "_view", "_cam", "_handle", "_profNam"];
_respawn = _this select 0;
//camera start pos
_view = (getPos player) vectorAdd ((((mountainPeak vectorDiff (getPos player)) vectorMultiply (1/(mountainPeak vectorDistance (getPos player)))) vectorMultiply 1000) vectorMultiply -1);
_view set [2,400];
_cam = "camera" CamCreate _view;
_cam camCommand "inertia on";
_cam CamSetTarget player;
_cam CameraEffect ["Internal","Back"];
_cam CamCommit 0;
if !(daytime >=5 or daytime<=21) then
{
camUseNVG true;
};
_cam CamSetPos ((getPos player) vectorAdd [0,0,1.5]);
titleText ["", "BLACK IN",5];
if not (_respawn) then {cutText ["Strengthen the leaders of Tanoa to be able to fight against a CSAT invasion.","PLAIN DOWN"];};
sleep 2;
if not (_respawn) then {titleRsc["introImage", "PLAIN", 2];};
_cam CamCommit 8; //15
sleep 3;
if not (_respawn) then {cutText ["Take jobs from leaders by meeting with them.", "PLAIN DOWN"];};
sleep 4.85; //14.8
if not (_respawn) then {cutText ["Point, press ""U"" and select ""Hire/Get Hired"" to build/join teams and request jobs.","PLAIN DOWN"];};
_cam CameraEffect ["Terminate","Back"];
CamDestroy _cam;
enableSaving [false,false];
//get around target bug?
//_handle=createdialog "HG_GUIMain";
//closeDialog 0;
//closeDialog 0;
if not (_respawn) then
{
sleep 15;
//Welcome Message
_profNam = profileName;
if (_profNam == "") then
{
_profNam = "";
} else
{
_profNam = " " + _profNam + ",";
};
["Welcome To","Hired Guns 2","By Werthles"] spawn BIS_fnc_infoText;
};