-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe5517e
commit cba459c
Showing
9 changed files
with
118 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SoT.Game | ||
{ | ||
public class Player : UE4Actor | ||
{ | ||
private UHealthComponent HealthComponent | ||
{ | ||
get | ||
{ | ||
return SotCore.Instance.Memory.ReadProcessMemory<UHealthComponent>(SotCore.Instance.Memory.ReadProcessMemory<ulong>(Address + 2136)); | ||
} | ||
} | ||
public float MaxHealth | ||
{ | ||
get | ||
{ | ||
return HealthComponent.MaxHealth; | ||
} | ||
} | ||
|
||
public float CurrentHealth | ||
{ | ||
get | ||
{ | ||
return HealthComponent.CurrentHealth; | ||
} | ||
} | ||
|
||
public Player(UEObject ueobject) : base(ueobject.Address) | ||
{ | ||
} | ||
|
||
public Player(ulong address) : base(address) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using SoT.Data; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SoT.Game | ||
{ | ||
public struct FTransform | ||
{ | ||
public Quaternion Rotation; | ||
public Vector3 Translation; | ||
public Vector3 Scale3D; | ||
}; | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
public struct SceneComponent | ||
{ | ||
[FieldOffset(0x140)] | ||
public FTransform transform; | ||
} | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
public struct AActor | ||
{ | ||
[FieldOffset(0x18)] | ||
public int ObjectID; | ||
|
||
|
||
[FieldOffset(0x170)] | ||
private ulong RootComponentPtr; | ||
|
||
public SceneComponent GetRootComponent() | ||
{ | ||
return SotCore.Instance.Memory.ReadProcessMemory<SceneComponent>(RootComponentPtr); | ||
} | ||
} | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
public struct UHealthComponent | ||
{ | ||
[FieldOffset(0x00E0)] | ||
public float MaxHealth; | ||
|
||
[FieldOffset(0x00E4)] | ||
public float CurrentHealth; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using SoT.Util; | ||
using System; | ||
using SoT.UE4; | ||
using SoT.Game; | ||
|
||
namespace SoT | ||
{ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters