-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sqf
More file actions
48 lines (41 loc) · 1.9 KB
/
init.sqf
File metadata and controls
48 lines (41 loc) · 1.9 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
// =================================================================
// PRE-INIT SERVER PARAMS
setViewDistance 2000;
{_x disableTIEquipment true;} forEach (allMissionObjects "All");
{_x disableNVGEquipment true;} forEach (allMissionObjects "All");
enableEngineArtillery false;
enableSaving [false,false];
enableRadio false;
enableSentences false;
oldSubs = showSubtitles false;
showHUD [true,true,true,true,true,true,false,true];
// =================================================================
// GLOBAL EXECUTION
[] execVM "scripts\outlw_magRepack\MagRepack_init_sv.sqf"; // Mag Repack Script -- #Includes in description.ext.
[] execVM "scripts\sand_radio.sqf"; // init MosesUK's sandbox radio.
// [] execVM "VCOMAI\init.sqf"; // Activate VCOM.
[] execVM "scripts\playerNameTags.sqf"; // Name tags over players heads.
// =================================================================
// LOGISTICS
// Custom item categories and buy and sell values,
#include "scripts\includes\inc_logisticsIVTable.hpp"
// Spawn position for the logistics helicopter.
defaultHeloPosition = getMarkerPos "Helipoint";
// For Dynamic Groups;
#include "scripts\includes\inc_playerSpawnGroups.hpp"
// Disconnected Player Body Cleanup
// Only deletes players body if completely empty.
addMissionEventHandler ["HandleDisconnect",{
private ["_weapons"];
_itemCntArray = [];
_discObj = _this select 0;
_uniformItems = uniformItems _discObj;
if (!(_uniformItems isEqualTo [])) then {_itemCntArray pushBack _uniformItems};
_backpackItems = backpackContainer _discObj;
if (!(_backpackItems isEqualTo objNull)) then {_itemCntArray pushBack _backpackItems};
_vestItems = vestItems _discObj;
if (!(_vestItems isEqualTo [])) then {_itemCntArray pushBack _vestItems};
_weapons = weapons _discObj;
if !(count _weapons == 0) then { _itemCntArray pushBack _weapons };
if ((count _itemCntArray) == 0) then {deleteVehicle _discObj};
}];