Page 1 of 12

Prey 2017

Posted: Fri May 05, 2017 2:11 am
by STN
UPDATE #4: Added some new stuff, moved most code to Lua. See presentation video below (preferably on youtube, HD enabled and in fullscreen).



--

UPDATE #3: Updated for 1.04. Moved most code to Lua. Open game, double-click on the table and hit OK if asked to run the Lua code. Then just activate the corresponding Lua script you need. For KeyExecHandler script keys are: Numpad 4 (decreasetimedilation), Numpad 5 (normaltimedilation), Numpad 6 (increasetimedilation), Numpad 7 (FreeCamEnable) and Numpad 9 (FreeCamDisable).

--

UPDATE #2: Updated for 1.02.

--

UPDATE #1: Added pl_infiniteNeuromods. Set to 1.

--

Hello folks. Here we gooo..

° God Mode °

Fetch it from here:

Image

Code: Select all

Prey.exe+15EE570 - 48 83 EC 28 - sub rsp,28
Prey.exe+15EE574 - 48 8B 0D A575DA00 - mov rcx,[Prey.exe+2395B20]
Prey.exe+15EE57B - 48 8B 01 - mov rax,[rcx]
Prey.exe+15EE57E - FF 90 38020000 - call qword ptr [rax+00000238]
<--
Prey.exe+E062C0 - 48 8B 41 28 - mov rax,[rcx+28]
Prey.exe+E062C4 - 48 8B 80 C0000000 - mov rax,[rax+000000C0]
Prey.exe+E062CB - C3 - ret
-->
Prey.exe+15EE584 - 48 8D 15 0D219100 - lea rdx,[Prey.exe+1F00698] { "g_godMode" }
Prey.exe+15EE58B - 4C 8B 00 - mov r8,[rax]
Prey.exe+15EE58E - 48 8B C8 - mov rcx,rax
Prey.exe+15EE591 - 41 FF 90 B8000000 - call qword ptr [r8+000000B8]
Prey.exe+15EE598 - 48 85 C0 - test rax,rax <-- returns pointer to CVar
Prey.exe+15EE59B - 74 0E - je Prey.exe+15EE5AB
Prey.exe+15EE59D - 48 8B 10 - mov rdx,[rax]
Prey.exe+15EE5A0 - 48 8B C8 - mov rcx,rax
Prey.exe+15EE5A3 - 48 83 C4 28 - add rsp,28
Prey.exe+15EE5A7 - 48 FF 62 10 - jmp qword ptr [rdx+10]
-->
Prey.exe+E31550 - 48 8B 41 48 - mov rax,[rcx+48]
Prey.exe+E31554 - 8B 00 - mov eax,[rax] <-- reads g_godMode's value from pointer at 0x48 offset inside CVar pointer
Prey.exe+E31556 - C3 - ret

And this is where it is used:

Image

° Stamina °

All in this function:

Image

Default value is (float)0.0. As you run, value increases till it hits the max, which is (float)100.0. That's when you get the fatigue action. See below image :P

Image

Simply setting pl_infinite_stamina to 1 will get the job done :P

° Flashlight ° (who uses it)

All in this function:

Image

Actually, the goodie is here:

Image

Default value is (float)90.0. Decreasing when flashlight is on till (float)30.0 where you probably get a warning (rbx+78 = Max; rbx+7C = Current; rbx+80 = WarnThreshold).

Image

And now the table:

Image

Adding more soon, as I progress.

BR,
Sun

Re: Prey 2017

Posted: Fri May 05, 2017 2:58 am
by The Mogician
You beat me to it! I still have an hour before game release.

Re: Prey 2017

Posted: Fri May 05, 2017 3:35 am
by ColonelRVH
He used VPN Australia with his monstrous internet bw, that's why :lol:

Re: Prey 2017

Posted: Fri May 05, 2017 4:54 am
by STN
Game is unlocked for me. And great job Sunbeam, i usually am the one that says the first one with a cheat but you beat me to it this time with your monstrous internet connection :P.

Re: Prey 2017

Posted: Fri May 05, 2017 8:28 am
by Alucain
Thank you SunBeam for awesome explanations.

Re: Prey 2017

Posted: Fri May 05, 2017 10:32 am
by Semel
I'd really love if we could "respec" via table.

As in disabling already taken skills and enabling others instead.

Re: Prey 2017

Posted: Fri May 05, 2017 11:06 am
by darkmike
One hit kills
no reload

Re: Prey 2017

Posted: Fri May 05, 2017 12:55 pm
by dragonlord3989
Hi i need some help, the infinite stamina is not working for me because my character is bugged and I can not run do any of you know a work around

Re: Prey 2017

Posted: Fri May 05, 2017 1:45 pm
by Meltic
Is there a freecamera and a fov value and timestop ? Can't find these values for the in game camera X and Y to make a freecamera/Timestop.

Re: Prey 2017

Posted: Fri May 05, 2017 1:51 pm
by dragonlord3989
My character bugged out and I have no stamina this happened before I downloaded your .ct file, it's also the reason I downloaded your .ct file
[Link]

Re: Prey 2017

Posted: Fri May 05, 2017 2:02 pm
by dragonlord3989
SunBeam wrote:
Fri May 05, 2017 1:59 pm
If you did something that bugged your character (e.g.: changed some memory values and saved game), then I'm afraid you'll have to restart. I don't have the ability to "fix" stuff you broke, while not know what you did (don't think you remember either) :P Maybe wait till I figure out a speed mod? :)
I have no used cheat engine the entire play XD it's randomly fucked up on me in the cafetiere section
Spoiler
After I got froze in the freezer

Re: Prey 2017

Posted: Fri May 05, 2017 2:10 pm
by The Mogician
Added a psi pointer to SunBeam's file.

Re: Prey 2017

Posted: Fri May 05, 2017 4:36 pm
by moopa
Greetings. Is there a version for steam? Looked around, and I saw one version online, but it isn't quite as detailed as this one is so far. Thanks in advance for any help.

Re: Prey 2017

Posted: Fri May 05, 2017 6:31 pm
by willdunz
Hacking minigame sucks. Is there a way to freeze the countdown timer?

Re: Prey 2017

Posted: Fri May 05, 2017 6:41 pm
by The Mogician
willdunz wrote:
Fri May 05, 2017 6:31 pm
Hacking minigame sucks. Is there a way to freeze the countdown timer?
Do you even video game?

If you have troubles with it, try slow down time with the speed hack function of cheat engine. It should help.