Skip to content

Commit

Permalink
Merge pull request #114 from MarioDox/master
Browse files Browse the repository at this point in the history
BrawlEX Fighter Config Grab and Throw flags
  • Loading branch information
soopercool101 authored Oct 18, 2024
2 parents 38640a1 + 697e48c commit d7097e9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 20 deletions.
52 changes: 34 additions & 18 deletions BrawlLib/SSBB/ResourceNodes/BrawlEx/FCFGNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public byte[]
public uint _canWallJump; // 0xE4 - Whether the fighter can jump off walls
public uint _canCling; // 0xE8 - Whether the fighter can cling to walls
public uint _canZAir; // 0xEC - Whether the fighter can use an aerial tether
public uint _u12Flag; // 0xF0 - Usage unknown
public uint _u13Flag; // 0xF4 - Usage unknown
public uint _thrownType; // 0xF0 - Animation used when thrown
public uint _grabSize; // 0xF4 - Animation used when grabbed

public uint _textureLoad; // 0xF8 - 0/1/2/3/4/5
public uint _aiController; // 0xFC
Expand Down Expand Up @@ -1044,30 +1044,46 @@ public uint TextureLoader
}
}

[Browsable(false)]
public enum ThrownTypes : uint
{
Default = 0x00000000,
Small = 0x00000001,
Big = 0x00000002,
Girl = 0x00000003
}

[Browsable(true)]
[Category("Misc")]
[Description("Usage Unknown.")]
[DisplayName("U12 Flag")]
[TypeConverter(typeof(HexUIntConverter))]
public uint U12Flag
[Description("Sets the specific animation set to be used when this character is thrown.")]
[DisplayName("Thrown Type")]
public ThrownTypes ThrownType
{
get => _u12Flag;
get => (ThrownTypes) _thrownType;
set
{
_u12Flag = value;
_thrownType = (uint) value;
SignalPropertyChange();
}
}

[Browsable(false)]
public enum GrabSizes : uint
{
Tall = 0x00000000,
Short = 0x00000001,
}

[Browsable(true)]
[Category("Misc")]
[Description("Usage Unknown.")]
[DisplayName("U13 Flag")]
[TypeConverter(typeof(HexUIntConverter))]
public uint U13Flag
[Description("Used to change the animation when this character and victims are held in a grab.")]
[DisplayName("Grab Size")]
public GrabSizes GrabSize
{
get => _u13Flag;
get => (GrabSizes) _grabSize;
set
{
_u13Flag = value;
_grabSize = (uint) value;
SignalPropertyChange();
}
}
Expand Down Expand Up @@ -1197,8 +1213,8 @@ public override void OnRebuild(VoidPtr address, int length, bool force)
hdr->_canWallJump = _canWallJump;
hdr->_canCling = _canCling;
hdr->_canZAir = _canZAir;
hdr->_u12Flag = _u12Flag;
hdr->_u13Flag = _u13Flag;
hdr->_thrownType = _thrownType;
hdr->_grabSize = _grabSize;
hdr->_textureLoad = _textureLoad;
hdr->_aiController = _aiController;
}
Expand Down Expand Up @@ -1318,8 +1334,8 @@ public override bool OnInitialize()
_canWallJump = Header->_canWallJump;
_canCling = Header->_canCling;
_canZAir = Header->_canZAir;
_u12Flag = Header->_u12Flag;
_u13Flag = Header->_u13Flag;
_thrownType = Header->_thrownType;
_grabSize = Header->_grabSize;

_textureLoad = Header->_textureLoad;
_aiController = Header->_aiController;
Expand Down
4 changes: 2 additions & 2 deletions BrawlLib/SSBB/Types/BrawlEx/FCFG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public buint
public buint _canWallJump; // 0xE4 - Whether the fighter can jump off walls
public buint _canCling; // 0xE8 - Whether the fighter can cling to walls
public buint _canZAir; // 0xEC - Whether the fighter can use an aerial tether
public buint _u12Flag; // 0xF0 - Usage unknown
public buint _u13Flag; // 0xF4 - Usage unknown
public buint _thrownType; // 0xF0 - Animation used when thrown
public buint _grabSize; // 0xF4 - Animation used when grabbed

public buint _textureLoad; // 0xF8 - 0/1/2/3/4/5
public buint _aiController; // 0xFC
Expand Down

0 comments on commit d7097e9

Please sign in to comment.