Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tactics debug markers #311

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion addons/danger/functions/fnc_tacticsAssault.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ _units doWatch _target;
// debug
if (EGVAR(main,debug_functions)) then {
["%1 TACTICS ASSAULT (%2 with %3 units @ %4m with %5 positions)", side _unit, name _unit, count _units, round (_unit distance2D _target), count _buildings] call EFUNC(main,debugLog);
private _m = [_unit, "", _unit call EFUNC(main,debugMarkerColor), "hd_arrow"] call EFUNC(main,dotMarker);
private _m = [_unit, "tactics assault", _unit call EFUNC(main,debugMarkerColor), "hd_arrow"] call EFUNC(main,dotMarker);
private _mt = [_target, "", _unit call EFUNC(main,debugMarkerColor), "hd_join"] call EFUNC(main,dotMarker);
{_x setMarkerSizeLocal [0.6, 0.6];} foreach [_m, _mt];
_m setMarkerDirLocal (_unit getDir _target);
Expand Down
2 changes: 1 addition & 1 deletion addons/danger/functions/fnc_tacticsFlank.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if (!GVAR(disableAutonomousSmoke) && {(getSuppression _unit) isNotEqualTo 0}) th
// debug
if (EGVAR(main,debug_functions)) then {
["%1 TACTICS FLANK (%2 with %3 units and %6 vehicles @ %4m with %5 positions)", side _unit, name _unit, count _units, round (_unit distance2D _overwatch), count _pos, count _vehicles] call EFUNC(main,debugLog);
private _m = [_unit, "", _unit call EFUNC(main,debugMarkerColor), "hd_arrow"] call EFUNC(main,dotMarker);
private _m = [_unit, "tactics flank", _unit call EFUNC(main,debugMarkerColor), "hd_arrow"] call EFUNC(main,dotMarker);
private _mt = [_overwatch, "", _unit call EFUNC(main,debugMarkerColor), "hd_objective"] call EFUNC(main,dotMarker);
{_x setMarkerSizeLocal [0.6, 0.6];} foreach [_m, _mt];
_m setMarkerDirLocal (_unit getDir _overwatch);
Expand Down
2 changes: 1 addition & 1 deletion addons/danger/functions/fnc_tacticsGarrison.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ _group setVariable [QEGVAR(main,groupMemory), _buildings];
// debug
if (EGVAR(main,debug_functions)) then {
["%1 TACTICS GARRISON %2 (%3m) (%4 units)", side _unit, groupId _group, round (_unit distance2D _target), count _units] call EFUNC(main,debugLog);
private _m = [_target, "", _unit call EFUNC(main,debugMarkerColor), "hd_flag"] call EFUNC(main,dotMarker);
private _m = [_target, "tactics garrison", _unit call EFUNC(main,debugMarkerColor), "hd_flag"] call EFUNC(main,dotMarker);
_m setMarkerSizeLocal [0.6, 0.6];
[{deleteMarker _this}, _m, _delay + 30] call CBA_fnc_waitAndExecute;
};
Expand Down
2 changes: 1 addition & 1 deletion addons/danger/functions/fnc_tacticsHide.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if (_antiTank && { _tankAir != -1 } && { _launchers isNotEqualTo [] }) then {
// debug
if (EGVAR(main,debug_functions)) then {
["%1 TACTICS HIDE %2 (cover %3)%4", side _unit, groupId _group, count _cover, ["", " (anti tank/air)"] select _antiTank] call EFUNC(main,debugLog);
private _m = [_unit, "", _unit call EFUNC(main,debugMarkerColor), "hd_ambush"] call EFUNC(main,dotMarker);
private _m = [_unit, "tactics hide", _unit call EFUNC(main,debugMarkerColor), "hd_ambush"] call EFUNC(main,dotMarker);
_m setMarkerSizeLocal [0.6, 0.6];
_m setMarkerDirLocal ((_unit getDir _target) - 90);
[{{deleteMarker _x;true} count _this;}, [_m], _delay + 30] call CBA_fnc_waitAndExecute;
Expand Down
2 changes: 1 addition & 1 deletion addons/danger/functions/fnc_tacticsSuppress.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ _group setFormDir (_unit getDir _target);
// debug
if (EGVAR(main,debug_functions)) then {
["%1 TACTICS SUPPRESS (%2 with %3 units and %6 vehicles @ %4m with %5 positions for %7 cycles)", side _unit, name _unit, count _units, round (_unit distance2D _target), count _pos, count _vehicles, _cycle] call EFUNC(main,debugLog);
private _m = [_unit, "", _unit call EFUNC(main,debugMarkerColor), "hd_arrow"] call EFUNC(main,dotMarker);
private _m = [_unit, "tactics suppress", _unit call EFUNC(main,debugMarkerColor), "hd_arrow"] call EFUNC(main,dotMarker);
private _mt = [_target, "", _unit call EFUNC(main,debugMarkerColor), "hd_destroy"] call EFUNC(main,dotMarker);
{_x setMarkerSizeLocal [0.6, 0.6];} foreach [_m, _mt];
_m setMarkerDirLocal (_unit getDir _target);
Expand Down