mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
it kinda work
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#include "FortPlayerPawn.h"
|
||||
#include "globals.h"
|
||||
#include "FortInventoryInterface.h"
|
||||
#include <fstream>
|
||||
#include "GenericPlatformTime.h"
|
||||
|
||||
#include "Map.h"
|
||||
#include "events.h"
|
||||
@@ -150,6 +152,9 @@ DWORD WINAPI Main(LPVOID)
|
||||
Hooking::MinHook::Hook((PVOID)Addresses::GetNetMode, (PVOID)GetNetModeHook, nullptr);
|
||||
}
|
||||
|
||||
GSRandSeed = FGenericPlatformTime::Cycles();
|
||||
ReplicationRandStream = FRandomStream(FGenericPlatformTime::Cycles());
|
||||
|
||||
Hooking::MinHook::Hook((PVOID)Addresses::KickPlayer, (PVOID)AGameSession::KickPlayerHook, (PVOID*)&AGameSession::KickPlayerOriginal);
|
||||
|
||||
LOG_INFO(LogDev, "Size: 0x{:x}", sizeof(TMap<FName, void*>));
|
||||
@@ -723,6 +728,16 @@ DWORD WINAPI Main(LPVOID)
|
||||
LOG_ERROR(LogGame, "Restarting is not supported on chapter 2 and above!");
|
||||
}
|
||||
}
|
||||
|
||||
else if (GetAsyncKeyState(VK_F11) & 1)
|
||||
{
|
||||
std::ofstream stream("Test.log");
|
||||
|
||||
for (auto& Current : ReplicatedActors)
|
||||
{
|
||||
stream << Current << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
Sleep(1000 / 30);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user