-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathc_checkMaster.sqf
More file actions
97 lines (82 loc) · 3.24 KB
/
Copy pathc_checkMaster.sqf
File metadata and controls
97 lines (82 loc) · 3.24 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
/*──────────────────────────────────────────────────────┐
│ Author: Connor │
│ Steam: https://steamcommunity.com/id/_connor │
│ Github: https://github.com/ConnorAU │
│ │
│ Please do not modify or remove this comment block │
└──────────────────────────────────────────────────────*/
private _checkMaster = "
if (!isNil '"+_masterThreadVar+"') then {
_"+_flagInitQueueVar+" pushback ['ia03','Master'];
} else {
_"+_DThreadHeartbeat+" = {"+(['Display',_reasonVar,_rndObjID,_checkDisplaysThreadVar,_DThreadHijackVar,4] call _genThreadChecker)+"};
_"+_FThreadHeartbeat+" = {"+(['Function',_reasonVar,_rndObjID,_funcCheckThreadVar,_FThreadHijackVar,4] call _genThreadChecker)+"};
"+_clientEvent_MapTP+"
"+_clientEvent_FiredMan+"
"+_clientEvent_HandleDamage+"
"+_clientEvent_Take+"
"+_masterThreadVar+" = [[_"+_checkFlaggedStatusVar+",_"+_DThreadHeartbeat+",_"+_FThreadHeartbeat+"],{
params ['_"+_checkFlaggedStatusVar+"','_"+_DThreadHeartbeat+"','_"+_FThreadHeartbeat+"'];
private _"+_checkVarsThread+" = scriptNull;
private _"+_checkActiveScriptsThread+" = scriptNull;
private _"+_lagSwitchTickVar+" = 0;
"+_checkClientInitVariables+"
while {true} do {
"+SET_SCOPE_NAME+"
_"+_reasonVar+" = [];
"+_MThreadHijackVar+" = 0;
if !("+_masterThreadVar+" isequalto _thisScript) then {
_"+_reasonVar+" = ['tc06',['Master',str "+_masterThreadVar+"]];
call _"+_checkFlaggedStatusVar+";
terminate "+_masterThreadVar+";
"+_masterThreadVar+" = _thisScript;
};
if (!isNil '"+_infBannedTrig+"') then {
_"+_reasonVar+" = ['pid07',"+_infBannedTrig+"];
call _"+_checkFlaggedStatusVar+";
};
if (!isNil '"+_wskothBannedTrig+"') then {
_"+_reasonVar+" = ['pid12',"+_wskothBannedTrig+"];
call _"+_checkFlaggedStatusVar+";
};
if (!isNil '"+_bmBannedTrig+"') then {
_"+_reasonVar+" = ['pid08',"+_bmBannedTrig+"];
if ("+_bmBannedTrig+" != (getPlayerUID player)) then {
_"+_reasonVar+" set [0,'pid08b'];
};
call _"+_checkFlaggedStatusVar+";
};
if (!isNil '"+_beBannedTrig+"') then {
_"+_reasonVar+" = ['pid14',"+_beBannedTrig+"];
call _"+_checkFlaggedStatusVar+";
};
if isFilePatchingEnabled then {
_"+_reasonVar+" = ['cc19'];
call _"+_checkFlaggedStatusVar+";
};
call _"+_DThreadHeartbeat+";
call _"+_FThreadHeartbeat+";
"+_checkClient+"
"+_checkScrollMenu+"
"+_checkVars+"
"+_checkActiveScripts+"
call _"+_checkFlaggedStatusVar+";
uisleep (random 0.7 max 0.5);
};
}] spawn {
"+SET_SCRIPT_NAME+"
(_this select 0) call (_this select 1);
};
(objectFromNetId "+str _rndObjID+") setVariable ["+str _masterThreadVar+","+_masterThreadVar+"];
};
";
/*
if ((diag_tickTime - "+_lagSwitchTickVar+") < 8) then {
if (_"+_lagSwitchTickVar+" > 0) then {
_"+_reasonVar+" = ['ls01',_"+_lagSwitchTickVar+"];
call _"+_checkFlaggedStatusVar+";
_"+_lagSwitchTickVar+" = 0;
};
} else {
_"+_lagSwitchTickVar+" = diag_tickTime - "+_lagSwitchTickVar+";
};*/