clean up server side temp groups

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-08-30 03:36:37 -05:00
parent d90eb4774f
commit 3b82e8b0b0
4 changed files with 1 additions and 11 deletions

View File

@ -49,8 +49,6 @@ if (_groupName != "") then {
_leader setVariable ["TEMPGROUP", _groupID]; _leader setVariable ["TEMPGROUP", _groupID];
_leader setVariable ["TEMPGROUPARRAY",_contentArray]; _leader setVariable ["TEMPGROUPARRAY",_contentArray];
// Save Group Data
//["TempGroup", _groupID, _contentArray] call EPOCH_fnc_server_hiveSET;
_return = true; _return = true;
}; };
_return _return

View File

@ -43,7 +43,6 @@ if (_groupID != "") then {
[_x] joinSilent _group; [_x] joinSilent _group;
} forEach (allPlayers select {(_x getVariable["TEMPGROUP", ""]) == _groupID}); } forEach (allPlayers select {(_x getVariable["TEMPGROUP", ""]) == _groupID});
//_return = ["TempGroup", _groupID] call EPOCH_fnc_server_hiveDEL;
[["tempGroupUpdate", []], _player] call EPOCH_sendRemoteExecClient; [["tempGroupUpdate", []], _player] call EPOCH_sendRemoteExecClient;
_return = true; _return = true;
}; };

View File

@ -29,9 +29,7 @@ _contentArray = [];
{ {
_contentArray = _x getVariable ["TEMPGROUPARRAY",[]]; _contentArray = _x getVariable ["TEMPGROUPARRAY",[]];
} forEach (allPlayers select {getPlayerUID _x == _groupID}); } forEach (allPlayers select {getPlayerUID _x == _groupID});
diag_log format["eXpochDEBUG:1 _contentArray:%1",_contentArray];
//_response = ["TempGroup", _groupID] call EPOCH_fnc_server_hiveGETRANGE;
if !(_contentArray isEqualTo []) then { if !(_contentArray isEqualTo []) then {
_contentArray params ["_groupName","_leaderName","_groupSize","_modArray","_memberArray"]; _contentArray params ["_groupName","_leaderName","_groupSize","_modArray","_memberArray"];
@ -135,6 +133,4 @@ if !(_contentArray isEqualTo []) then {
[["tempGroupUpdate", _contentArray], _x] call EPOCH_sendRemoteExecClient; [["tempGroupUpdate", _contentArray], _x] call EPOCH_sendRemoteExecClient;
} forEach (_allPlayers select {(_x getVariable["TEMPGROUP", ""]) == _groupID}); } forEach (_allPlayers select {(_x getVariable["TEMPGROUP", ""]) == _groupID});
// Save Group Data
//["TempGroup", _groupID, _contentArray] call EPOCH_fnc_server_hiveSET;
}; };

View File

@ -21,7 +21,6 @@ if !([_player, _token] call EPOCH_server_getPToken) exitWith{};
_return = false; _return = false;
// [_groupName, _leaderName, _groupSize, _modArray, _memberArray] // [_groupName, _leaderName, _groupSize, _modArray, _memberArray]
//_response = ["TempGroup", _groupID] call EPOCH_fnc_server_hiveGETRANGE;
if ((_response select 0) == 1 && (_response select 1) isEqualType []) then { if ((_response select 0) == 1 && (_response select 1) isEqualType []) then {
_contentArray = (_response select 1); _contentArray = (_response select 1);
_found = EPOCH_group_upgrade_lvl_SEPXVar find (_contentArray select 2); _found = EPOCH_group_upgrade_lvl_SEPXVar find (_contentArray select 2);
@ -44,8 +43,6 @@ if ((_response select 0) == 1 && (_response select 1) isEqualType []) then {
[["tempGroupUpdate", _contentArray], _x] call EPOCH_sendRemoteExecClient; [["tempGroupUpdate", _contentArray], _x] call EPOCH_sendRemoteExecClient;
} forEach (allPlayers select {getPlayerUID _x in _groupMemberPUID}); } forEach (allPlayers select {getPlayerUID _x in _groupMemberPUID});
// Save Group Data
//_return = ["TempGroup", _groupID, _contentArray] call EPOCH_fnc_server_hiveSET;
_return = true; _return = true;
}; };
}; };