F4MP/tiltedcode/Code/client/Services/Debug/Views/ActorValuesView.cpp
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

23 lines
659 B
C++

#include <Services/DebugService.h>
#include <Forms/ActorValueInfo.h>
#include <imgui.h>
void DebugService::DrawActorValuesView()
{
Actor* pActor = Cast<Actor>(TESForm::GetById(m_formId));
if (!pActor)
return;
ImGui::Begin("Actor values");
// for (int i = 0; i < ActorValueInfo::kActorValueCount; i++)
{
ActorValueOwner& actorValueOwner = pActor->actorValueOwner;
float health[3]{actorValueOwner.GetValue(24), actorValueOwner.GetBaseValue(24), actorValueOwner.GetPermanentValue(24)};
ImGui::InputFloat3("Health (val/base/perm)", health, "%.3f", ImGuiInputTextFlags_ReadOnly);
}
ImGui::End();
}