Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
CharacterCamera3rdPersonVehicle Interface Reference
Inheritance diagram for CharacterCamera3rdPersonVehicle:
[legend]

Public Member Functions

void CharacterCamera3rdPersonVehicle (CameraHandlerComponent pCameraHandler)
 
void InitCameraData ()
 
override void OnActivate (ScriptedCameraItem pPrevCamera, ScriptedCameraItemResult pPrevCameraResult)
 this overrides freelook for cameras
 
override void OnBlendOut ()
 
override void OnUpdate (float pDt, out ScriptedCameraItemResult pOutResult)
 virtual callback - called each frame
 
override void OnAfterCameraUpdate (float pDt, bool pIsKeyframe, inout vector transformMS[4])
 
override float GetBaseFOV ()
 
- Public Member Functions inherited from CharacterCameraBase
void CharacterCameraBase (CameraHandlerComponent pCameraHandler)
 constructor
 
float UpdateUDAngle (out float pAngle, float pMin, float pMax, float pDt)
 
float UpdateLRAngle (float pAngle, float pMin, float pMax, float pDt)
 
override void OnUpdate (float pDt, out ScriptedCameraItemResult pOutResult)
 virtual callback - called each frame
 
override void OnActivate (ScriptedCameraItem pPrevCamera, ScriptedCameraItemResult pPrevCameraResult)
 this overrides freelook for cameras
 
void ForceFreelook (bool state)
 
int GetShoulderLastActive ()
 Get last 3rd person shoulder state.
 
float GetShoulderDistance ()
 
float GetInterpolatedUDTransformAngle (float pDt)
 
void AddPitchRoll (vector yawPitchRoll, float pitchFactor, float rollFactor, inout vector transformMS[4])
 
override void SetBaseAngles (out vector angles)
 Sets the camera angles in DEG, useful when switching between cameras and changing orientation of the character.
 
override vector GetBaseAngles ()
 helper to blend between cameras ret[0] - up down angle ret[1] - left right angle ret[2] - roll
 
- Public Member Functions inherited from ScriptedCameraItem
void ScriptedCameraItem (CameraHandlerComponent pCameraHandler)
 
override void OnActivate (ScriptedCameraItem pPrevCamera, ScriptedCameraItemResult pPrevCameraResult)
 this overrides freelook for cameras
 
override void OnBlendIn ()
 
override void OnBlendOut ()
 
override void OnUpdate (float pDt, out ScriptedCameraItemResult pOutResult)
 virtual callback - called each frame
 
void OnAfterCameraUpdate (float pDt, bool pIsKeyframe, inout vector transformMS[4])
 
vector GetBaseAngles ()
 helper to blend between cameras ret[0] - up down angle ret[1] - left right angle ret[2] - roll
 
override void SetBaseAngles (out vector angles)
 Sets the camera angles in DEG, useful when switching between cameras and changing orientation of the character.
 
float GetBaseFOV ()
 
- Public Member Functions inherited from BaseScriptedCameraItem
void OnActivate (ScriptedCameraItem pPrevCamera, ScriptedCameraItemResult pPrevCameraResult)
 virtual callback - called when camera is created
 
void OnDeactivate (ScriptedCameraItem pNextCamera)
 
void OnBlendIn ()
 
void OnBlendOut ()
 
void OnUpdate (float pDt, out ScriptedCameraItemResult pOutResult)
 virtual callback - called each frame
 
void SetBaseAngles (out vector angles)
 Sets the camera angles in DEG, useful when switching between cameras and changing orientation of the character.
 

Static Public Attributes

static const float CONST_UD_MIN = -89.0
 down limit
 
static const float CONST_UD_MAX = 89.0
 up limit
 
static const float CONST_LR_MIN = -180.0
 left limit
 
static const float CONST_LR_MAX = 180.0
 right limit
 
static const float STEERING_DEGREES = 5
 
static const float ANGULAR_INERTIA = 5
 

Protected Attributes

float m_fSteeringAngle
 
float m_fInertiaAngle
 
float m_fHeight
 
float m_fDist_Desired
 
float m_fDist_Min
 
float m_fDist_Max
 
float m_fFOV_SpeedAdjustMax
 
float m_fBobScale
 
float m_fShakeScale
 
float m_fSpeedMax
 
IEntity m_OwnerVehicle
 
BaseCompartmentSlot m_pCompartment
 
TurretControllerComponent m_TurretController
 
vector m_vCenter
 
vector m_vLastVel
 
vector m_vLastAngVel
 
vector m_vAcceleration
 
float m_f3rd_TraceClipPct
 
float m_fBob_FastUp
 
float m_fBob_FastRight
 
float m_fBob_SlowUp
 
float m_fBob_SlowRight
 
