mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 10:18:14 +08:00
* Adds ´sub_1009D560()´ * Adds ´CCamera::Attach´ * Adds ´CCamera::InterpolatePosition´ * Adds `CCamera::InterpolateLookAt`
30 lines
810 B
C++
30 lines
810 B
C++
|
|
#pragma once
|
|
|
|
#include "game.h" // Main runtime interface base structs.
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
class CCamera // size: 8
|
|
{
|
|
public:
|
|
int field_0;
|
|
MATRIX4X4 *m_matPos;
|
|
public:
|
|
void SetBehindPlayer();
|
|
void SetPosition(float fX, float fY, float fZ, float fRotationX, float fRotationY, float fRotationZ); // tested
|
|
void LookAtPoint(float fX, float fY, float fZ, int iType);
|
|
void Restore();
|
|
void Fade(int iInOut);
|
|
void GetMatrix(PMATRIX4X4 Matrix);
|
|
void SetMatrix(MATRIX4X4 Matrix);
|
|
void Attach(int unk1, int unk2, int unk3);
|
|
void InterpolatePosition(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut);
|
|
void InterpolateLookAt(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut);
|
|
|
|
CCamera() {
|
|
m_matPos = (MATRIX4X4 *)ADDR_CAMERA;
|
|
field_0 = 0;
|
|
}
|
|
};
|