gta5fov icon indicating copy to clipboard operation
gta5fov copied to clipboard

Third Person Issue

Open xchgrbprsp opened this issue 6 years ago • 1 comments

I noticed you mentioned that the third person option may cause some issues in the config file. I didn't really compile and test your code so I might be wrong but my guess is that you can't ignore the first movaps xmm1, xmm0 before movss dword ptr [rbx+90h], xmm1 because otherwise your injected code will mess up several jumps before it as they will jump to the middle of an instruction and cause unexpected behaviors.

xchgrbprsp avatar Jul 03 '18 12:07 xchgrbprsp

Also instead of doing the sort of mid function hooking, it is in my opinion better to modify the instruction that modifies the register that will be moved to the fov memory address. I incorporated your patterns and stuff into my own mod and this method works pretty well. All you need to do is allocate a small buffer area that's within 2GB of the main exe module. Then you can replace the instruction with something like movss xmm1, dword ptr[rip+offset].

xchgrbprsp avatar Jul 03 '18 12:07 xchgrbprsp