Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Data Structures | |
class | BaseScriptedCameraItem |
class | BaseScriptedCameraSet |
class | CameraBaseClass |
class | CameraHandlerComponentClass |
class | CameraManagerClass |
class | PlayerCameraClass |
class | ScriptedCameraBaseClass |
Functions | |
CameraBaseClass GenericEntityClass | ApplyTransform (float timeslice) |
Manually applies transformation. This is usually done in EOnPostFrame automatically. More... | |
proto external void | GetWorldCameraTransform (out vector mat[4]) |
Get current camera world transformation. More... | |
proto external IEntity | GetCursorTarget () |
proto external IEntity | GetCursorTargetWithPosition (out vector outPosition) |
proto external CameraType | GetProjType () |
Get projection type. More... | |
proto external float | GetVerticalFOV () |
proto external float | GetNearPlane () |
proto external float | GetFarPlane () |
proto external void | SetFOVDegree (float fovDegrees) |
proto external void | SetVerticalFOV (float fov) |
proto external void | SetNearPlane (float nearPlane) |
proto external void | SetFarPlane (float farPlane) |
proto external void | SetCameraIndex (int cameraIndex) |
proto external int | GetCameraIndex () |
proto external void | SetLensFlareSet (CameraLensFlareSetType type, string userName) |
proto external bool | IsAABBVisible (vector mins, vector maxs) |
Test if the AABB is visible against the view frustum of the camera. More... | |
proto external bool | IsSphereVisible (vector origin, float radius) |
Test if the sphere is visible against the view frustum of the camera. More... | |
event protected void | CameraActivate () |
Called the moment this camera is activated by CameraManager. More... | |
event protected void | CameraDeactivate () |
Called the moment this camera is deactivated by CameraManager. More... | |
CameraHandlerComponentClass ScriptComponentClass | GetCameraSet () |
proto external bool | IsInThirdPerson () |
Returns true if the camera is in third person mode. More... | |
proto external void | SetThirdPerson (bool val) |
Set the current third person camera state. More... | |
proto external float | GetFocusMode () |
Returns the current value of the focus mode. More... | |
proto external void | SetFocusMode (float focusMode) |
Set the current value of the focus mode. More... | |
proto external float | GetBlendAlpha (ScriptedCameraItem forCameraItem) |
proto external ScriptedCameraItem | GetCurrentCamera () |
returns current active camera More... | |
proto external bool | IsCameraBlending () |
returns true if there's more than one processing camera More... | |
event protected float | CalculateFovScalar (notnull CameraBase mainCamera, CameraBase overlayCamera) |
event void | Init () |
initialization More... | |
event void | OnCameraActivate () |
activation More... | |
event void | OnCameraDeactivate () |
deactivation More... | |
event int | CameraSelector () |
selects next camera More... | |
event void | OnBeforeCameraUpdate (float pDt, bool pIsKeyframe) |
before camera update More... | |
event void | OnAfterCameraUpdate (float pDt, bool pIsKeyframe, inout vector transformMS[4], inout vector transformWS[4]) |
after camera update More... | |
event void | CollisionSolver (float pDt, inout ScriptedCameraItemResult pOutResult, inout vector resCamTM[4], bool isKeyframe) |
collision solver More... | |
event void | OnThirdPersonSwitch (bool isInThirdPerson) |
when we switch between FPP and TPP More... | |
event float | GetCameraTransitionTime (int pFrom, int pTo) |
get how long should transition between given cameras be More... | |
event float | GetOverlayCameraFOVScalarWeight () |
CameraManagerClass GenericEntityClass | CurrentCamera () |
Returns the current camera. More... | |
proto external bool | SetCamera (CameraBase pCam) |
proto external void | SetNextCamera () |
Set the next camera in the list as current camera. More... | |
proto external void | SetPreviousCamera () |
Set the previous camera in the list as current camera. More... | |
proto external int | GetCamerasList (out notnull array< CameraBase > outCameras) |
proto external void | SetOverlayCamera (CameraBase pCam) |
proto external CameraBase | GetOverlayCamera () |
proto external void | SetFirstPersonFOV (float fieldOfView) |
proto external float | GetFirstPersonFOV () |
proto external void | SetThirdPersonFOV (float fieldOfView) |
proto external float | GetThirdPersonFOV () |
proto external void | SetVehicleFOV (float fieldOfView) |
proto external float | GetVehicleFOV () |
proto external float | GetClampedFOV (float fieldOfView) |
proto external float | GetMinFOV () |
proto external float | GetMaxFOV () |
event protected void | OnInit () |
proto external float | GetFocusFOV () |
Returns the focus field of view in degrees. More... | |
proto external float | GetFocusFOVScale (float baseFOV, float scalar) |
Returns interpolated value from baseFOV to focusFOV based on the input scalar value. More... | |
CameraBaseClass GenericEntityClass ApplyTransform | ( | float | timeslice | ) |
Manually applies transformation. This is usually done in EOnPostFrame automatically.
event protected float CalculateFovScalar | ( | notnull CameraBase | mainCamera, |
CameraBase | overlayCamera | ||
) |
Calculate and return desired fov scalar. 1.0 = normal
mainCamera | Main camera used, usually player camera |
overlayCamera | Overlay camera, usually PiP camera or null |
Definition at line 46 of file CameraHandlerComponent.c.
event protected void CameraActivate | ( | ) |
Called the moment this camera is activated by CameraManager.
event protected void CameraDeactivate | ( | ) |
Called the moment this camera is deactivated by CameraManager.
event int CameraSelector | ( | ) |
selects next camera
game camera selection
we need to stabilize camera before roll action is complete, so by that time player is ready to aim at target
Setup here all conditions where we want to use camera transformation from bone directly Roll case
Definition at line 161 of file CharacterCameraHandlerComponent.c.
event void CollisionSolver | ( | float | pDt, |
inout ScriptedCameraItemResult | pOutResult, | ||
inout vector | resCamTM[4], | ||
bool | isKeyframe | ||
) |
collision solver
Definition at line 601 of file CharacterCameraHandlerComponent.c.
CameraManagerClass GenericEntityClass CurrentCamera | ( | ) |
Returns the current camera.
proto external float GetBlendAlpha | ( | ScriptedCameraItem | forCameraItem | ) |
proto external int GetCameraIndex | ( | ) |
Get the current camera index.
CameraHandlerComponentClass ScriptComponentClass GetCameraSet | ( | ) |
proto external int GetCamerasList | ( | out notnull array< CameraBase > | outCameras | ) |
Return the list of all cameras
outCameras | List where all cameras will be inserted. |
get how long should transition between given cameras be
Definition at line 325 of file CharacterCameraHandlerComponent.c.
proto external float GetClampedFOV | ( | float | fieldOfView | ) |
Returns value clamped between min and max settings.
proto external ScriptedCameraItem GetCurrentCamera | ( | ) |
returns current active camera
proto external IEntity GetCursorTarget | ( | ) |
Performs a raycast from the center of this camera in the forward direction. (result is cached within single frame and reused if called multiple times)
proto external IEntity GetCursorTargetWithPosition | ( | out vector | outPosition | ) |
Performs a raycast from the center of this camera in the forward direction. (result is cached within single frame and reused if called multiple times)
outPosition | Position of the ray and target intersect point. |
proto external float GetFarPlane | ( | ) |
Get the current far plane clipping value.
proto external float GetFirstPersonFOV | ( | ) |
Returns default first person field of view.
proto external float GetFocusFOV | ( | ) |
Returns the focus field of view in degrees.
proto external float GetFocusFOVScale | ( | float | baseFOV, |
float | scalar | ||
) |
Returns interpolated value from baseFOV to focusFOV based on the input scalar value.
PlayerCameraClass CameraBaseClass GetFocusMode | ( | ) |
Returns the current value of the focus mode.
Returns the current value of focus mode in the <0,1> range.
proto external float GetMaxFOV | ( | ) |
Returns maximum allowed field of view value.
proto external float GetMinFOV | ( | ) |
Returns minimum allowed field of view value.
proto external float GetNearPlane | ( | ) |
Get the current near plane clipping value.
proto external CameraBase GetOverlayCamera | ( | ) |
Get the current overlay camera
event float GetOverlayCameraFOVScalarWeight | ( | ) |
Weight in the <0, 1> range of how much input sensitivity should be modulated if an overlay camera is active. (0 = main camera, 1 = overlay camera).
Definition at line 1100 of file CharacterCameraHandlerComponent.c.
proto external CameraType GetProjType | ( | ) |
Get projection type.
proto external float GetThirdPersonFOV | ( | ) |
Returns default third person field of view.
proto external float GetVehicleFOV | ( | ) |
Returns default vehicle field of view.
proto external float GetVerticalFOV | ( | ) |
Get the vertical FOV.
proto external void GetWorldCameraTransform | ( | out vector | mat[4] | ) |
Get current camera world transformation.
event void Init | ( | ) |
initialization
Init black list, this will get all items that should be blacklisted and adds it to one unified set (Server only)
Definition at line 35 of file CharacterCameraHandlerComponent.c.
proto external bool IsAABBVisible | ( | vector | mins, |
vector | maxs | ||
) |
Test if the AABB is visible against the view frustum of the camera.
proto external bool IsCameraBlending | ( | ) |
returns true if there's more than one processing camera
proto external bool IsInThirdPerson | ( | ) |
Returns true if the camera is in third person mode.
proto external bool IsSphereVisible | ( | vector | origin, |
float | radius | ||
) |
Test if the sphere is visible against the view frustum of the camera.
event void OnAfterCameraUpdate | ( | float | pDt, |
bool | pIsKeyframe, | ||
inout vector | transformMS[4], | ||
inout vector | transformWS[4] | ||
) |
after camera update
aiming update
update recoil and generic camera shake
Definition at line 535 of file CharacterCameraHandlerComponent.c.
event void OnBeforeCameraUpdate | ( | float | pDt, |
bool | pIsKeyframe | ||
) |
before camera update
Definition at line 436 of file CharacterCameraHandlerComponent.c.
event void OnCameraActivate | ( | ) |
activation
Definition at line 29 of file SCR_PostProcessCameraComponent.c.
event void OnCameraDeactivate | ( | ) |
deactivation
Definition at line 38 of file SCR_PostProcessCameraComponent.c.
event protected void OnInit | ( | ) |
Called on initialization.
event void OnThirdPersonSwitch | ( | bool | isInThirdPerson | ) |
when we switch between FPP and TPP
Definition at line 399 of file CharacterCameraHandlerComponent.c.
proto external bool SetCamera | ( | CameraBase | pCam | ) |
Set the current camera, it should be alreday registered in this Camera Manager.
cam | Camera which will be the new camera used. |
proto external void SetCameraIndex | ( | int | cameraIndex | ) |
Set the current camera index.
cameraIndex | The new camera index. |
proto external void SetFarPlane | ( | float | farPlane | ) |
Set the current far plane value.
farPlane | The new far plane value in meters. |
proto external void SetFirstPersonFOV | ( | float | fieldOfView | ) |
Sets default first person field of view.
proto external void SetFocusMode | ( | float | focusMode | ) |
Set the current value of the focus mode.
proto external void SetFOVDegree | ( | float | fovDegrees | ) |
Set full symmetrical vertical FOV in degrees.
fovDegrees | Vertical FOV in degrees. |
proto external void SetLensFlareSet | ( | CameraLensFlareSetType | type, |
string | userName | ||
) |
Sets camera lens flare set
type | type of the lens flare set |
userSetName | user name of the lens flare set (used only when type is set to User) |
proto external void SetNearPlane | ( | float | nearPlane | ) |
Set the current near plane clipping value.
nearPlane | The new near plane value in meters. |
proto external void SetNextCamera | ( | ) |
Set the next camera in the list as current camera.
proto external void SetOverlayCamera | ( | CameraBase | pCam | ) |
Set the current overlay camera
pCamera | Camera which will be the new overlay camera. |
proto external void SetPreviousCamera | ( | ) |
Set the previous camera in the list as current camera.
proto external void SetThirdPerson | ( | bool | val | ) |
Set the current third person camera state.
proto external void SetThirdPersonFOV | ( | float | fieldOfView | ) |
Sets default first person field of view.
proto external void SetVehicleFOV | ( | float | fieldOfView | ) |
Sets default vehicle field of view.
proto external void SetVerticalFOV | ( | float | fov | ) |
Set the vertical FOV.
fov | FOV in degrees. |