mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 11:09:17 +01:00
Ok this is boring im only doing sleepy
This commit is contained in:
@@ -157,7 +157,6 @@ namespace Calendar
|
||||
}
|
||||
}
|
||||
|
||||
static void (*OnDamageServerSleepyOriginal)(UObject* SleepyProp, FFrame& Stack, void* Ret);
|
||||
static void OnDamageServerSleepyHook(UObject* SleepyProp, FFrame& Stack, void* Ret)
|
||||
{
|
||||
static auto DamageOffset = FindOffsetStruct("/Game/Athena/Prototype/Blueprints/Sleepy/BP_Sleepy_M.BP_Sleepy_M_C.OnDamageServer", "Damage");
|
||||
@@ -166,29 +165,5 @@ namespace Calendar
|
||||
static UObject* SleepyM = FindObject("/Game/Athena/Maps/Test/S8/SleepyMap.SleepyMap:PersistentLevel.BP_Sleepy_M_2");
|
||||
static UFunction* RootUpdateDamage = SleepyM->FindFunction("RootUpdateDamage");
|
||||
SleepyM->ProcessEvent(RootUpdateDamage, &Damage);
|
||||
OnDamageServerSleepyOriginal(SleepyProp, Stack, Ret);
|
||||
}
|
||||
|
||||
static void (*OnDamageServerLeakyOriginal)(UObject* SleepyProp, FFrame& Stack, void* Ret);
|
||||
static void OnDamageServerLeakyHook(UObject* LeakyProp, FFrame& Stack, void* Ret)
|
||||
{
|
||||
static auto DamageOffset = FindOffsetStruct("/Game/Athena/Prototype/Blueprints/Leaky/BP_LeakyProp.BP_LeakyProp_C.OnDamageServer", "Damage");
|
||||
int Damage = (int)(*(float*)(__int64(Stack.Locals) + DamageOffset));
|
||||
|
||||
static UObject* LeakyHandler = FindObject("/Game/Athena/Maps/Test/S8/LeakyMap.LeakyMap:PersistentLevel.BP_LeakyHandler_2");
|
||||
static UFunction* RootUpdateRotationValue = LeakyHandler->FindFunction("RootUpdateRotationValue");
|
||||
|
||||
struct
|
||||
{
|
||||
int32 Damage;
|
||||
int8 PropIndex;
|
||||
} Params;
|
||||
|
||||
static auto ColorOfBeaconOffset = LeakyProp->GetOffset("Color of Beacon");
|
||||
Params.Damage = Damage;
|
||||
Params.PropIndex = LeakyProp->Get<int>(ColorOfBeaconOffset);
|
||||
|
||||
LeakyHandler->ProcessEvent(RootUpdateRotationValue, &Params);
|
||||
OnDamageServerLeakyOriginal(LeakyProp, Stack, Ret);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user