Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions addons/overthrow_main/functions/save/fn_saveGame.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,23 @@ if !(_quiet) then {
[_x] call OT_fnc_savePlayerData;
} forEach ([] call CBA_fnc_players);

private _players = ((allVariables players_NS) select { [players_NS, _x] call _nilFilter }) apply {
[_x, players_NS getVariable _x];
private _players = ((allVariables players_NS) select {
[players_NS, _x] call _nilFilter
}) apply {
private _val = players_NS getVariable _x;
if (_val isEqualType []) then {
_val = _val select {
!(
(_x isEqualType [])
&& { count _x > 0 }
&& { (_x select 0) isEqualType "" }
&& { ((_x select 0) select [0,1]) == "@" }
)
};
};
[_x, _val];
};

_data pushBack ["players", _players];

private _cfgVeh = configFile >> "CfgVehicles";
Expand Down