Skip to content

Commit 9866768

Browse files
committed
Noclip staged
1 parent 0d58f78 commit 9866768

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

inject.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# This script is intended to work with Pidjeon for a seamless injection process.
88

99
TARGET="splintercell3.exe" # Change as necessary
10-
PAYLOAD="bin/sp3.dll" # Change as necessary
10+
PAYLOAD="lib/sp3.dll" # Change as necessary
1111
PIDJEON_PATH="${HOME}/.toolkit" # Change as necessary
1212

1313
export PATH=$PATH:"${PIDJEON_PATH}"

src/hacks.c

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ extern bool bGhostMode;
2020
extern bool bShutdown;
2121
extern bool bGodMode;
2222

23-
/*void health_detour(void); // maybe this works?*/
24-
2523
void hack_GodMode(bool bEnabled)
2624
{
2725
char* const health_op = (char *)(module_base_addr + offsets_health_base);
@@ -32,11 +30,7 @@ void hack_GodMode(bool bEnabled)
3230

3331
if (bEnabled)
3432
{
35-
#pragma GCC diagnostic push
36-
#pragma GCC diagnostic ignored "-Wpedantic"
3733
memory_detour(health_op, (void *)health_detour, health_op_size);
38-
#pragma GCC diagnostic pop
39-
4034
}
4135
else
4236
{
@@ -289,3 +283,15 @@ void hack_test(void)
289283
}
290284

291285
}
286+
287+
void hack_no_clip(bool bEnabled)
288+
{
289+
if (bEnabled)
290+
{
291+
// Stop xyz movements
292+
293+
// X movement
294+
// splintercell3.exe+19580D -> fstp dword ptr [edi]
295+
// splintercell3.exe+19580D -> nop nop
296+
}
297+
}

0 commit comments

Comments
 (0)