File size: 4,313 Bytes
7e9dc27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
--[[
	Project: SA Memory (Available from https://blast.hk/)
	Developers: LUCHARE, FYP

	Special thanks:
		plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.

	Copyright (c) 2018 BlastHack.
]]

local shared = require 'SAMemory.shared'

shared.require 'eCamMode'
shared.require 'CVehicle'
shared.require 'CPed'
shared.require 'vector3d'

shared.ffi.cdef[[
	typedef struct CCam
	{
		bool          bBelowMinDist;
		bool          bBehindPlayerDesired;
		bool          bCamLookingAtVector;
		bool          bCollisionChecksOn;
		bool          bFixingBeta;
		bool          bTheHeightFixerVehicleIsATrain;
		bool          bLookBehindCamWasInFront;
		bool          bLookingBehind;
		bool          bLookingLeft;
		bool          bLookingRight;
		bool          bResetStatics;
		bool          bRotating;
		eCamMode      nMode;
		unsigned int  nFinishTime;
		unsigned int  nDoCollisionChecksOnFrameNum;
		unsigned int  nDoCollisionCheckEveryNumOfFrames;
		unsigned int  nFrameNumWereAt;
		unsigned int  nRunningVectorArrayPos;
		unsigned int  nRunningVectorCounter;
		unsigned int  nDirectionWasLooking;
		float         fMaxRoleAngle;
		float         fRoll;
		float         fRollSpeed;
		float         fSyphonModeTargetZOffSet;
		float         fAmountFractionObscured;
		float         fAlphaSpeedOverOneFrame;
		float         fBetaSpeedOverOneFrame;
		float         fBufferedTargetBeta;
		float         fBufferedTargetOrientation;
		float         fBufferedTargetOrientationSpeed;
		float         fCamBufferedHeight;
		float         fCamBufferedHeightSpeed;
		float         fCloseInPedHeightOffset;
		float         fCloseInPedHeightOffsetSpeed;
		float         fCloseInCarHeightOffset;
		float         fCloseInCarHeightOffsetSpeed;
		float         fDimensionOfHighestNearCar;
		float         fDistanceBeforeChanges;
		float         fFovSpeedOverOneFrame;
		float         fMinDistAwayFromCamWhenInterPolating;
		float         fPedBetweenCameraHeightOffset;
		float         fPlayerInFrontSyphonAngleOffSet;
		float         fRadiusForDead;
		float         fRealGroundDist;
		float         fTargetBeta;
		float         fTimeElapsedFloat;
		float         fTilt;
		float         fTiltSpeed;
		float         fTransitionBeta;
		float         fTrueBeta;
		float         fTrueAlpha;
		float         fInitialPlayerOrientation;
		float         fVerticalAngle;
		float         fAlphaSpeed;
		float         fFOV;
		float         fFOVSpeed;
		float         fHorizontalAngle;
		float         fBetaSpeed;
		float         fDistance;
		float         fDistanceSpeed;
		float         fCaMinDistance;
		float         fCaMaxDistance;
		float         fSpeedVar;
		float         fCameraHeightMultiplier;
		float         fTargetZoomGroundOne;
		float         fTargetZoomGroundTwo;
		float         fTargetZoomGroundThree;
		float         fTargetZoomOneZExtra;
		float         fTargetZoomTwoZExtra;
		float         fTargetZoomTwoInteriorZExtra;
		float         fTargetZoomThreeZExtra;
		float         fTargetZoomZCloseIn;
		float         fMinRealGroundDist;
		float         fTargetCloseInDist;
		float         fBeta_Targeting;
		float         fX_Targetting;
		float         fY_Targetting;
		CVehicle     *pCarWeAreFocussingOn;
		CVehicle     *pCarWeAreFocussingOnI;
		float         fCamBumpedHorz;
		float         fCamBumpedVert;
		unsigned int  nCamBumpedTime;
		vector3d       vecSourceSpeedOverOneFrame;
		vector3d       vecTargetSpeedOverOneFrame;
		vector3d       vecUpOverOneFrame;
		vector3d       vecTargetCoorsForFudgeInter;
		vector3d       vecCamFixedModeVector;
		vector3d       vecCamFixedModeSource;
		vector3d       vecCamFixedModeUpOffSet;
		vector3d       vecLastAboveWaterCamPosition;
		vector3d       vecBufferedPlayerBodyOffset;
		vector3d       vecFront;
		vector3d       vecSource;
		vector3d       vecSourceBeforeLookBehind;
		vector3d       vecUp;
		vector3d       avecPreviousVectors[2];
		vector3d       avecTargetHistoryPos[4];
		unsigned int  anTargetHistoryTime[4];
		unsigned int  nCurrentHistoryPoints;
		CEntity      *pCamTargetEntity;
		float         fCameraDistance;
		float         fIdealAlpha;
		float         fPlayerVelocity;
		CVehicle     *pLastCarEntered;
		CPed         *pLastPedLookedAt;
		bool          bFirstPersonRunAboutActive;
	} CCam;
]]

shared.validate_size('CCam', 0x238)