DIFF

class DayZPlayerCameraSource

Constructors 1

void DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
References m_pInput, and m_pPlayer

Members 2

Methods 15

bool CanFreeLook()

this overrides freelook for cameras

void OnActivate(DayZPlayerCamera pPrevCamera, DayZPlayerCameraResult pPrevCameraResult)

virtual callback - called when camera is created

void OnUpdate(float pDt, out DayZPlayerCameraResult pOutResult)

virtual callback - called each frame

vector GetBaseAngles()

helper to blend between cameras ret[0] - up down angle ret[1] - left right angle ret[2] - roll angle

float GetCurrentYaw()
float GetCurrentPitch()
float GetCurrentRoll()
bool IsCamera3rdRaised()
void SpawnDiagCameraShake()
void SpawnCameraShake(float strength = 1, float radius = 2, float smoothness = 5, float radius_decay_speed = 6)
void SpawnCameraShakeProper(float strength, float radius, float smoothness, float radius_decay_speed)
void SendRecoilOffsetZ(float offset)

m_fCamPosOffsetZ info, used to adjust near plane in DayZPlayerCameraIronsights now