Skip to content

Commit

Permalink
Merge pull request #145 from rayshader/master
Browse files Browse the repository at this point in the history
feat: add more properties on vehicleBaseObject.
  • Loading branch information
psiberx committed Aug 7, 2024
2 parents 92aadca + bb68bc6 commit b9d5635
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/RED4ext/Scripting/Natives/vehicleBaseObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,25 @@ struct BaseObject : game::Object

uint8_t unk240[0x25C - 0x240]; // 240
bool isOnGround; // 25C
uint8_t unk25D[0x3A0 - 0x25D]; // 25D
uint8_t unk25D[0x264 - 0x25D]; // 25D
float acceleration; // 264
float deceleration; // 268
uint8_t unk26C[0x2A3 - 0x26C]; // 26C
bool isReversing; // 2A3
uint8_t unk2A4[0x2BC - 0x2A4]; // 2A4
float burnout; // 2BC
uint8_t unk2C0[0x3A0 - 0x2C0]; // 2C0
Ref<AI::Archetype> archetype; // 3A0
uint8_t unk3B8[0x6D2 - 0x3B8]; // 3B8
bool isVehicleOnStateLocked; // 6D2
uint8_t unk6D3[0xB90 - 0x6D3]; // 6D3
};
RED4EXT_ASSERT_SIZE(BaseObject, 0xB90);
RED4EXT_ASSERT_OFFSET(BaseObject, isOnGround, 0x25C);
RED4EXT_ASSERT_OFFSET(BaseObject, acceleration, 0x264);
RED4EXT_ASSERT_OFFSET(BaseObject, deceleration, 0x268);
RED4EXT_ASSERT_OFFSET(BaseObject, isReversing, 0x2A3);
RED4EXT_ASSERT_OFFSET(BaseObject, burnout, 0x2BC);
RED4EXT_ASSERT_OFFSET(BaseObject, archetype, 0x3A0);
RED4EXT_ASSERT_OFFSET(BaseObject, isVehicleOnStateLocked, 0x6D2);
} // namespace vehicle
Expand Down

0 comments on commit b9d5635

Please sign in to comment.