Skip to content

Commit

Permalink
Merge pull request #7 from SzymonKaminski/vehicle-abilities
Browse files Browse the repository at this point in the history
Update vehicle's (De)activateAbility classes
  • Loading branch information
Xsear authored May 30, 2024
2 parents 6d91f4c + 2d7e848 commit 0117abc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions AeroMessages/GSS/V66/Vehicle/Command/ActivateAbility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace AeroMessages.GSS.V66.Vehicle.Command
public partial class ActivateAbility
{
public uint Time;
public byte AbilityIdx; // 0x05 == Honk, 0x08 == SIN, lookup in vehicle components
public AbilitySlotIndex AbilitySlotIndex;
[AeroArray(typeof(byte))] public EntityId[] Targets;
public byte Unk2; // TraceAbilities?
public byte TraceAbilities; // traceAbilities command in console toggles this
}
}
2 changes: 1 addition & 1 deletion AeroMessages/GSS/V66/Vehicle/Command/DeactivateAbility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ namespace AeroMessages.GSS.V66.Vehicle.Command
public partial class DeactivateAbility
{
public uint Time;
public byte AbilityIdx; // 0x05 == Honk, 0x08 == SIN, lookup in vehicle components
public AbilitySlotIndex AbilitySlotIndex;
}
}
12 changes: 9 additions & 3 deletions AeroMessages/GSS/V66/Vehicle/VehicleShared.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
using Aero.Gen.Attributes;
using static Aero.Gen.Attributes.AeroIfAttribute;
using static Aero.Gen.Attributes.AeroMessageIdAttribute;
using AeroMessages.Common;
using System.Numerics;
using System;

namespace AeroMessages.GSS.V66.Vehicle
{
public enum AbilitySlotIndex : byte
{
Honk = 5,
Boost = 6,
Utility = 7,
SIN = 8,
}

[AeroBlock]
public struct CurrentPoseData
{
Expand Down

0 comments on commit 0117abc

Please sign in to comment.