mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
124 files changed.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user