Skip to content

Commit

Permalink
delay grad-civs initialization to reduce load on start
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed Jul 22, 2018
1 parent 8e2349a commit 4478aed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
cpbo_path="$1"
missionname="TvT_WITA"

islands=($(curl http://arma.gruppe-adler.de/userconfig/islands.txt))
islands=($(curl -k https://arma.gruppe-adler.de/userconfig/islands.txt))
islands=("${islands[@]%%:*}")

### AS AS USER, DONT EDIT BELOW THIS LINE ###
Expand Down
2 changes: 1 addition & 1 deletion cfgParams.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Params {
title = "Debug Mode";
values[] = {0,1};
texts[] = {"false","true"};
default = 1;
default = 0;
};

class RANKED_MODE {
Expand Down
2 changes: 1 addition & 1 deletion description.ext
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CfgGradCivs {
maxCivsInVehicles = 20;
spawnDistancesOnFoot[] = {1000,4500};
spawnDistancesInVehicles[] = {1500,4500};
debugMode = 1;
debugMode = 0;
exitOn = "";
onSpawn = "";
onHeldUp = "";
Expand Down
2 changes: 1 addition & 1 deletion functions/init/fn_initMission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ wita_missionParam_RESPAWNTIME = "RESPAWNTIME" call BIS_fnc_getParamValue;

[{{scriptDone _x} count (_this select 0) == count (_this select 0)}, {[_this select 1,_this select 2] call wita_setup_fnc_startGame}, [[_carsHandle,_heliHandle,_boatHandle,_cacheHandle],_indepPos,_bluforPos]] call CBA_fnc_waitUntilAndExecute;

[] call wita_init_fnc_initCivs;
[{[] call wita_init_fnc_initCivs},[],120] call CBA_fnc_waitAndExecute;
};

if (hasInterface) then {
Expand Down

0 comments on commit 4478aed

Please sign in to comment.