mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Merge pull request #199 from YesseYesseY/master
This commit is contained in:
29
.clangd
Normal file
29
.clangd
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# NOTE: replace /home/yes with your home folder, it won't recognize ~ as the home folder
|
||||||
|
# I also have no idea what most flags after Wno-prgma-pack does. i kinda just built it in visual studio then copied flags
|
||||||
|
|
||||||
|
CompileFlags:
|
||||||
|
Compiler: clang-cl
|
||||||
|
Add:
|
||||||
|
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/um"
|
||||||
|
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/shared"
|
||||||
|
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/ucrt"
|
||||||
|
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/winrt"
|
||||||
|
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/km"
|
||||||
|
- "-I/home/yes/msvc/VC/Tools/MSVC/14.43.34808/atlmfc/include/"
|
||||||
|
- "-I/home/yes/msvc/VC/Tools/MSVC/14.43.34808/include/"
|
||||||
|
- "-I../vendor"
|
||||||
|
- "/std:c++latest"
|
||||||
|
- "-ferror-limit=0"
|
||||||
|
- "-Wno-pragma-pack"
|
||||||
|
- "/permissive-"
|
||||||
|
- "/EHsc"
|
||||||
|
- "/MT"
|
||||||
|
- "/GS"
|
||||||
|
- "/Gy"
|
||||||
|
- "Gm-"
|
||||||
|
- "/D _UNICODE"
|
||||||
|
- "/D UNICODE"
|
||||||
|
- "/fp:precise"
|
||||||
|
- "/Zc:wchar_t"
|
||||||
|
- "/Zc:forScope"
|
||||||
|
- "/Zc:inline"
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -385,3 +385,4 @@ Project Reboot 3.0/x64/Release/Project Reboot 3.0.iobj
|
|||||||
*.tlog
|
*.tlog
|
||||||
*.ifc
|
*.ifc
|
||||||
*.pdb
|
*.pdb
|
||||||
|
Build/
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public:
|
|||||||
float& GetMinNetUpdateFrequency();
|
float& GetMinNetUpdateFrequency();
|
||||||
const AActor* GetNetOwner() const;
|
const AActor* GetNetOwner() const;
|
||||||
void GetActorEyesViewPoint(FVector* OutLocation, FRotator* OutRotation) const;
|
void GetActorEyesViewPoint(FVector* OutLocation, FRotator* OutRotation) const;
|
||||||
AActor* GetClosestActor(UClass* ActorClass, float DistMax, std::function<bool(AActor*)> AdditionalCheck = [&](AActor*) { return true; });
|
AActor* GetClosestActor(UClass* ActorClass, float DistMax, std::function<bool(AActor*)> AdditionalCheck = [](AActor*) { return true; });
|
||||||
|
|
||||||
bool IsRelevancyOwnerFor(const AActor* ReplicatedActor, const AActor* ActorOwner, const AActor* ConnectionActor) const
|
bool IsRelevancyOwnerFor(const AActor* ReplicatedActor, const AActor* ActorOwner, const AActor* ConnectionActor) const
|
||||||
{
|
{
|
||||||
@@ -68,4 +68,4 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static class UClass* StaticClass();
|
static class UClass* StaticClass();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Actor.h"
|
#include "Actor.h"
|
||||||
#include "TSubClassOf.h"
|
#include "TSubclassOf.h"
|
||||||
|
|
||||||
class APawn : public AActor
|
class APawn : public AActor
|
||||||
{
|
{
|
||||||
@@ -23,4 +23,4 @@ public:
|
|||||||
static auto AIControllerClassOffset = GetOffset("AIControllerClass");
|
static auto AIControllerClassOffset = GetOffset("AIControllerClass");
|
||||||
return Get<TSubclassOf<class AController>>(AIControllerClassOffset);
|
return Get<TSubclassOf<class AController>>(AIControllerClassOffset);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ template <typename SetType>
|
|||||||
class TSet
|
class TSet
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
friend TSparseArray;
|
template <typename>
|
||||||
|
friend class TSparseArray;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef TSetElement<SetType> ElementType;
|
typedef TSetElement<SetType> ElementType;
|
||||||
@@ -217,4 +218,4 @@ public:
|
|||||||
|
|
||||||
mutable TInlineAllocator<1>::ForElementType<int> Hash;
|
mutable TInlineAllocator<1>::ForElementType<int> Hash;
|
||||||
mutable int32 HashSize;
|
mutable int32 HashSize;
|
||||||
}; */
|
}; */
|
||||||
|
|||||||
@@ -819,6 +819,9 @@ static inline uint64 FindCompletePickupAnimation()
|
|||||||
{
|
{
|
||||||
auto addr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 55 57 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B B9", false).Get(); // 19.10;
|
auto addr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 55 57 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B B9", false).Get(); // 19.10;
|
||||||
|
|
||||||
|
if (!addr)
|
||||||
|
addr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 55 57 41 54 48 8D AC 24 ? ? ? ? 48 81 EC A0 01 00 00", false).Get(); // 19.01
|
||||||
|
|
||||||
if (!addr)
|
if (!addr)
|
||||||
addr = Memcury::Scanner::FindPattern("48 8B C4 48 89 58 10 48 89 70 18 48 89 78 20 55 41 54 41 55 41 56 41 57 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B B9 ? ? ? ? 45 33 E4 48 8B D9 48 85 FF 74 0F").Get(); // 20.40
|
addr = Memcury::Scanner::FindPattern("48 8B C4 48 89 58 10 48 89 70 18 48 89 78 20 55 41 54 41 55 41 56 41 57 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B B9 ? ? ? ? 45 33 E4 48 8B D9 48 85 FF 74 0F").Get(); // 20.40
|
||||||
|
|
||||||
@@ -1885,4 +1888,4 @@ static inline uint64 FindClearAbility()
|
|||||||
return Memcury::Scanner::FindPattern("48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 83 EC 20 80 89 ? ? ? ? ? 48 8B F2 44 8B 89 ? ? ? ? 33 D2 48 8B").Get();
|
return Memcury::Scanner::FindPattern("48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 83 EC 20 80 89 ? ? ? ? ? 48 8B F2 44 8B 89 ? ? ? ? 33 D2 48 8B").Get();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
6
build-linux.sh
Executable file
6
build-linux.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# To run this you need to setup msvc for wine https://github.com/mstorsjo/msvc-wine
|
||||||
|
# I haven't setup the .clangd file yet so it's gonna be a pain to program in if you're using clangd tho
|
||||||
|
|
||||||
|
msbuild "./Project Reboot 3.0/Project Reboot 3.0.vcxproj" /p:configuration=Release /p:platform=x64 /p:OutDir=../Build
|
||||||
Reference in New Issue
Block a user