float m_fBob_ScaleFast
 
float m_fBob_ScaleSlow
 
float m_fBob_Acceleration
 
float m_fAngleThirdPerson
 
SCR_VehicleCameraAimpoint m_pCameraAimpointData
 
SCR_VehicleCameraAlignment m_pCameraAlignData
 
PointInfo m_pCameraPivot
 
bool m_bUseNoParent
 
vector m_LastYawPitchRoll
 
- Protected Attributes inherited from CharacterCameraBase
float m_fUpDownAngle
 runtime values
 
float m_fUpDownAngleAdd
 up down angle in rad
 
float m_fLeftRightAngle = 0.0
 left right angle in rad
 
float m_fFOV
 
float m_fLRAngleVel
 
float m_fUDAngleVel
 
float m_fTransformUDAngleVel
 
float m_fTransformUDAngle
 
bool m_bForceFreeLook
 
bool m_bLRAngleNoLimit
 
bool m_bIgnoreCharacterPitch
 
float m_fFOVFilter
 
float m_fFOVFilterVel
 
int m_fShoulderLastActive = 1
 saved active shoulder for 3rd person cam (1 - right, -1 left)
 
float m_fRollFactor
 
float m_fRollSmooth
 
float m_fRollSmoothVel
 
float m_fPitchFactor
 
float m_fPitchSmooth
 
float m_fPitchSmoothVel
 
ChimeraCharacter m_OwnerCharacter
 
SCR_CharacterControllerComponent m_ControllerComponent
 
CharacterInputContext m_Input
 
SCR_CharacterCameraHandlerComponent m_CharacterCameraHandler
 
CharacterAnimationComponent m_CharacterAnimationComponent
 
CharacterHeadAimingComponent m_CharacterHeadAimingComponent
 
CharacterCommandWeapon m_CommandWeapons
 
CompartmentAccessComponent m_CompartmentAccessComponent
 
CharacterCommandHandlerComponent m_CmdHandler
 
float m_fShakeProgress
 
float m_fShakeVelocity
 
- Protected Attributes inherited from ScriptedCameraItem
CameraHandlerComponent m_CameraHandler
 data
 

Additional Inherited Members

- Protected Member Functions inherited from CharacterCameraBase
void AddVehiclePitchRoll (IEntity vehicle, float pDt, inout vector transformMS[4])
 
TNodeId GetCameraBoneIndex ()
 Since camera bone is animated only in certain situations we want to provide camera bone whenever it is requested by animation otherwise we provide head bone to reduce amount of work animators need to do in order to make camera bone following head bone.
 
- Static Protected Attributes inherited from CharacterCameraBase
static TNodeId sm_iCameraBoneIndex = -1
 
static TNodeId sm_iHeadBoneIndex = -1
 
static TNodeId s_iNeckBoneIndex = -1
 
static AnimationTagID sm_TagFPCamera = -1
 
static AnimationTagID sm_TagLyingCamera = -1
 
static AnimationTagID sm_TagItemUpdateCols = -1
 
static AnimationTagID sm_TagADSTransitionOut = -1
 
static AnimationTagID sm_TagADSTransitionIn = -1
 

Constructor & Destructor Documentation

◆ CharacterCamera3rdPersonVehicle()

void CharacterCamera3rdPersonVehicle.CharacterCamera3rdPersonVehicle ( CameraHandlerComponent  pCameraHandler)

Member Function Documentation

◆ GetBaseFOV()

override float CharacterCamera3rdPersonVehicle.GetBaseFOV ( )

Implements ScriptedCameraItem.

◆ InitCameraData()

void CharacterCamera3rdPersonVehicle.InitCameraData ( )

◆ OnActivate()

override void CharacterCamera3rdPersonVehicle.OnActivate ( ScriptedCameraItem  pPrevCamera,
ScriptedCameraItemResult  pPrevCameraResult 
)

this overrides freelook for cameras

virtual callback - called when camera is created

Implements CharacterCameraBase.

◆ OnAfterCameraUpdate()

override void CharacterCamera3rdPersonVehicle.OnAfterCameraUpdate ( float  pDt,
bool  pIsKeyframe,
inout vector  transformMS[4] 
)

Implements ScriptedCameraItem.

◆ OnBlendOut()

override void CharacterCamera3rdPersonVehicle.OnBlendOut ( )

Implements ScriptedCameraItem.

◆ OnUpdate()

override void CharacterCamera3rdPersonVehicle.OnUpdate ( float  pDt,
out ScriptedCameraItemResult  pOutResult 
)

virtual callback - called each frame

update angles

update fov

yaw pitch roll vector

apply to rotation matrix

Roll

Remove roll from parent

Dot product

