forked from whipl/BoringMonday-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initPlayerServer.sqf
33 lines (27 loc) · 1.21 KB
/
initPlayerServer.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
/* ==================================================== */
/* === Script for Arma3 by Whiplash. === */
/* === This script is open-source and can be used. === */
/* === See comments below for how-to-use. === */
/* ==================================================== */
//This script negates the issue that a player which has been disconnected by a drop
//Sometimes is unable to regain ZEUS functions upon rejoining.
//Sometimes ZEUS is that broken, that this effect might also harm other acting ZEUSs
// Credits to Pax for most of this.
/* ==================================================== */
if ((paramsArray select 2) == 1) then {
{
if (!isnull (getassignedcuratorunit _x)) then {
_unit = getassignedcuratorunit _x;
if (isnull (getassignedcuratorlogic _unit)) then {
unassignCurator _x;
sleep 1;
_unit assignCurator _x;
};
};
} foreach allcurators;
{
_x addCuratorEditableObjects [allMissionObjects "Man", true];
_x addCuratorEditableObjects [allMissionObjects "Car", true];
_x addCuratorAddons ["JO_Insurgent","A3_Modules_F_Curator_Misc","ace_explosives","A3_Structures_F_Wrecks","UK3CB_BAF_Units_MTP"];
} forEach allCurators;
};