fixes reinsertion formatting and includes groups in diaglog

This commit is contained in:
2024-01-28 22:35:03 -08:00
parent 49fa0c39d2
commit b6189cc7f3
2 changed files with 37 additions and 14 deletions

View File

@@ -5,9 +5,25 @@ private _baseNames = (missionNamespace getVariable ["milsim_respawn_reinsertionQ
private _peopleAtThisBase = (missionNamespace getVariable ["milsim_respawn_reinsertionQueue", []]) select {
_x#1 isEqualTo _baseName
} apply {
[name (_x#0), 0.7, [1,1,1,1]];
private _timeInQueue = diag_tickTime - (_x#2);
[
format [
"%1: %2 [%3]",
groupId (group (_x#0)),
name (_x#0),
[_timeInQueue, "MM:SS"] call BIS_fnc_secondsToString
],
0.7,
[1,1,1,1]
];
};
_peopleAtThisBase = [
_peopleAtThisBase,
[],
{_x#0}
] call BIS_fnc_sortBy;
private _playerCountText = "";
switch (count _peopleAtThisBase) do {
case 0: {