Skip to content

Commit c38137d

Browse files
committed
Removing extraneous tutorial entries
1 parent 0a32778 commit c38137d

6 files changed

Lines changed: 23 additions & 6 deletions

File tree

addons/overthrow_main.pbo

441 Bytes
Binary file not shown.

addons/overthrow_main/functions/save/fn_loadGame.sqf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ sleep 0.2;
4040
{
4141
_x params ["_subkey","_subval"];
4242
if(!(toLower (_subkey select [0,4]) in ["ace_","cba_","bis_"]) && {(_subkey select [0,9]) != "seencache"}) then {
43+
//v0.7.8.3 : Clears extraneous tutorial done entries
44+
if(_subval isEqualType []) then {
45+
{
46+
if(_x isEqualType []) then {
47+
if(count _x == 2) then {
48+
_x params ["_k","_v"];
49+
if(_k isEqualTo "OT_tutesDone") then {
50+
_x set [1,_v arrayIntersect _v];
51+
};
52+
};
53+
};
54+
}foreach(_subval);
55+
};
4356
players_NS setVariable [_subkey,_subval,true];
4457
};
4558
}foreach(_val);

addons/overthrow_main/missions/tutorial/tut_CRIM.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//Let's find some bandits to shoot
22

33
private _done = player getVariable ["OT_tutesDone",[]];
4-
player setVariable ["OT_tutesDone",_done+["CRIM"],true];
4+
_done pushBackUnique "CRIM";
5+
player setVariable ["OT_tutesDone",_done,true];
56

67
private _targets = [];
78
private _destination = [];

addons/overthrow_main/missions/tutorial/tut_Drugs.sqf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//Let's find some civs to sell drugs to
22

33
private _done = player getVariable ["OT_tutesDone",[]];
4-
player setVariable ["OT_tutesDone",_done+["Drugs"],true];
4+
_done pushBackUnique "Drugs";
5+
player setVariable ["OT_tutesDone",_done,true];
56

67
private _targets = [];
78
private _destination = [];
@@ -66,11 +67,11 @@ private _loopCode = {
6667
and see if they wanna buy your Ganja.
6768
Not everyone is into the sweet herb,
6869
but just keep trying until you get lucky." call OT_fnc_notifyMinor;
69-
70+
7071
call OT_fnc_clearPlayerWaypoint;
7172
} else {
7273
[_loopCode,_this,0.5] call CBA_fnc_waitAndExecute;
7374
};
7475
};
7576

76-
[_loopCode,_wp,_group] call _loopCode;
77+
[_loopCode,_wp,_group] call _loopCode;

addons/overthrow_main/missions/tutorial/tut_Economy.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//Let's find some wrecks to salvage
22

33
private _done = player getVariable ["OT_tutesDone",[]];
4-
player setVariable ["OT_tutesDone",_done+["Economy"],true];
4+
_done pushBackUnique "Economy";
5+
player setVariable ["OT_tutesDone",_done,true];
56

67
private _actualMission = {
78
private _targets = [];

addons/overthrow_main/missions/tutorial/tut_NATO.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//Let's find some NATO to shoot
22

33
private _done = player getVariable ["OT_tutesDone",[]];
4-
player setVariable ["OT_tutesDone",_done+["NATO"],true];
4+
_done pushBackUnique "NATO";
5+
player setVariable ["OT_tutesDone",_done,true];
56

67
private _targets = [];
78
private _destination = [];

0 commit comments

Comments
 (0)