Code snippets and general CA Info
Decided to name the thread this since it would be pointless making new threads whenever I wanted to release something random and possibly useful. (could even do with a sticky ;) ;))
This time its 2 functions from the CameraMgr called PointAtPosition() and MoveCameraToPosition()
Code:
// Point the camera at a position from a position
void PointAtPosition(const LTVector &pos, const LTRotation &rot, const LTVector &pointFrom);
0x3740FCD0
Code:
// Move the camera to a position over a time period
void MoveCameraToPosition(LTVector pos, float deltaTime);
0x37410960
Example Usage:
Code:
void AimAtPlayer(HOBJECT player)
{
LTVector vTargetPos;
LTRotation rRot;
g_pLTClient->GetObjectPos(player, &vTargetPos); //g_pLTClient + 0x90
g_pLTClient->GetObjectRotation(player, &rRot); //g_pLTClient + 0x94
PointAtPosition(pos, rot, localposhere);
}
All untested but it seems to be somewhat correct, PointAtPosition could be used for aimbot and MoveCameraToPosition for ghostmode and telekill im assuming.
Goodluck :)