forked from CombinedArmsGaming/CAFE3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdescription.ext
More file actions
518 lines (346 loc) · 10.6 KB
/
description.ext
File metadata and controls
518 lines (346 loc) · 10.6 KB
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
#include "macros.hpp"
#include "startup\configuration\internals\configMacros.hpp"
#include "startup\configuration\internals\configClasses.hpp"
// ============================================================================================
class Header
{
// Available gameTypes:
// Coop: | Coop Mission: The Bread and Butter of CA missions
// DM | Death Match
// TDM | Team Death Match
// CTF | Capture The Flag (or, nuke)
// SC | Sector Control (Think insurgency - the red/green squares)
// RPG | Skyrim
// Sandbox | Free Game type, think Shady Swindle
// Seize | Seize a location
// Defend | Defend a location
gameType = Coop;
minPlayers = 1;
maxPlayers = 100;
};
// ============================================================================================
onLoadName = "*** Insert mission name here. ***";
onLoadMission = "Made with the CAFE3 Framework";
author = "*** Insert mission author name here. ***";
loadScreen = "ca_logo_large.jpg";
// ============================================================================================
enableDebugConsole = 1;
// CAFE - Debug variable, needs to exist pre-init.
#include "startup\configuration\internals\debug.sqf"
// ============================================================================================
// CAFE - Respawn Settings
respawn = "BASE";
respawnDialog = 0;
respawnDelay = 10;
respawnOnStart = 0;
respawnTemplatesWest[] = RESPAWN_MODE_BLUFOR;
respawnTemplatesEast[] = RESPAWN_MODE_OPFOR;
respawnTemplatesGuer[] = RESPAWN_MODE_INDFOR;
respawnTemplatesCiv[] = RESPAWN_MODE_CIVILIAN;
// CAFE - Respawn system includes.
#include "components\respawn\cfgRespawnTemplates.hpp"
// ============================================================================================
forceRotorLibSimulation = 0;
// ============================================================================================
#ifdef ENABLE_SLOTTING_GENERATOR_MODE
disabledAI = false;
#else
disabledAI = true;
#endif
// ============================================================================================
cba_settings_hasSettingsFile = 1;
// ============================================================================================
#ifdef ENABLE_GRAVESTONE_CORPSE_MANAGER
corpseManagerMode = 0;
#else
corpseManagerMode = 1;
#endif
corpseLimit = 15;
corpseRemovalMinTime = 60; //seconds
corpseRemovalMaxTime = 300; //seconds
// ============================================================================================
class cfgNotifications
{
// Notification Template
class Template
{
title = ""; // Tile displayed as text on black background. Filled by arguments.
iconPicture = ""; // Small icon displayed in left part. Colored by "color", filled by arguments.
iconText = ""; // Short text displayed over the icon. Colored by "color", filled by arguments.
description = ""; // Brief description displayed as structured text. Colored by "color", filled by arguments.
color[] = {1,1,1,1}; // Icon and text color
duration = 5; // How many seconds will the notification be displayed
priority = 0; // Priority; higher number = more important; tasks in queue are selected by priority
difficulty[] = {}; // Required difficulty settings. All listed difficulties has to be enabled
};
// A generic warning notification
class Alert
{
title = "ALERT";
description = "%1";
iconPicture="\A3\ui_f\data\map\markers\military\warning_ca.paa";
duration = 3;
priority = 9;
};
// Notification for the CAFE Mapclick Teleport component
class MapClickTeleport
{
title= "NOTE";
description= "%1";
iconPicture = "\A3\ui_f\data\map\markers\military\start_ca.paa";
duration = 3;
priority = 5;
};
// Notification for the CAFE Mapclick Supply Drop component
class MapClickSupplyDrop
{
title= "NOTE";
description= "%1";
iconPicture = "\A3\ui_f\data\map\markers\military\start_ca.paa";
duration = 3;
priority = 5;
};
// Notification for the CAFE JIP Component
class JIP
{
title= "REINFORCEMENTS";
description= "%1";
iconPicture = "\A3\ui_f\data\map\markers\military\flag_ca.paa";
duration = 3;
priority = 5;
};
};
// ============================================================================================
class CfgDebriefing
{
#include "configuration\endings.hpp"
};
// ============================================================================================
class Params
{
#include "components\missionParameters.hpp"
};
class CfgFunctions
{
#include "components\functions.hpp"
class CAFEConfig
{
class PreInit
{
class startup_preInit
{
file = "startup\startup_preInit.sqf";
preInit = 1;
};
};
};
};
class CfgUnitInsignia
{
#include "res\insignia\defines.hpp"
};
// ============================================================================================
// Adds to the debriefing possible kills and possible reasons for deaths as well, so after an operation don't go straight to mission select. Its the fourth tab after score.
class CfgDebriefingSections
{
class acex_killTracker
{
title = "Acex Killed Events";
variable = "acex_killTracker_outputText";
};
#ifdef ENABLE_EXTENDED_STATS
class cafe_statsTracker
{
title = "Personal Stats";
variable = "cafe_playerStatsStr";
};
#endif
};
// ============================================================================================
// Custom Sounds - Be advised, if you use a cfgSound in a mission,
// it will play until the file stops, Sounds cannot be interrupted
// unless the object playing the sound is killed or otherwise destroyed.
// Sound files can be played in 3D, and are an effect for volume purposes.
/*
class CfgSounds
{
sounds[] = {};
class wolf1
{
// how the sound is referred to in the editor (e.g. trigger effects)
name = "my_wolf_sound";
// filename, volume, pitch
sound[] = {"wolf1.ogg", 1, 1};
// subtitle delay in seconds, subtitle text
titles[] = {1, "*wolf growls*"};
};
};
*/
// ============================================================================================
// Custom Music - Can generally be stopped, but plays globally. Cannot be played in 3D
// from an object but is affected by the Music volume slider.
class CfgMusic
{
tracks[]={};
class FourStringEnding
{
name = "FourStringEnding";
sound[] = {"\res\sounds\FourStringEnding.ogg",db+1, 1};
};
};
// ============================================================================================
#include "dialogs.hpp"
class RscTitles
{
#include "titles.hpp"
};
// Makes splendid camera still show chat after quitting splendid camera.
class Extended_DisplayUnload_EventHandlers
{
class RscDisplayCamera
{
ca_fixcamera = "showChat true";
};
class RscDisplayCurator
{
clientDisplayUnload = "[] call f_fnc_exitZeus;";
};
};
// ============================================================================================
class Extended_Killed_EventHandlers
{
#ifdef ENABLE_KILL_TRACKING
class AllVehicles
{
class killTracking
{
killed = "_this call f_fnc_trackKilledEvent";
};
};
#endif
#ifdef ENABLE_GRAVESTONE_CORPSE_MANAGER
class CAManBase
{
class gravestones
{
killed = "_this call f_fnc_addToGravestoneManager";
};
};
#endif
};
// ============================================================================================
class Extended_PreInit_EventHandlers
{
class AddCustomSettings
{
init = "call compile preprocessFileLineNumbers 'components\miscShared\fn_addCustomSettings.sqf'";
};
#ifdef ENABLE_SCALE_SUPPORT
class AddEdenScaleSupport
{
init = "call compile preprocessFileLineNumbers 'components\miscShared\fn_edenScaleSupport.sqf'";
};
#endif
};
// ============================================================================================
class Extended_InitPost_EventHandlers
{
#ifdef ENABLE_KILL_TRACKING
class AllVehicles
{
init = "_obj = _this select 0; _obj setVariable ['f_var_side', side _obj, true]";
};
#endif
class CAManBase
{
#ifdef ENABLE_INVENTORY_ACTION
class addInventoryAction
{
init = "_this call f_fnc_addInventoryActionToClass";
};
#endif
#ifdef ENABLE_VIEWDISTANCE_EDITOR
class addViewDistanceAction
{
init = "_this call f_fnc_addViewDistanceActionToClass";
};
#endif
#ifdef ENABLE_EXTENDED_STATS
class addStatsEventHandlers
{
init = "_this call f_fnc_addStatsEventHandlersToClass";
};
#endif
class addSquadManagerActions
{
init = "_this call f_fnc_addSquadManagerActionsToClass";
};
// For JIP compatibility with insignias.
class reapplyInsigniaLocal
{
init = "_this call f_fnc_reapplyInsigniaLocal";
};
};
class LandVehicle
{
#ifdef ENABLE_UNFLIP_ACTION
class addUnflipAction
{
init = "_this call f_fnc_addUnflipActionToClass";
};
#endif
#ifdef ENABLE_HUNTER_KILLER_ACTION
class addHunterKillerAction
{
init = "_this call f_fnc_addHunterKillerActions";
};
#endif
class addAiDriverAction
{
init = "_this call f_fnc_addAiDriverActions";
};
};
class Ship
{
#ifdef ENABLE_PUSH_BOATS_ACTION
class addPushAction
{
init = "_this call f_fnc_addPushActionToClass";
};
#endif
#ifdef ENABLE_HUNTER_KILLER_ACTION
class addHunterKillerAction
{
init = "_this call f_fnc_addHunterKillerActions";
};
#endif
};
/*
class Helicopter
{
class addMusic
{
init = "_this call f_fnc_addHeliMusic";
};
};
*/
};
// ============================================================================================
class Extended_DisplayLoad_EventHandlers
{
class RscDiary
{
CAFE_SquadMarkers = "[_this#0, (_this#0) displayCtrl 51] call f_fnc_createSquadMarkerHook;";
CAFE_FireteamMarkers = "[_this#0, (_this#0) displayCtrl 51] call f_fnc_createFireteamMarkerHook;";
CAFE_RadioList = "[_this#0, (_this#0) displayCtrl 51] call f_fnc_createRadioList;";
};
class RscCustomInfoMiniMap
{
CAFE_SquadMarkers = "[_this#0, (_this#0) displayCtrl 101] call f_fnc_createSquadMarkerHook;";
CAFE_FireteamMarkers = "[_this#0, (_this#0) displayCtrl 101] call f_fnc_createFireteamMarkerHook;";
};
class RscDisplayCurator
{
clientDisplayLoad = "[] call f_fnc_openZeus;";
};
};