This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.sqf
executable file
·103 lines (94 loc) · 5.52 KB
/
tasks.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
// by Xeno
//#define __DEBUG__
#define THIS_FILE "tasks.sqf"
#include "x_setup.sqf"
if (isNil "d_MaxNumAmmoboxes") then {
waitUntil {!isNil "d_MaxNumAmmoboxes"};
};
#define __BR "<br/>"
#define __BRBR "<br/><br/>"
#define __BRBRBR "<br/><br/><br/>"
private _bar = [
localize "STR_DOM_MISSIONSTRING_23", __BR,
"<font face='RobotoCondensed' size=52 color='#ffffff'>Domination! 3</font>", __BRBR,
localize "STR_DOM_MISSIONSTRING_24", __BR,
localize "STR_DOM_MISSIONSTRING_25", __BRBRBR,
localize "STR_DOM_MISSIONSTRING_26", __BRBR,
localize "STR_DOM_MISSIONSTRING_27", __BRBR,
localize "STR_DOM_MISSIONSTRING_28", __BRBR,
localize "STR_DOM_MISSIONSTRING_29", __BR,
localize "STR_DOM_MISSIONSTRING_30", __BR,
#ifndef __TT__
format [localize "STR_DOM_MISSIONSTRING_31", d_MaxNumAmmoboxes], __BR,
#else
format [localize "STR_DOM_MISSIONSTRING_39", d_MaxNumAmmoboxes], __BR,
#endif
localize "STR_DOM_MISSIONSTRING_32", __BR,
localize "STR_DOM_MISSIONSTRING_33", __BRBR,
localize "STR_DOM_MISSIONSTRING_34", __BR,
localize "STR_DOM_MISSIONSTRING_35", __BR,
localize "STR_DOM_MISSIONSTRING_36", __BR,
localize "STR_DOM_MISSIONSTRING_37", __BRBR,
localize "STR_DOM_MISSIONSTRING_40", __BRBR,
localize "STR_DOM_MISSIONSTRING_41", __BR,
localize "STR_DOM_MISSIONSTRING_42", __BRBR,
localize "STR_DOM_MISSIONSTRING_43", __BRBR,
localize "STR_DOM_MISSIONSTRING_44", __BR,
localize "STR_DOM_MISSIONSTRING_46", __BRBR,
localize "STR_DOM_MISSIONSTRING_47", __BR,
localize "STR_DOM_MISSIONSTRING_48", __BRBR,
localize "STR_DOM_MISSIONSTRING_49", __BRBR,
localize "STR_DOM_MISSIONSTRING_51", __BR,
localize "STR_DOM_MISSIONSTRING_52", __BR,
localize "STR_DOM_MISSIONSTRING_54", __BRBR,
localize "STR_DOM_MISSIONSTRING_55", __BR,
localize "STR_DOM_MISSIONSTRING_56", __BRBR,
localize "STR_DOM_MISSIONSTRING_57", __BRBR,
localize "STR_DOM_MISSIONSTRING_58", __BRBR,
localize "STR_DOM_MISSIONSTRING_61", __BRBR,
"Thanks to all people who donate, you guys are great :-)", __BRBR,
"Domination also available on Discord: https://discordapp.com/invite/vYVNKV2"
];
player createDiaryRecord ["Diary", ["Briefing", _bar joinString ""]];
player createDiarySubject ["dLicense","License"];
player createDiaryRecord ["dLicense", ["License", "
Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)<br/><br/>
http://creativecommons.org/licenses/by-nc-nd/4.0/<br/><br/>
You are free to:<br/><br/>
Share � copy and redistribute the material in any medium or format<br/><br/>
The licensor cannot revoke these freedoms as long as you follow the license terms.<br/><br/><br/>
Under the following terms:<br/><br/>
Attribution � You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner,<br/>
but not in any way that suggests the licensor endorses you or your use.<br/><br/>
NonCommercial � You may not use the material for commercial purposes.<br/><br/>
NoDerivatives � If you remix, transform, or build upon the material, you may not distribute the modified material.<br/><br/><br/>
No additional restrictions � You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
"]];
player createDiaryRecord ["dLicense", ["License, additional", "
The following is not allowed, read strictly forbidden!<br/><br/>
Uploading Domination to Steam Workshop is not allowed (only by myself)!!!!!<br/><br/>
You are not allowed to monetize videos recorded/streamed while playing Domination in any form!!!!<br/>
(Non-commercial license, that's for you, youtube and twitch heroes. Make your own content if you want to make money and don't use other peoples work!!!)<br/><br/>
Server owners are also not allowed to monetize their servers with perks or anything else when using/playing Domination!<br/>
(Again, non-commercial license!)<br/><br/>
Additionally you are not allowed to use any of the Dom scripts/dialogs/images/whatever outside of the mission!<br/>
It is also strictly forbidden for server host companys to sell or rent servers with the mission!!<br/>
(Non commercial license, not that hard to understand)<br/><br/>
THIS MISSION IS Arma 3 only! Because no derivates are allowed it also means no port to any other game in the series is allowed!<br/><br/>
You are free to edit the mission for your own server but you may not release the mission elsewhere (read the license!).<br/>
Furthermore you may not use servside addons with code from the mission or from your modded version. All code has to be in the mission.pbo!
"]];
if (d_database_found && {getClientStateNumber < 10}) then {
if (!isNil "d_db_savegames" && {serverCommandAvailable "#shutdown" || {isServer}}) then {
player createDiarySubject ["dDBLoad", localize "STR_DOM_MISSIONSTRING_1750"];
private _helperar = [];
{
_helperar pushBack format ["<execute expression='%1 call d_fnc_db_load_savegame'>%2</execute><br/>", _forEachIndex, _x];
} forEach d_db_savegames;
player createDiaryRecord ["dDBLoad", [localize "STR_DOM_MISSIONSTRING_1750", format [localize "STR_DOM_MISSIONSTRING_1751", "<br/><br/>", _helperar joinString ""]]];
};
};
waitUntil {!isNil "d_current_target_index"};
private _tstate = ["Succeeded", "Assigned"] select (d_current_target_index == -1);
[player, "d_obj00", [localize "STR_DOM_MISSIONSTRING_62", localize "STR_DOM_MISSIONSTRING_62", localize "STR_DOM_MISSIONSTRING_62"], getPosWorld player, _tstate, 2, false, "Defend", false] call BIS_fnc_taskCreate;
d_obj00_task = true;