Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PIPCamera.c
Go to the documentation of this file.
3 {
4 }
5 
6 class SCR_PIPCamera : CameraBase
7 {
8 
9  //------------------------------------------------------------------------------------------------
10  // constructor
13  void SCR_PIPCamera(IEntitySource src, IEntity parent)
14  {
18  ClearEventMask(EntityEvent.INIT);
19  }
20 
21  //------------------------------------------------------------------------------------------------
22  override void EOnActivate(IEntity owner)
23  {
24  super.EOnActivate(owner);
25 
26  // CameraBase is activate by default, we don't want that here because UpdatePIPCamera is called from sight POSTFRAME event
27  Deactivate();
28  }
29 
30  //------------------------------------------------------------------------------------------------
34  void ApplyProps(int index)
35  {
36  BaseWorld world = GetWorld();
37  world.SetCameraVerticalFOV(index, GetVerticalFOV());
38  world.SetCameraFarPlane(index, GetFarPlane());
39  world.SetCameraNearPlane(index, GetNearPlane());
40  world.SetCameraType(index, CameraType.PERSPECTIVE);
41  UpdatePIPCamera(0.0);
42  }
43 
44  //------------------------------------------------------------------------------------------------
48  void UpdatePIPCamera(float timeSlice)
49  {
50  ApplyTransform(timeSlice);
51  //vector camMat[4];
52  //GetWorldTransform(camMat);
53  //GetWorld().SetCameraEx(index, camMat);
54  }
55 }
UpdatePIPCamera
void UpdatePIPCamera(float timeSlice)
Definition: SCR_PIPCamera.c:48
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
ApplyProps
void ApplyProps(int index)
Definition: SCR_PIPCamera.c:34
SCR_PIPCamera
SCR_PIPCameraClass CameraBaseClass SCR_PIPCamera(IEntitySource src, IEntity parent)
Definition: SCR_PIPCamera.c:13
GetFarPlane
proto external float GetFarPlane()
ApplyTransform
CameraBaseClass GenericEntityClass ApplyTransform(float timeslice)
Manually applies transformation. This is usually done in EOnPostFrame automatically.
GetVerticalFOV
proto external float GetVerticalFOV()
Deactivate
protected void Deactivate()
Definition: SCR_BaseHintCondition.c:27
EOnActivate
override void EOnActivate(IEntity owner)
Definition: SCR_PIPCamera.c:22
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition: SCR_DestructionSynchronizationComponent.c:17
CameraBaseClass
Definition: CameraBase.c:12
SCR_PIPCameraClass
Definition: SCR_PIPCamera.c:2
GetNearPlane
proto external float GetNearPlane()