gta5fov
gta5fov copied to clipboard
Third Person Issue
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.
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]
.