Skip to content

Commit 2a51408

Browse files
committed
Refactors game parameters to be initialised earlier in Singleplayer
Completes fix found in c719768
1 parent 689b842 commit 2a51408

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

A3-Antistasi/init.sqf

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ if (isServer and (isNil "serverInitDone")) then {skipTime random 24};
66

77
if (!isMultiPlayer) then
88
{
9+
//Init server parameters
910
gameMode = 1;
11+
autoSave = false;
12+
membershipEnabled = false;
13+
memberOnlyMagLimit = 0;
14+
switchCom = false;
15+
tkPunish = false;
16+
skillMult = 1;
17+
minWeaps = 24;
18+
civTraffic = 1;
19+
limitedFT = false;
20+
1021
diag_log "Starting Antistasi SP";
1122
call compile preprocessFileLineNumbers "initVar.sqf";//this is the file where you can modify a few things.
1223
initVar = true;
@@ -45,16 +56,9 @@ if (!isMultiPlayer) then
4556
serverInitDone = true;
4657
diag_log "Antistasi SP. serverInitDone is true. Arsenal loaded";
4758
_nul = [] execVM "modBlacklist.sqf";
48-
autoSave = false;
49-
membershipEnabled = false;
50-
memberOnlyMagLimit = 0;
51-
switchCom = false;
52-
tkPunish = false;
59+
5360
distanceMission = if (hasIFA) then {2000} else {4000};
54-
skillMult = 1;
55-
minWeaps = 24;
56-
civTraffic = 1;
57-
limitedFT = false;
61+
5862
{
5963
private _index = _x call jn_fnc_arsenal_itemType;
6064
[_index,_x,-1] call jn_fnc_arsenal_addItem;

0 commit comments

Comments
 (0)