Code: Select all
[ENABLE]
aobscanmodule(thirdp,FSD-Win64-Shipping.exe,F2 0F 10 02 48 8B D9 F2 0F 11 01 48)
alloc(thimem,$1000,thirdp)
label(code)
label(return)
label(distance)
thimem:
{$luacode base=rdx}
if not readByte('[clientp]') then return end
local dist = readFloat('distance')
local camX = readFloat('[[[clientp]+2C8]+258]+28C') % 360
local camY = readFloat('[[[clientp]+2C8]+258]+288')
local x = readFloat('[[[clientp]+2C8]+290]+1D0') - math.cos(math.rad(camX))*dist
local y = readFloat('[[[clientp]+2C8]+290]+1D8') + 100 - math.sin(math.rad(camY))*dist
local z = readFloat('[[[clientp]+2C8]+290]+1D4') - math.sin(math.rad(camX))*dist
writeFloat(base+0x0,x)
writeFloat(base+0x8,y)
writeFloat(base+0x4,z)
{$asm}
code:
movsd xmm0,[rdx]
mov rbx,rcx
jmp return
distance:
dq (float)250
thirdp:
jmp thimem
nop 2
return:
registersymbol(thirdp)
registersymbol(distance)
[DISABLE]
thirdp:
db F2 0F 10 02 48 8B D9
unregistersymbol(*)
dealloc(*)