Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
CharacterCameraHandlerComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_CharacterCameraHandlerComponentClass

Functions

SCR_CharacterCameraHandlerComponentClass CameraHandlerComponentClass Attribute (category:"Camera Shake")
override void Init ()
override void OnCameraActivate ()
void OnAlphatestChange (int a)
override void OnCameraDeactivate ()
bool IsDebugView ()
bool ShouldForceFirstPersonInThirdPerson (CharacterControllerComponent controller)
override float GetCameraTransitionTime (int pFrom, int pTo)
override void OnThirdPersonSwitch (bool isInThirdPerson)
ScriptInvokerVoid GetThirdPersonSwitchInvoker ()
override void OnBeforeCameraUpdate (float pDt, bool pIsKeyframe)
override void OnAfterCameraUpdate (float pDt, bool pIsKeyframe, inout vector transformMS[4], inout vector transformWS[4])
void UpdateHeadVisibility (vector cameraPositionWS)
void UpdateShake (float pDt)
void AddShakeToToTransform (inout vector transform[4], inout float fieldOfView)
void OnCameraSwitchPressed ()
override void CollisionSolver (float pDt, inout ScriptedCameraItemResult pOutResult, inout vector resCamTM[4], bool isKeyframe)
bool CanUseOverlayCameraFOV ()
override float GetOverlayCameraFOVScalarWeight ()
SCR_RecoilCameraShakeParams GetRecoilShakeParams ()
override event float CalculateFovScalar (notnull CameraBase mainCamera, CameraBase overlayCamera)
bool IsCameraActive ()
void SetTraceCharacters (bool bTraceCharacters)

Variables

float m_fADSProgress
float m_fADSTime
const float FOCUS_DECELERATION_RATIO = 4.5
const float FOCUS_DEFAULT_ADS_TIME = 0.35
const float FOCUS_ADS_TIME_RATIO = 0.75
float m_fFocusTime
float m_fFocusDeceleration
bool m_bDoInterpolateFocus
float m_fFocusTargetValue
float m_fFocusValue
float m_fAutoFocusProgress

Function Documentation

◆ AddShakeToToTransform()

void AddShakeToToTransform ( inout vector transform[4],
inout float fieldOfView )
protected
Parameters
[in,out]transform
[in,out]fieldOfView

Definition at line 611 of file CharacterCameraHandlerComponent.c.

◆ Attribute()

Definition at line 1 of file CharacterCameraHandlerComponent.c.

◆ CalculateFovScalar()

override event float CalculateFovScalar ( notnull CameraBase mainCamera,
CameraBase overlayCamera )
protected

Definition at line 1136 of file CharacterCameraHandlerComponent.c.

◆ CanUseOverlayCameraFOV()

bool CanUseOverlayCameraFOV ( )
protected

Definition at line 1094 of file CharacterCameraHandlerComponent.c.

◆ CollisionSolver()

override void CollisionSolver ( float pDt,
inout ScriptedCameraItemResult pOutResult,
inout vector resCamTM[4],
bool isKeyframe )
protected

Definition at line 634 of file CharacterCameraHandlerComponent.c.

◆ GetCameraTransitionTime()

override float GetCameraTransitionTime ( int pFrom,
int pTo )
protected

Definition at line 349 of file CharacterCameraHandlerComponent.c.

◆ GetOverlayCameraFOVScalarWeight()

override float GetOverlayCameraFOVScalarWeight ( )
protected

Definition at line 1109 of file CharacterCameraHandlerComponent.c.

◆ GetRecoilShakeParams()

SCR_RecoilCameraShakeParams GetRecoilShakeParams ( )
protected
Returns

Definition at line 1116 of file CharacterCameraHandlerComponent.c.

◆ GetThirdPersonSwitchInvoker()

ScriptInvokerVoid GetThirdPersonSwitchInvoker ( )
protected
Returns

Definition at line 439 of file CharacterCameraHandlerComponent.c.

◆ Init()

override void Init ( )

Definition at line 40 of file CharacterCameraHandlerComponent.c.

