124 files changed.

This commit is contained in:
Milxnor
2023-04-15 19:53:58 -04:00
parent 63473de425
commit bbf28ed9e9
124 changed files with 60988 additions and 577 deletions

View File

@@ -22,6 +22,13 @@ public:
this->ProcessEvent(fn, &IBAParams);
}
bool IsDestroyed()
{
static auto bDestroyedOffset = GetOffset("bDestroyed");
static auto bDestroyedFieldMask = GetFieldMask(GetProperty("bDestroyed"));
return ReadBitfieldValue(bDestroyedOffset, bDestroyedFieldMask);
}
void SilentDie()
{
static auto SilentDieFn = FindObject<UFunction>("/Script/FortniteGame.BuildingActor.SilentDie");
@@ -36,6 +43,14 @@ public:
return MaxHealth;
}
float GetHealthPercent() // aka GetHealth() / GetMaxHealth()
{
float HealthPercent = 0;
static auto fn = FindObject<UFunction>("/Script/FortniteGame.BuildingActor.GetHealthPercent");
this->ProcessEvent(fn, &HealthPercent);
return HealthPercent;
}
void SetTeam(unsigned char InTeam)
{
static auto fn = nullptr; // FindObject<UFunction>("/Script/FortniteGame.BuildingActor.SetTeam");