Skip to content

Commit

Permalink
misc defs
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 committed Aug 5, 2023
1 parent 0ed7afe commit 170b64a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CommonLibF4/include/RE/Bethesda/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,13 @@ namespace RE
return func(this, a_actor);
}

[[nodiscard]] ActorHandle GetMountHandle()
{
using func_t = decltype(&Actor::GetMountHandle);
REL::Relocation<func_t> func{ REL::ID(313362) };
return func(this);
}

[[nodiscard]] std::int16_t GetLevel()
{
using func_t = decltype(&Actor::GetLevel);
Expand Down
14 changes: 7 additions & 7 deletions CommonLibF4/include/RE/Bethesda/IMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,22 @@ namespace RE
enum class UI_DEPTH_PRIORITY
{
kUndefined,
k3DUnderHUD,
kBook,
kScope,
k3DUnderHUD, // WorkshopMenu3D
kBook, // BookMenu
kScope, // ScopeMenu
kSWFLoader,
kHUD,
kStandard,
kStandard3DModel,
kStandard, // PipboyMenu, PowerArmorRenderer, HUDRainRenderer, LockpickingMenu3D
kStandard3DModel, // Container3D, WorkbenchItem3D
kPipboy,
kTerminal,
kGameMessage,
kPauseMenu,
kLoadingFader,
kLoading3DModel,
kLoading3DModel, // BackgroundScreenModel
kLoadingMenu,
kMessage,
kButtonBarMenu,
kButtonBarMenu, // FlatScreenModel, HUDScreenModel
kButtonBarSupressingMenu,
kDebug,
kConsole,
Expand Down
7 changes: 7 additions & 0 deletions CommonLibF4/include/RE/Bethesda/PipboyManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ namespace RE
return func(this, a_reason);
}

void OnPipboyOpened()
{
using func_t = decltype(&PipboyManager::RaisePipboy);
REL::Relocation<func_t> func{ REL::ID(1299608) };
return func(this);
}

void RaisePipboy()
{
using func_t = decltype(&PipboyManager::RaisePipboy);
Expand Down
6 changes: 6 additions & 0 deletions CommonLibF4/include/RE/Bethesda/PlayerCharacter.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ namespace RE
return singleton->get();
}

[[nodiscard]] static ActorHandle GetPlayerHandle()
{
REL::Relocation<ActorHandle*> singleton{ REL::ID(522947) };
return *singleton;
}

bool IsGodMode()
{
using func_t = decltype(&PlayerCharacter::IsGodMode);
Expand Down
14 changes: 14 additions & 0 deletions CommonLibF4/include/RE/Bethesda/TESCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,20 @@ namespace RE
return BSTSmartPointer{ static_cast<T*>(cameraStates[T::STATE].get()) };
}

TESCameraState* PopState()
{
using func_t = decltype(&PlayerCamera::PopState);
REL::Relocation<func_t> func{ REL::ID(120998) };
return func(this);
}

TESCameraState* PushState(CameraState a_state)
{
using func_t = decltype(&PlayerCamera::PushState);
REL::Relocation<func_t> func{ REL::ID(746523) };
return func(this, a_state);
}

void SetState(TESCameraState* a_newstate) const
{
using func_t = decltype(&PlayerCamera::SetState);
Expand Down

0 comments on commit 170b64a

Please sign in to comment.