◆ IsCameraActive()

bool IsCameraActive ( )
protected
Returns

Definition at line 1157 of file CharacterCameraHandlerComponent.c.

◆ IsDebugView()

bool IsDebugView ( )
Returns

Definition at line 115 of file CharacterCameraHandlerComponent.c.

◆ OnAfterCameraUpdate()

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

update recoil and generic camera shake

Definition at line 571 of file CharacterCameraHandlerComponent.c.

◆ OnAlphatestChange()

void OnAlphatestChange ( int a)
Parameters
[in]a

Definition at line 81 of file CharacterCameraHandlerComponent.c.

◆ OnBeforeCameraUpdate()

override void OnBeforeCameraUpdate ( float pDt,
bool pIsKeyframe )
protected

Definition at line 461 of file CharacterCameraHandlerComponent.c.

◆ OnCameraActivate()

override void OnCameraActivate ( )

Definition at line 55 of file CharacterCameraHandlerComponent.c.

◆ OnCameraDeactivate()

override void OnCameraDeactivate ( )

Definition at line 101 of file CharacterCameraHandlerComponent.c.

◆ OnCameraSwitchPressed()

void OnCameraSwitchPressed ( )
protected

Definition at line 627 of file CharacterCameraHandlerComponent.c.

◆ OnThirdPersonSwitch()

override void OnThirdPersonSwitch ( bool isInThirdPerson)
protected

Definition at line 424 of file CharacterCameraHandlerComponent.c.

◆ SetTraceCharacters()

void SetTraceCharacters ( bool bTraceCharacters)
protected
Parameters
[in]bTraceCharacters

Definition at line 1164 of file CharacterCameraHandlerComponent.c.

◆ ShouldForceFirstPersonInThirdPerson()

bool ShouldForceFirstPersonInThirdPerson ( CharacterControllerComponent controller)
protected

Definition at line 334 of file CharacterCameraHandlerComponent.c.

◆ UpdateHeadVisibility()

void UpdateHeadVisibility ( vector cameraPositionWS)
protected

Definition at line 586 of file CharacterCameraHandlerComponent.c.

◆ UpdateShake()

void UpdateShake ( float pDt)
protected

Definition at line 600 of file CharacterCameraHandlerComponent.c.

Variable Documentation

◆ FOCUS_ADS_TIME_RATIO

const float FOCUS_ADS_TIME_RATIO = 0.75
protected

Definition at line 447 of file CharacterCameraHandlerComponent.c.

◆ FOCUS_DECELERATION_RATIO

const float FOCUS_DECELERATION_RATIO = 4.5
protected

Definition at line 445 of file CharacterCameraHandlerComponent.c.

◆ FOCUS_DEFAULT_ADS_TIME

const float FOCUS_DEFAULT_ADS_TIME = 0.35
protected

Definition at line 446 of file CharacterCameraHandlerComponent.c.

◆ m_bDoInterpolateFocus

bool m_bDoInterpolateFocus
protected

Definition at line 455 of file CharacterCameraHandlerComponent.c.

◆ m_fADSProgress

float m_fADSProgress
protected

Definition at line 345 of file CharacterCameraHandlerComponent.c.

◆ m_fADSTime

float m_fADSTime
protected

Definition at line 346 of file CharacterCameraHandlerComponent.c.

◆ m_fAutoFocusProgress

float m_fAutoFocusProgress
protected

Definition at line 458 of file CharacterCameraHandlerComponent.c.

◆ m_fFocusDeceleration

float m_fFocusDeceleration
protected

Definition at line 453 of file CharacterCameraHandlerComponent.c.

◆ m_fFocusTargetValue

float m_fFocusTargetValue
protected

Definition at line 456 of file CharacterCameraHandlerComponent.c.

◆ m_fFocusTime

float m_fFocusTime
protected

Definition at line 450 of file CharacterCameraHandlerComponent.c.

◆ m_fFocusValue

float m_fFocusValue
protected

Definition at line 457 of file CharacterCameraHandlerComponent.c.