Here is some notes I made about getting the current car pointer and a bunch of useful values like Speed, Gear, RPM, Velocity Position etc..
Could be used to drive a motion platform, external gauges or even make a rudimentary multiplayer mod
I apologize for the text format, my cheat engine table is a mess.
Values are all float, except for current gear which is int, game rarely uses doubles. Z is up.
Code: Select all
instruction holding main pointer (steam release 1.03):
Cyberpunk2077.exe+2AD262B - 48 8D 1D 4625EA01 - lea rbx,[Cyberpunk2077.exe+4974B78] { (-2046719490) }
(Cyberpunk2077.exe+4974B78 is mainpointer)
finding main pointer (any release possibly):
aob scan 48 8D 1D ? ? ? ? 48 89 74 24 38 48 8B CB 48 89 7C 24 40
"? ? ? ?" holds mainpointer
getting car block:
ptr1 = readlong(mainPointer+0x90);
ptr2 = readlong(ptr1 + 0x498);
ptr3 = readlong(ptr2 + 0x0); //ped block?
carblock = readlong(ptr3 + 0x138); //current car pointer, value is zero on-foot
car data:
carblock+8f8 gearblock
carblock+900 rpmblock
carblock+548 positionblock?
carblock+518 timeblock
carblock+500 physblock
carblock+(4f0, 4e0) timeblock2
carblock+498 physblock2
carblock+488 collisionblock
carblock+3b0 velocityblock
carblock+288 physmainblock
carblock+280 handlingblock
carblock+180 carname?
carblock+8 controlblock
carblock+960 velocityblock2
physmainblock+160 rotation quat
physmainblock+170 pos vector
physmainblock+18 velocity vector (setting values affect car ingame)
physmainblock+24 angular velocity vector (setting values affect car ingame)
gearblock+1d0 current gear
rpmblock+c rpm
rpmblock+8 speed?
timeblock+1c0 time
timeblock2+250 time alternate
physblock+c steering
physblock+30 quat
physblock+40 velocity vector
physblock+50 accel vector
physblock+60 velocity vector 2
physblock+c0 angular velocity vector
physblock+108 speed?
controlblock+25c steering
controlblock+250 handbrake
controlblock+248 throttle
controlblock+24c brake
handlingblock+698 wheelspeed fl
handlingblock+7f8 wheelspeed fr
handlingblock+958 wheelspeed rl
handlingblock+ab8 wheelspeed rr
handlingblock+6dc suspension height fl
handlingblock+83C suspension height fr
handlingblock+99C suspension height rl
handlingblock+AFC suspension height rr