Skip to content

Commit

Permalink
Added some decodings (#25)
Browse files Browse the repository at this point in the history
add BGSLocation.cleared/everCleared, TESObjectCELL::MaxHeightData.x/y, TESAmmo data

---------

Co-authored-by: ianpatt <ianpatt@gmail.com>
  • Loading branch information
TommInfinite and ianpatt authored May 4, 2024
1 parent 72cf38f commit bc61cb4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
11 changes: 7 additions & 4 deletions f4se/GameForms.h
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,10 @@ class BGSLocation : public TESForm
UInt32 unk128;
UInt32 unk12C;
UInt32 unk130;
UInt32 unk134;
UInt8 cleared;
UInt8 everCleared;
UInt8 unk136;
UInt8 unk137;
UInt32 unk138;
UInt32 unk13C;
};
Expand Down Expand Up @@ -1503,12 +1506,12 @@ class TESObjectCELL : public TESForm

struct MaxHeightData
{
UInt32 unk00; // 00
UInt32 unk04; // 04
UInt32 x; // 00
UInt32 y; // 04
UInt8 * maxHeightBlock; // 08
};

MaxHeightData * unk50; // 50
MaxHeightData * heightData; // 50
TESObjectLAND * land; // 58
SInt32 unk60; // 60
float unk64; // 64
Expand Down
18 changes: 17 additions & 1 deletion f4se/GameObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,23 @@ class TESAmmo : public TESBoundObject
BGSKeywordForm keywordForm; // 130
TESWeightForm weight; // 150

UInt64 unk160[(0x1B0 - 0x160)/8]; // 160
struct AMMO_DATA
{
public:
// members
BGSProjectile* projectile; // 00
UInt32 health; // 08
UInt8 flags; // 0C
UInt8 unk0D; // 0D
UInt8 unk0E; // 0E
UInt8 unk0F; // 0F
float damage; // 10
};
static_assert(sizeof(AMMO_DATA) == 0x18);

AMMO_DATA data; // 160
UInt64 shortDesc; // 178
TESModel shellCasing; // 180
};

// 300
Expand Down

0 comments on commit bc61cb4

Please sign in to comment.