Skip to content

facing and formation for hero (discovered via ce)#11

Open
Serpen wants to merge 1 commit intoRoseKavalier:masterfrom
Serpen:master
Open

facing and formation for hero (discovered via ce)#11
Serpen wants to merge 1 commit intoRoseKavalier:masterfrom
Serpen:master

Conversation

@Serpen
Copy link

@Serpen Serpen commented Jun 21, 2024

add 2 missing fields for hero

found them out via cheatengine (and observing)

h3unk8 _f_47;
h3unk8 _f_48;
/** @brief [47] direction in which the hero looks*/
h3unk8 faceing;
Copy link
Owner

@RoseKavalier RoseKavalier Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to an INT8 (0..7)
And rename 'facing' without the 'e'.

Copy link
Owner

@RoseKavalier RoseKavalier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments.

/** @brief [47] direction in which the hero looks*/
h3unk8 faceing;
/** @brief [48] selected formation type for troups*/
h3unk8 formationType;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to UINT8.
This is a bitfield, bit 0 is formation (tight/loose) and bit 1 is tactics enabled/disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants