Skip to content

Commit 34e69f6

Browse files
authored
Merge pull request #75 from mohamedahmed200710/main
fixing ESP and trigger bot
2 parents 69ea8b6 + 8e0c31f commit 34e69f6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Data/Entity/Entity.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override IntPtr ReadControllerBase(GameProcess gameProcess)
4040
var listEntry = gameProcess.Process.Read<IntPtr>(EntityList + 8 * entryIndex + 16);
4141

4242
return listEntry != IntPtr.Zero
43-
? gameProcess.Process.Read<IntPtr>(listEntry + 120 * (Id & 0x1FF))
43+
? gameProcess.Process.Read<IntPtr>(listEntry + 112 * (Id & 0x1FF))
4444
: IntPtr.Zero;
4545
}
4646

@@ -53,7 +53,7 @@ protected override IntPtr ReadAddressBase(GameProcess gameProcess)
5353
var listEntry = gameProcess.Process.Read<IntPtr>(EntityList + 0x8 * pawnIndex + 16);
5454

5555
return listEntry != IntPtr.Zero
56-
? gameProcess.Process.Read<IntPtr>(listEntry + 120 * (playerPawn & 0x1FF))
56+
? gameProcess.Process.Read<IntPtr>(listEntry + 112 * (playerPawn & 0x1FF))
5757
: IntPtr.Zero;
5858
}
5959

@@ -94,4 +94,5 @@ private bool UpdateBonePositions(GameProcess gameProcess)
9494
return false;
9595
}
9696
}
97-
}
97+
98+
}

Features/TriggerBot.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public sealed class TriggerBot : ThreadedServiceBase
1010
private const int TriggerDelayMs = 5;
1111
private const int EntityListMultiplier = 0x8;
1212
private const int EntityEntryOffset = 0x10;
13-
private const int EntityStride = 120;
13+
private const int EntityStride = 112;
1414
private const int EntityIndexMask = 0x1FF;
1515
private const int EntityIndexShift = 9;
1616
private static Keys _triggerBotHotKey;
@@ -103,4 +103,5 @@ public override void Dispose()
103103
base.Dispose();
104104
GC.SuppressFinalize(this);
105105
}
106-
}
106+
107+
}

0 commit comments

Comments
 (0)