removed group info from client side, because sadly it won't work as a handler for it

This commit is contained in:
Valmo Trindade
2025-06-17 03:56:48 -03:00
parent 0453470f1f
commit c8c2b639ea
2 changed files with 4 additions and 12 deletions

View File

@@ -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

View File

@@ -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,