Camera Angle Address

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Yo like the title says am i searching for the Camera Angle Address
(For the Value, when i move my mouse.)
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Opcode.eXe link said:
CameraXAngle:
0xB6F258 size 4(float)

CameraYAngle
add 0x4 to 0xB6F258

CameraXAngle is working but CameraYAngle not.
dmncm8qq.png
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
Code:
#include <math.h>

float GetCameraXAngle()
{
	return atan2(*(float*)0x00B6F104, *(float*)0x00B6F108);
}
float GetCameraZAngle()
{
	return(*(float*)0x00B6F248;
}
Edit: just realised how useless "GetCameraXAngle" was without taking account of Y angle, now it's fixed

Edit2: just found out that the (*(float*)(addr+0xAC)) occasionally causes crashes... It was not neccessary to add that multiplicated offset, didn't notice that what Opcode posted above was what I determined as "Z" angle
 
Top