From c8c2b639ea7f566f31becd9f1f495aa84f30ca5a Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Tue, 17 Jun 2025 03:56:48 -0300 Subject: [PATCH] removed group info from client side, because sadly it won't work as a handler for it --- .../client/functions/fnc_extractClientPosition.sqf | 4 +--- src/cot/gps.rs | 12 +++--------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/addons/client/functions/fnc_extractClientPosition.sqf b/addons/client/functions/fnc_extractClientPosition.sqf index ec534c6..5a9eda2 100644 --- a/addons/client/functions/fnc_extractClientPosition.sqf +++ b/addons/client/functions/fnc_extractClientPosition.sqf @@ -23,9 +23,7 @@ private _pos = (getPos _unit) call FUNC(convertClientLocation); private _callsign = _unit call armatak_fnc_extract_unit_callsign; private _bearing = parseNumber ((getDir _unit) toFixed 0); private _speed = speed _unit / 3.6; -private _group_color = [_unit] call armatak_fnc_extract_group_color; -private _group_role = [_unit] call armatak_fnc_extract_group_role; -_payload = [_uuid, _pos select 0, _pos select 1, _pos select 2, _callsign, _bearing, _speed, _group_color, _group_role, _callsign]; +_payload = [_uuid, _pos select 0, _pos select 1, _pos select 2, _callsign, _bearing, _speed, _callsign]; _payload \ No newline at end of file diff --git a/src/cot/gps.rs b/src/cot/gps.rs index bd48733..d952de1 100644 --- a/src/cot/gps.rs +++ b/src/cot/gps.rs @@ -9,8 +9,6 @@ pub struct ExternalPositionPayload { pub contact_callsign: String, pub track_course: i32, pub track_speed: f32, - pub group_name: String, - pub group_role: String, pub remarker: String, } @@ -24,10 +22,8 @@ impl FromArma for ExternalPositionPayload { contact_callsign, track_course, track_speed, - group_name, - group_role, remarker, - ) = <(String, f64, f64, f32, String, i32, f32, String, String, String)>::from_arma(data)?; + ) = <(String, f64, f64, f32, String, i32, f32, String)>::from_arma(data)?; Ok(Self { uuid, point_lat, @@ -36,8 +32,6 @@ impl FromArma for ExternalPositionPayload { contact_callsign, track_course, track_speed, - group_name, - group_role, remarker, }) } @@ -54,8 +48,8 @@ impl ExternalPositionPayload { point_ce: None, point_le: None, contact_callsign: self.contact_callsign.clone(), - group_name: Some(self.group_name.clone()), - group_role: Some(self.group_role.clone()), + group_name: None, + group_role: None, track_course: Some(self.track_course), track_speed: Some(self.track_speed), link_uid: None,