Apply roll factor

Implements CharacterCameraBase.

Member Data Documentation

◆ ANGULAR_INERTIA

const float CharacterCamera3rdPersonVehicle.ANGULAR_INERTIA = 5
static

◆ CONST_LR_MAX

const float CharacterCamera3rdPersonVehicle.CONST_LR_MAX = 180.0
static

right limit

◆ CONST_LR_MIN

const float CharacterCamera3rdPersonVehicle.CONST_LR_MIN = -180.0
static

left limit

◆ CONST_UD_MAX

const float CharacterCamera3rdPersonVehicle.CONST_UD_MAX = 89.0
static

up limit

◆ CONST_UD_MIN

const float CharacterCamera3rdPersonVehicle.CONST_UD_MIN = -89.0
static

down limit

◆ m_bUseNoParent

bool CharacterCamera3rdPersonVehicle.m_bUseNoParent
protected

◆ m_f3rd_TraceClipPct

float CharacterCamera3rdPersonVehicle.m_f3rd_TraceClipPct
protected

◆ m_fAngleThirdPerson

float CharacterCamera3rdPersonVehicle.m_fAngleThirdPerson
protected

◆ m_fBob_Acceleration

float CharacterCamera3rdPersonVehicle.m_fBob_Acceleration
protected

◆ m_fBob_FastRight

float CharacterCamera3rdPersonVehicle.m_fBob_FastRight
protected

◆ m_fBob_FastUp

float CharacterCamera3rdPersonVehicle.m_fBob_FastUp
protected

◆ m_fBob_ScaleFast

float CharacterCamera3rdPersonVehicle.m_fBob_ScaleFast
protected

◆ m_fBob_ScaleSlow

float CharacterCamera3rdPersonVehicle.m_fBob_ScaleSlow
protected

◆ m_fBob_SlowRight

float CharacterCamera3rdPersonVehicle.m_fBob_SlowRight
protected

◆ m_fBob_SlowUp

float CharacterCamera3rdPersonVehicle.m_fBob_SlowUp
protected

◆ m_fBobScale

float CharacterCamera3rdPersonVehicle.m_fBobScale
protected

◆ m_fDist_Desired

float CharacterCamera3rdPersonVehicle.m_fDist_Desired
protected

◆ m_fDist_Max

float CharacterCamera3rdPersonVehicle.m_fDist_Max
protected

◆ m_fDist_Min

float CharacterCamera3rdPersonVehicle.m_fDist_Min
protected

◆ m_fFOV_SpeedAdjustMax

float CharacterCamera3rdPersonVehicle.m_fFOV_SpeedAdjustMax
protected

◆ m_fHeight

float CharacterCamera3rdPersonVehicle.m_fHeight
protected

◆ m_fInertiaAngle

float CharacterCamera3rdPersonVehicle.m_fInertiaAngle
protected

◆ m_fShakeScale

float CharacterCamera3rdPersonVehicle.m_fShakeScale
protected

◆ m_fSpeedMax

float CharacterCamera3rdPersonVehicle.m_fSpeedMax
protected

◆ m_fSteeringAngle

float CharacterCamera3rdPersonVehicle.m_fSteeringAngle
protected

◆ m_LastYawPitchRoll

vector CharacterCamera3rdPersonVehicle.m_LastYawPitchRoll
protected

◆ m_OwnerVehicle

IEntity CharacterCamera3rdPersonVehicle.m_OwnerVehicle
protected

◆ m_pCameraAimpointData

SCR_VehicleCameraAimpoint CharacterCamera3rdPersonVehicle.m_pCameraAimpointData
protected

◆ m_pCameraAlignData

SCR_VehicleCameraAlignment CharacterCamera3rdPersonVehicle.m_pCameraAlignData
protected

◆ m_pCameraPivot

PointInfo CharacterCamera3rdPersonVehicle.m_pCameraPivot
protected

◆ m_pCompartment

BaseCompartmentSlot CharacterCamera3rdPersonVehicle.m_pCompartment
protected

◆ m_TurretController

TurretControllerComponent CharacterCamera3rdPersonVehicle.m_TurretController
protected

◆ m_vAcceleration

vector CharacterCamera3rdPersonVehicle.m_vAcceleration
protected

◆ m_vCenter

vector CharacterCamera3rdPersonVehicle.m_vCenter
protected

◆ m_vLastAngVel

vector CharacterCamera3rdPersonVehicle.m_vLastAngVel
protected

◆ m_vLastVel

vector CharacterCamera3rdPersonVehicle.m_vLastVel
protected

◆ STEERING_DEGREES

const float CharacterCamera3rdPersonVehicle.STEERING_DEGREES = 5
static

The documentation for this interface was generated from the following file: