From 58e94fbd31eb201c6e3070f43bbe20e560a5cf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kami=C5=84ski?= Date: Wed, 17 Jul 2024 19:50:05 +0200 Subject: [PATCH] Update char permissions, attachment roles --- AeroMessages/GSS/V66/Character/CharacterShared.cs | 6 +++--- .../GSS/V66/Character/Controller/CombatController.cs | 10 +++++----- .../GSS/V66/Character/Event/FactionReputationUpdate.cs | 6 +++--- .../GSS/V66/Generic/Event/AchievementUnlocked.cs | 4 +++- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/AeroMessages/GSS/V66/Character/CharacterShared.cs b/AeroMessages/GSS/V66/Character/CharacterShared.cs index 79db923..abbf0bf 100644 --- a/AeroMessages/GSS/V66/Character/CharacterShared.cs +++ b/AeroMessages/GSS/V66/Character/CharacterShared.cs @@ -317,9 +317,9 @@ public enum AttachmentRoleType : byte { None = 0, Driver = 1, - ActivePassenger = 3, - PassivePassenger = 4, - Turret = 5, + ActivePassenger = 2, + PassivePassenger = 3, + Turret = 4, } public EntityId Id1; diff --git a/AeroMessages/GSS/V66/Character/Controller/CombatController.cs b/AeroMessages/GSS/V66/Character/Controller/CombatController.cs index 9af6218..af22bd8 100644 --- a/AeroMessages/GSS/V66/Character/Controller/CombatController.cs +++ b/AeroMessages/GSS/V66/Character/Controller/CombatController.cs @@ -166,17 +166,17 @@ public enum CharacterPermissionFlags : ulong movement = 1U << 0, sprint = 1U << 1, jump = 1U << 2, - unk_3 = 1U << 3, + interact = 1U << 3, weapon = 1U << 4, - unk_5 = 1U << 5, + melee = 1U << 5, abilities = 1U << 6, - unk_7 = 1U << 7, + flashlight = 1U << 7, unk_8 = 1U << 8, cheat_jump_midair = 1U << 9, glider = 1U << 10, unk_11 = 1U << 11, jetpack = 1U << 12, - unk_13 = 1U << 13, + map = 1U << 13, unk_14 = 1U << 14, unk_15 = 1U << 15, new_character = 1U << 16, @@ -187,7 +187,7 @@ public enum CharacterPermissionFlags : ulong unk_21 = 1U << 21, calldown_abilities = 1U << 22, unk_23 = 1U << 23, - unk_24 = 1U << 24, + emotes = 1U << 24, unk_25 = 1U << 25, unk_26 = 1U << 26, self_revive = 1U << 27, diff --git a/AeroMessages/GSS/V66/Character/Event/FactionReputationUpdate.cs b/AeroMessages/GSS/V66/Character/Event/FactionReputationUpdate.cs index 460ac5e..6c93427 100644 --- a/AeroMessages/GSS/V66/Character/Event/FactionReputationUpdate.cs +++ b/AeroMessages/GSS/V66/Character/Event/FactionReputationUpdate.cs @@ -7,13 +7,13 @@ namespace AeroMessages.GSS.V66.Character.Event public partial class FactionReputationUpdate { [AeroArray(typeof(byte))] public FactionReputationData[] Data; - public byte Unk2; + public byte HideUiNotification; } [AeroBlock] public struct FactionReputationData { - public byte Unk1; - public uint Unk2; + public byte FactionId; + public uint Points; } } \ No newline at end of file diff --git a/AeroMessages/GSS/V66/Generic/Event/AchievementUnlocked.cs b/AeroMessages/GSS/V66/Generic/Event/AchievementUnlocked.cs index e224c17..595beab 100644 --- a/AeroMessages/GSS/V66/Generic/Event/AchievementUnlocked.cs +++ b/AeroMessages/GSS/V66/Generic/Event/AchievementUnlocked.cs @@ -6,6 +6,8 @@ namespace AeroMessages.GSS.V66.Generic [AeroMessageId(MsgType.GSS, MsgSrc.Message, 0, 81)] public partial class AchievementUnlocked { - public ulong Unk; // MissionId + [AeroSdb("clientmissions::Mission", "id")] // when is_achievement == 1 + // [AeroSdb("clientmissions::AchievementSetLink", "achievement_id")] + public ulong AchievementId; } } \ No newline at end of file