Skip to content

Commit 19378c8

Browse files
committed
Mod folder upload
1 parent 3e4710c commit 19378c8

4 files changed

Lines changed: 74 additions & 0 deletions

File tree

2.46 KB
Binary file not shown.
711 Bytes
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class sqfremoteexecute {
2+
name="SQF Remote Executor";
3+
dir="@sqfremoteexecute";
4+
version="1.0";
5+
author[]= {
6+
"badidas";
7+
};
8+
requiredAddons[]={};
9+
requiredVersion=1;
10+
units[]={};
11+
weapons[]={};
12+
hideName="false";
13+
hidePicture="true";
14+
description="A remote code executor for scripting outside the server!";
15+
};
16+
17+
class CfgPatches {
18+
class sqfexecute_main: sqfremoteexecute { };
19+
};
20+
21+
class CfgMods {
22+
class sqfexecute_mod: sqfremoteexecute { };
23+
};
24+
25+
class CfgFunctions {
26+
class sqfremoteexecute {
27+
class main {
28+
class startInit {
29+
file="sqfremoteexecute\fnc_startInit.sqf";
30+
preInit=1;
31+
};
32+
};
33+
};
34+
};
35+
36+
class Extended_PreInit_EventHandlers {
37+
sqfremoteexecute="call compile preprocessFileLineNumbers 'sqfremoteexecute\fnc_startInit.sqf'";
38+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
diag_log "ok";
2+
if (isNil 'sqfexecute_server_isOn') then {
3+
sqfexecute_server_isOn = false;
4+
5+
_res = "sqfexecute" callExtension "0";
6+
diag_log format["Plain: %1", _res];
7+
8+
9+
if (_res != "OK") exitWith {
10+
diag_log format["Extension sent nothing good - The addon won't work! Aborting..."];
11+
};
12+
13+
diag_log format["Extension sent OK | %1", _res];
14+
_res = "sqfexecute" callExtension "2";
15+
16+
if (_res == "OK") then {
17+
sqfexecute_server_isOn = true;
18+
[[], "thr"] call BIS_fnc_spawnOrdered;
19+
} else {
20+
sqfexecute_server_isOn = false;
21+
};
22+
};
23+
24+
thr = {
25+
while {true} do {
26+
_res = "sqfexecute" callExtension "5";
27+
if(_res != "no-message-yet") then {
28+
diag_log format["New execution! | RES: %1", _res];
29+
30+
_retam = 0 call compile _res;
31+
32+
"sqfexecute" callExtension format["4%1", _retam];
33+
};
34+
uiSleep 0.03;
35+
};
36+
};

0 commit comments

Comments
 (0)